From e4ca4d2e1d90a1faa7166b5b2fe4a89069529911 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 23 Aug 2024 01:02:11 +0530 Subject: [PATCH] Change dropbox app (#204) (#205) * Change Dropbox App * upgrade targetsdkversion Co-authored-by: Sanketh B K <51091231+SankethBK@users.noreply.github.com> --- android/app/build.gradle | 2 +- .../sync/data/datasources/dropbox_sync_client.dart | 8 ++++---- .../lib/stateless_dropbox_client.dart | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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, );