OpenArchive / Save-app-android-old

This is the Save app for Android
https://open-archive.org
GNU General Public License v3.0
93 stars 26 forks source link

Add Google Drive as a new backend #511

Closed foundscapes closed 4 months ago

foundscapes commented 8 months ago

I wish we could use Save to send media to Google Drive because many of our DACs would like to use it as a backend for their verified collections. (to be done after 2.0 ux android and ios updates are finished, unless Michi can do this for android while benjamin works on ios (ideal scenario)

tladesignz commented 8 months ago

iOS sibling issue: https://github.com/OpenArchive/Save-app-ios/issues/252

uniqx commented 8 months ago

According to gdrive docs, Save needs to register with Google Cloud Console to obtain access credentials. (credentials.json?) https://developers.google.com/drive/api/quickstart/java#set_up_your_environment @tladesignz @foundscapes Could you provide these credentials to me?

foundscapes commented 8 months ago

Thanks for letting us know @uniqx - Save needs an account with Google Cloud Console and use that account, to create a API key for Google Drive. @tladesignz can you set this up for us?

uniqx commented 5 months ago

During working on this feature, I've discovered this ANR on Android 14: #534

uniqx commented 5 months ago

I 've merged Android GDrive support into master now, so the next release will come with GDrive support.

While it seames to be working reliable in my tests, it might still be rough around some edges, so I recommend rigorous testing.

I'm also aware of some edge cases we could look into, if you think it's worth more time:


Next steps are to add the fingerprints of the Save release certificate to cloud console

SHA1: A4:FA:BD:AA:6E:72:1C:08:1F:ED:A1:66:03:FE:98:F5:CF:57:F1:24
SHA256: E0:8E:63:CA:87:FD:B9:32:47:DB:AB:38:F2:E7:F4:10:48:96:BB:48:7A:F5:98:08:38:AC:E6:4C:93:C1:5A:3C

Here's what this looks like on cloud console with my dev credentials:

tladesignz commented 5 months ago

As per the latest prophecies of the Google gods, please reduce requested permission scopes to "https://www.googleapis.com/auth/drive.file".

Otherwise, we'll never accepted by them.

The existing folder selector can stay, since we can at least show the folders, which Save created itself.

tladesignz commented 5 months ago

TODOs:

uniqx commented 5 months ago

all listed TODOs fixed, and merged; will become available in 0.3.1-alpha2

tladesignz commented 5 months ago

Is this ready for QA? If so, please assign to Purvi and set project status to "awaiting QA". Thanks!

foundscapes commented 4 months ago

@purvi-ranawat please test asap

purvi-ranawat commented 4 months ago

@foundscapes / @uniqx : This is working fine.

Environment :

OS : Android 14 Device : OnePlus Nord 3 CE Lite, Samsung Galaxy A13 Build version : 0.3.1-alpha2