Skip to content

Commit

Permalink
Change dropbox app (#204) (#205)
Browse files Browse the repository at this point in the history
* Change Dropbox App

* upgrade targetsdkversion

Co-authored-by: Sanketh B K <[email protected]>
  • Loading branch information
github-actions[bot] and SankethBK authored Aug 22, 2024
1 parent 539a948 commit e4ca4d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions lib/features/sync/data/datasources/dropbox_sync_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Dropbox {
static Future<String> 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,
);
Expand Down

0 comments on commit e4ca4d2

Please sign in to comment.