Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Fix Dart 2 type error in local_auth #395

Merged
merged 1 commit into from
Feb 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/local_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.2

* Fixed Dart 2 type error.

## 0.1.1

* Simplified and upgraded Android project template to Android SDK 27.
Expand Down
2 changes: 1 addition & 1 deletion packages/local_auth/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ android {
}

dependencies {
compile "com.android.support:support-v4:26.1.0"
implementation "com.android.support:support-v4:26.1.0"
}
4 changes: 2 additions & 2 deletions packages/local_auth/lib/local_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class LocalAuthentication {
bool stickyAuth: false,
AndroidAuthMessages androidAuthStrings: const AndroidAuthMessages(),
IOSAuthMessages iOSAuthStrings: const IOSAuthMessages(),
}) {
}) async {
assert(localizedReason != null);
final Map<String, Object> args = <String, Object>{
'localizedReason': localizedReason,
Expand All @@ -71,6 +71,6 @@ class LocalAuthentication {
'operating systems.',
details: 'Your operating system is ${Platform.operatingSystem}');
}
return _channel.invokeMethod('authenticateWithBiometrics', args);
return await _channel.invokeMethod('authenticateWithBiometrics', args);
}
}
2 changes: 1 addition & 1 deletion packages/local_auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: local_auth
description: Flutter plugin for Android and iOS device authentication sensors
such as Fingerprint Reader and Touch ID.
version: 0.1.1
version: 0.1.2
author: Flutter Team <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/local_auth

Expand Down