| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
Closes #44
|
| | |
|
| |\
| |
| |
| |
| | |
core: Drop ClientLogin authorizer
See merge request GNOME/libgdata!40
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It’s been deprecated by Google for a number of years, and is completely
unsupported in all of their newer REST APIs. Its main flaws are that it
requires the user’s password to be passed to potentially untrusted code
(normalising the user typing their password into any old text entry),
and that it can’t support the interactive authentication required for
2FA.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
| |/ |
|
| |\
| |
| |
| |
| | |
remove deprecated contacts service
See merge request GNOME/libgdata!39
|
| | | |
|
| |\ \
| |/
|/|
| |
| | |
remove deprecated freebase service
See merge request GNOME/libgdata!33
|
| | | |
|
| |\ \
| | |
| | |
| | |
| | | |
remove deprecated documents service api
See merge request GNOME/libgdata!37
|
| | | | |
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
remove deprecated calendar service apis
See merge request GNOME/libgdata!38
|
| | |/ / |
|
| | |/
|/| |
|
| |/
|
|
|
|
| |
0.18.0 has already been released; the deprecation will land in 0.18.2.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Contacts API server will return error responses with increasing
frequency until all responses are errors in December 2021.
https://developers.google.com/contacts/v3/announcement
They are replacing it with the People API (why can’t they provide
backwards-compatibility?), but I don’t have the time to port the
libgdata Contacts service to the new People API. More crucially, I don’t
have time to maintain such a port in the future.
https://developers.google.com/people
Handily, the CardDAV API for accessing contact data is still explicitly
supported by Google Contacts, so people should use that instead. At
least it’s a standard protocol, with a variety of conformant
implementations already released and maintained; and not just another
here-today-gone-tomorrow Google REST API.
https://developers.google.com/people/carddav
Using CardDAV requires OAuth 2 authorization, just like the Contacts API
did.
So, bearing all the above in mind, the libgdata Contacts service is now
deprecated in favour of using CardDAV.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Fixes: #42
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Entries on Shared Drives, or Shared with me are not always editable.
Let's add gdata_documents_entry_can_edit to allow GVfsBackendGoogle to
set file permissions accordingly. It would be nice to make also canDelete,
canRename and canListChildren available, but it would require libgdata
port to Drive API v3 unfortunatelly.
Relates: https://gitlab.gnome.org/GNOME/gvfs/-/merge_requests/114
|
| |
|
|
|
|
|
|
| |
Let's make available the SharedWithMeDate property to make implementation
of the Shared with me folder for GVfsBackendGoogle easier.
Relates: https://gitlab.gnome.org/GNOME/gvfs/-/issues/444
Relates: https://gitlab.gnome.org/GNOME/gvfs/-/merge_requests/114
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
It seems that the existing documents APIs works nicely with the files
on Shared Drives (formerly Team Drives), although it is possible that
some small changes will be needed to handle differences:
https://developers.google.com/drive/api/v2/shared-drives-diffs
However, the main problem is that there is no way currently to get the
list of Shared Drives IDs and their names. Let's add new APIs for it
which will be consequently used by GVfs.
Relates: https://gitlab.gnome.org/GNOME/gvfs/-/issues/377
Fixes: https://gitlab.gnome.org/GNOME/libgdata/-/issues/25
|
| |
|
|
|
|
| |
The cleanup function is not defined for GDataQuery, which prevents
G_DECLARE_DERIVABLE_TYPE use for its subclasses. Let's define it
so G_DECLARE_DERIVABLE_TYPE can be used in the subsequent commits.
|
| |\
| |
| |
| |
| | |
core: Add g_autoptr() support for GDataUploadStream
See merge request GNOME/libgdata!26
|
| | |
| |
| |
| | |
https://gitlab.gnome.org/GNOME/libgdata/-/merge_requests/26
|
| |/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Done using:
```
codespell \
--builtin clear,rare,usage \
--skip './po/*' --skip './help/*/*.po' --skip './.git/*' --skip './NEWS*' \
--write-changes .
```
and then some manual checking and editing.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Non-resumable upload streams quite often fail with authorization errors
as we are probably hitting some limits. The only way currently to deal
with them is to refresh authorization manually and upload everything
again as it is not possible to resume the transfer. This is big issue
for streaming operations provided by GVfs. I have made several tests
and realized that if we explicitely refresh the authorization before
the transfer, then those authorization errors doesn't occur. So let's
always refresh the authorization when constructing the streams and do
the same for upload streams as well as they are also affected. In theory,
the resumable streams could solve this better, however they currently
require content size to be specified at the beginning, which is not
usable for the streaming operations in GVfs.
Fixes: https://gitlab.gnome.org/GNOME/libgdata/issues/23
|
| |\
| |
| |
| |
| |
| |
| | |
Make liboauth dependency optional and disabled by default
Closes #1
See merge request GNOME/libgdata!18
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
None of the account types supported by recent versions of GOA support
OAuth 1.0 authentication/authorisation, so drop it entirely in favour of
OAuth 2.0.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #1
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
liboauth is unmaintained and hard to compile at the moment. OAuth 1.0
itself has been deprecated in Google APIs since 2012, in favour of OAuth
2.0 or other more modern authentication/authorisation methods.
Add a new configure option for `oauth1`, and disable it by default. If
it’s disabled, the `GDataOAuth1Authorizer` will return errors when used
(but the API is still available and not marked as deprecated yet).
Eventually the `GDataOAuth1Authorizer` API will be marked as deprecated,
but we can’t do that at the moment as we’re in API freeze.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #1
|
| | |
| |
| |
| |
| |
| | |
We’re not ready to release 0.18.0 yet.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
There’s no way to annotate an installed-test to say it’s expected to
fail, so don’t install tests which are expected to fail.
The PicasaWeb tests are expected to fail because the server for them has
been shut down (see #19). The Documents tests are expected to fail
because they haven’t been ported to Drive v2 yet (see #12).
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #35
|
| |
|
|
|
|
| |
It was introducing a compiler warning with GCC 9.1.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| |
|
|
| |
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| |
|
|
|
|
|
| |
This hides a load of API deprecation warnings from the latest version of
GLib, which we’re not ready to adapt to yet.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
Defining it in `config.h` means that *every* C file which emits a log or
debug message needs to remember to include `config.h`. It’s a lot
simpler and less error-prone to define `G_LOG_DOMAIN` in the `c_args`
instead.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #30
|
| |
|
|
|
|
|
| |
Spotted by Bruce Cowan.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #33
|
| |\
| |
| |
| |
| | |
Drive v2 Properties API
See merge request GNOME/libgdata!7
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
"properties" list too
gdata_documents_service_add_entry_to_folder() copies a given GDataEntry
to a specified parent folder. It did that by creating a local entry.
This local entry is created from the GDataEntry passed as argument, but
it didn't copy over the "properties" list. This commit fixes this
behaviour by copying the "properties" list as well.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The parse_json and get_json functions have been augmented to support
parsing the "properties" list on a file/folder's metadata. The
"properties" list of GDataDocumentsEntry corresponds to the
"properties" list on a file/folder object's metadata. This list stores
all the public/private custom properties and is writable.
The "properties" list has elements of of type GDataDocumentsProperty,
and functions to search/remove/add such properties have also been added.
|
| | |
| |
| |
| |
| | |
The added tests perform unit-testing of the get_json and parse_json
functions for the GDataDocumentsProperty type.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Google Drive API (v2) supports custom file properties on file/folder
metadata and allows to store key-value pairs there. We add
GDataDocumentsProperty which corresponds to a Property Resource, and
provides functionality to create public/private custom property. The
documentation has also been updated (a new section added for
GDataDocumentsProperty).
GDataDocumentsProperty class will later be used to add a list of
"properties" on GDataDocumentsEntry, accessible through the
file/folder metadata.
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gtk-doc gained the ability to magically strip off the ‘s’ in a plural
many years ago, so the workaround of splitting the ‘s’ from a class or
function name is no longer needed.
This clarifies the docs in the code a bit.
This commit was made mechanically using
```
git search-replace -f '<!-- -->s///s'
```
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| |
|
|
|
|
|
|
|
|
| |
Currently, if you call gdata_entry_get_id() for the second time, the first
returned id string is released even if the id hasn't been changed. This is
unexpected and causes issues in several places of gvfsbackendgoogle.c, where
g_strdup() has to be used as a workaround to prevent segfaults. Let's change
the behavior to not free the current id, if it was not changed.
Closes: https://gitlab.gnome.org/GNOME/libgdata/issues/31
|
| |
|
|
|
|
|
|
|
| |
Setting soversion means the soname ends in '22.4.0' instead of the
expected '22'. So we want the *soversion* to be '22' and the *version*
to be '22.4.0'.
We only need to set the version as meson can derive the soversion from
it.
|
| |
|
|
|
|
|
|
|
| |
We’re using Meson now! This also means we drop the ChangeLog; use `git
log` now.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #27
|
| |
|
|
|
|
|
| |
These can now be run much more simply by using the `--wrapper` argument
to `meson test`. For example: `meson test --wrapper=valgrind`.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
| |
|
|
|
|
|
|
| |
Automake 1.16.1 has issues with generating a valid Makefile. Since,
libgdata is one of the core-deps of GNOME, it should be ported from
Autotools + make to meson + ninja.
Significant contributions from both Iñigo Martínez and Mayank Sharma.
|