-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Add biometry type detection to local_auth plugin #845
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! A few comments.
packages/local_auth/android/src/main/java/io/flutter/plugins/localauth/LocalAuthPlugin.java
Outdated
Show resolved
Hide resolved
…ableBiometrics + enums)
I signed it! |
CLAs look good, thanks! |
packages/local_auth/android/src/main/java/io/flutter/plugins/localauth/LocalAuthPlugin.java
Outdated
Show resolved
Hide resolved
Thank you! This looks good now. One last thing: Please update changelog.md and pubspec.yaml with a new version: |
this is going to be great, When can we expect this to get this version of plugin in pub? |
Done! |
Now the users can determine two things: - Whether the phone is capable of biometrics. - Whether any biometric checks are available to the app.
This reverts commit 3dbd333.
Should resolve Issue flutter/flutter#22727
Two new functions were added to the local_auth plugin
bool canCheckBiometrics
> if device is able to do local auth (with biometrics)List<BiometricType> getAvailableBiometrics
> list of enrolled biometricsEnum BiometricType:
@mehmetf here's the fix according to your mail. Thanks!