diff --git a/android/app/build.gradle b/android/app/build.gradle index 2437c113..2da3eb92 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -54,7 +54,7 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "me.sankethbk.dairyapp" minSdkVersion 21 - targetSdkVersion 33 + targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName multiDexEnabled true diff --git a/lib/features/sync/data/datasources/dropbox_sync_client.dart b/lib/features/sync/data/datasources/dropbox_sync_client.dart index 060193d0..10b238f3 100644 --- a/lib/features/sync/data/datasources/dropbox_sync_client.dart +++ b/lib/features/sync/data/datasources/dropbox_sync_client.dart @@ -5,11 +5,11 @@ import 'package:dairy_app/core/logger/logger.dart'; import 'package:dairy_app/features/auth/core/constants.dart'; import 'package:dairy_app/features/auth/presentation/bloc/user_config/user_config_cubit.dart'; import 'package:dairy_app/features/sync/data/datasources/temeplates/sync_client_template.dart'; -import 'package:stateless_dropbox_client/stateless_dropbox_client.dart'; -import 'package:http/http.dart' as http; import 'package:flutter_secure_storage/flutter_secure_storage.dart'; -import 'package:path_provider/path_provider.dart'; +import 'package:http/http.dart' as http; import 'package:path/path.dart' as p; +import 'package:path_provider/path_provider.dart'; +import 'package:stateless_dropbox_client/stateless_dropbox_client.dart'; final log = printer("DropboxSyncClient"); @@ -20,7 +20,7 @@ class DropboxSyncClient implements ISyncClient { static const DROPBOX_SECRET = "DROPBOX_SECRET"; final String dropboxClientId = 'diaryvault'; - final String dropboxKey = 'rqndas0qvioj4f1'; + final String dropboxKey = 'jgrid9k326jh3ge'; String? dropboxSecret; late FlutterSecureStorage secureStorage; diff --git a/packages/stateless_dropbox_client/lib/stateless_dropbox_client.dart b/packages/stateless_dropbox_client/lib/stateless_dropbox_client.dart index 25e9c8d4..5f1a6c3a 100644 --- a/packages/stateless_dropbox_client/lib/stateless_dropbox_client.dart +++ b/packages/stateless_dropbox_client/lib/stateless_dropbox_client.dart @@ -51,7 +51,7 @@ class Dropbox { static Future authenticate() async { final response = await FlutterWebAuth2.authenticate( url: - "https://www.dropbox.com/oauth2/authorize?client_id=rqndas0qvioj4f1&response_type=code&token_access_type=offline&redirect_uri=https://sankethbk.netlify.app/oauth2redirect", + "https://www.dropbox.com/oauth2/authorize?client_id=jgrid9k326jh3ge&response_type=code&token_access_type=offline&redirect_uri=https://sankethbk.netlify.app/oauth2redirect", callbackUrlScheme: "db-rqndas0qvioj4f1", preferEphemeral: true, );