Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit f994265

Browse files
authored
Merge pull request #9 from minhdanh/master
Upgrade local_auth to version 2
2 parents 4ab1e1e + 2f7c65e commit f994265

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 31
29+
compileSdkVersion 33
3030

3131
sourceSets {
3232
main.java.srcDirs += 'src/main/kotlin'

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
flutter:
1313
sdk: flutter
1414
shared_preferences: ^2.0.5
15-
local_auth: ^1.1.1
15+
local_auth: ^2.1.3
1616

1717
pin_lock:
1818
# When depending on this package from a real application you should use:

lib/src/entities/authenticator_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class AuthenticatorImpl with WidgetsBindingObserver implements Authenticator {
277277
try {
278278
final isSuccessful = await _biometricAuth.authenticate(
279279
localizedReason: userFacingExplanation,
280-
biometricOnly: true,
280+
options: AuthenticationOptions(biometricOnly: true),
281281
);
282282
if (isSuccessful) {
283283
_lockController.unlock();

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
dartz: ^0.10.1
1717
flutter_bloc: ^8.0.1
1818
equatable: ^2.0.3
19-
local_auth: ^1.1.1
19+
local_auth: ^2.1.3
2020
crypto: ^3.0.1
2121
shared_preferences: ^2.0.5
2222

0 commit comments

Comments
 (0)