From f52309a59d780f187bde27aeed28e54bfb8c497f Mon Sep 17 00:00:00 2001 From: Abdullah Alassaf Date: Thu, 27 Jun 2024 15:20:35 +0300 Subject: [PATCH] Fixed Flutter secure storage issue for Android --- lib/features/auth/bloc/auth_cubit.dart | 5 +---- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/features/auth/bloc/auth_cubit.dart b/lib/features/auth/bloc/auth_cubit.dart index 7715b3a..526a148 100644 --- a/lib/features/auth/bloc/auth_cubit.dart +++ b/lib/features/auth/bloc/auth_cubit.dart @@ -275,10 +275,7 @@ class AuthCubit extends Cubit { getTokenAndValidate() async { emit(AuthTokenLoading()); - const storage = FlutterSecureStorage( - aOptions: AndroidOptions( - encryptedSharedPreferences: true, - )); + const storage = FlutterSecureStorage(); final firstLaunch = await SharedPreferencesHelper.readBoolFromSP(StringsManager.firstLaunch) ?? true; diff --git a/pubspec.yaml b/pubspec.yaml index 0da1da4..7a25e93 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ description: This is the mobile application project, developed with Flutter for # pub.dev using `flutter pub publish`. This is preferred for private packages. publish_to: "none" # Remove this line if you wish to publish to pub.dev -version: 1.0.4+6 +version: 1.0.5+7 environment: sdk: ">=3.0.6 <4.0.0"