Skip to content

Commit d519889

Browse files
jmagmanamantoux
authored andcommitted
[local_auth] Bump minimum Flutter version and iOS deployment target (flutter#4354)
1 parent b9ddefe commit d519889

File tree

7 files changed

+24
-27
lines changed

7 files changed

+24
-27
lines changed

packages/local_auth/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 1.1.8
22

3+
* Update minimum Flutter SDK to 2.5 and iOS deployment target to 9.0.
34
* Updated Android lint settings.
45

56
## 1.1.7

packages/local_auth/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
<string>arm64</string>
2626
</array>
2727
<key>MinimumOSVersion</key>
28-
<string>8.0</string>
28+
<string>9.0</string>
2929
</dict>
3030
</plist>

packages/local_auth/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@
494494
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
495495
GCC_WARN_UNUSED_FUNCTION = YES;
496496
GCC_WARN_UNUSED_VARIABLE = YES;
497-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
497+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
498498
MTL_ENABLE_DEBUG_INFO = YES;
499499
ONLY_ACTIVE_ARCH = YES;
500500
SDKROOT = iphoneos;
@@ -544,7 +544,7 @@
544544
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
545545
GCC_WARN_UNUSED_FUNCTION = YES;
546546
GCC_WARN_UNUSED_VARIABLE = YES;
547-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
547+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
548548
MTL_ENABLE_DEBUG_INFO = NO;
549549
SDKROOT = iphoneos;
550550
TARGETED_DEVICE_FAMILY = "1,2";

packages/local_auth/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description: Demonstrates how to use the local_auth plugin.
33
publish_to: none
44

55
environment:
6-
sdk: ">=2.12.0 <3.0.0"
7-
flutter: ">=1.12.13+hotfix.5"
6+
sdk: ">=2.14.0 <3.0.0"
7+
flutter: ">=2.5.0"
88

99
dependencies:
1010
flutter:

packages/local_auth/ios/Classes/FLTLocalAuthPlugin.m

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,23 +148,19 @@ - (void)authenticate:(NSDictionary *)arguments withFlutterResult:(FlutterResult)
148148
_lastResult = nil;
149149
context.localizedFallbackTitle = @"";
150150

151-
if (@available(iOS 9.0, *)) {
152-
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&authError]) {
153-
[context evaluatePolicy:kLAPolicyDeviceOwnerAuthentication
154-
localizedReason:arguments[@"localizedReason"]
155-
reply:^(BOOL success, NSError *error) {
156-
dispatch_async(dispatch_get_main_queue(), ^{
157-
[self handleAuthReplyWithSuccess:success
158-
error:error
159-
flutterArguments:arguments
160-
flutterResult:result];
161-
});
162-
}];
163-
} else {
164-
[self handleErrors:authError flutterArguments:arguments withFlutterResult:result];
165-
}
151+
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&authError]) {
152+
[context evaluatePolicy:kLAPolicyDeviceOwnerAuthentication
153+
localizedReason:arguments[@"localizedReason"]
154+
reply:^(BOOL success, NSError *error) {
155+
dispatch_async(dispatch_get_main_queue(), ^{
156+
[self handleAuthReplyWithSuccess:success
157+
error:error
158+
flutterArguments:arguments
159+
flutterResult:result];
160+
});
161+
}];
166162
} else {
167-
// Fallback on earlier versions
163+
[self handleErrors:authError flutterArguments:arguments withFlutterResult:result];
168164
}
169165
}
170166

packages/local_auth/ios/local_auth.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Downloaded by pub (not CocoaPods).
1717
s.source_files = 'Classes/**/*'
1818
s.public_header_files = 'Classes/**/*.h'
1919
s.dependency 'Flutter'
20-
s.platform = :ios, '8.0'
21-
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
20+
s.platform = :ios, '9.0'
21+
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
2222
end
2323

packages/local_auth/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ description: Flutter plugin for Android and iOS devices to allow local
33
authentication via fingerprint, touch ID, face ID, passcode, pin, or pattern.
44
repository: https://github.com/flutter/plugins/tree/master/packages/local_auth
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+local_auth%22
6-
version: 1.1.7
6+
version: 1.1.8
77

88
environment:
9-
sdk: ">=2.12.0 <3.0.0"
10-
flutter: ">=2.0.0"
9+
sdk: ">=2.14.0 <3.0.0"
10+
flutter: ">=2.5.0"
1111

1212
flutter:
1313
plugin:

0 commit comments

Comments
 (0)