-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional Google Login / Drive Backup #29
Comments
@KyleKun I want to start on this; can you please elaborate on this? |
In settings page, there's a backup tutorial button. This should become a backup feature instead, redirect to login with Google account and then sync the folder OneSecondDiary (inside DCIM) with Drive / Google Photos. |
And please remember not to use proprietary libraries. Otherwise F-Droid inclusion won't be allowed any more. |
But in case it is unavoidable, we can keep a variant without it for f-droid. |
Sure, then the PR should allow a build condition to disable a build with the proprietary library. 👍 |
We need to use Google Auth APIs and Drive APIs. |
Using an API isn't a problem here. Using certain APIs might just be shown as a warning on F-Droid. But using a proprietary library will exclude the app from being published. Right now I'm using Round Sync (which also supports Google Drive and other clouds for backing up btw) for automatic backups of One Second Diary clips. Round Sync is a fork of RCX and uses the free Rclone sync library. And because it uses only free components, both apps can be published on F-Droid (RCX and Round Sync). |
User will need Round Sync app in this case. So it's dependency of the other app. |
@alexanderadam We could just use HTTP calls so we don't get warnings
|
how to use Google login in Flutter without a library?import 'package:http/http.dart' as http; import 'dart:convert'; import 'dart:typed_data';Future signInWithGoogle() async { // Create the authorization URL // Open a webview or use url_launcher to open authUrl in a browser // Exchange the authorization code for an access token Map<String, dynamic> body = { // Send POST request to exchange code for access token // Parse the response to get access token how to use google drive in Flutter without a library?import 'dart:convert'; import 'package:http/http.dart' as http;Future uploadToDrive(String accessToken) async { // File content to be uploaded // Create the HTTP request to upload the file if (response.statusCode == 200) { |
No description provided.
The text was updated successfully, but these errors were encountered: