Skip to content

Commit

Permalink
[Re-login] Upgrade flutter_secure_storage to access the key in Keycha…
Browse files Browse the repository at this point in the history
…in iOS
  • Loading branch information
hoangdat committed Oct 25, 2023
1 parent ce0c201 commit 3a74bf0
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 19 deletions.
4 changes: 2 additions & 2 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'
platform :ios, '11.3'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down Expand Up @@ -49,7 +49,7 @@ post_install do |installer|
config.build_settings['ENABLE_BITCODE'] = 'NO'

# see https://github.com/flutter-webrtc/flutter-webrtc/issues/1054
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.3'
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = 'arm64 i386'

config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
Expand Down
6 changes: 3 additions & 3 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.3;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down Expand Up @@ -757,7 +757,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.3;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -807,7 +807,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.3;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand Down
28 changes: 15 additions & 13 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -981,11 +981,12 @@ packages:
flutter_secure_storage:
dependency: "direct main"
description:
name: flutter_secure_storage
sha256: f2afec1f1762c040a349ea2a588e32f442da5d0db3494a52a929a97c9e550bc5
url: "https://pub.dev"
source: hosted
version: "7.0.1"
path: flutter_secure_storage
ref: develop
resolved-ref: "3bb93366161a787b07c45d8ce98c7405b40fbf1f"
url: "https://github.com/mogol/flutter_secure_storage.git"
source: git
version: "9.0.0"
flutter_secure_storage_linux:
dependency: transitive
description:
Expand All @@ -998,18 +999,19 @@ packages:
dependency: transitive
description:
name: flutter_secure_storage_macos
sha256: ff0768a6700ea1d9620e03518e2e25eac86a8bd07ca3556e9617bfa5ace4bd00
sha256: bd33935b4b628abd0b86c8ca20655c5b36275c3a3f5194769a7b3f37c905369c
url: "https://pub.dev"
source: hosted
version: "2.0.1"
version: "3.0.1"
flutter_secure_storage_platform_interface:
dependency: transitive
dependency: "direct overridden"
description:
name: flutter_secure_storage_platform_interface
sha256: b3773190e385a3c8a382007893d678ae95462b3c2279e987b55d140d3b0cb81b
url: "https://pub.dev"
source: hosted
version: "1.0.1"
path: flutter_secure_storage_platform_interface
ref: develop
resolved-ref: "3bb93366161a787b07c45d8ce98c7405b40fbf1f"
url: "https://github.com/mogol/flutter_secure_storage.git"
source: git
version: "1.0.2"
flutter_secure_storage_web:
dependency: transitive
description:
Expand Down
13 changes: 12 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ dependencies:
flutter_olm: ^1.2.0
flutter_openssl_crypto: ^0.1.0
flutter_ringtone_player: ^3.1.1
flutter_secure_storage: ^7.0.1
# FIXME: change to pub.dev package when the fix for keychain iOS releases
flutter_secure_storage:
git:
url: https://github.com/mogol/flutter_secure_storage.git
path: flutter_secure_storage
ref: develop
flutter_svg: ^0.22.0
# FIXME: change to upstream when https://github.com/AbdulRahmanAlHamali/flutter_typeahead/pull/528 is merge
flutter_typeahead:
Expand Down Expand Up @@ -246,6 +251,12 @@ dependency_overrides:
git:
url: https://github.com/linagora/matrix_link_text.git
ref: twake-supported
# FIXME: remove it when the fix in flutter_secure_storage for iOS releases
flutter_secure_storage_platform_interface:
git:
url: https://github.com/mogol/flutter_secure_storage.git
path: flutter_secure_storage_platform_interface
ref: develop

cider:
link_template:
Expand Down

0 comments on commit 3a74bf0

Please sign in to comment.