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

Add biometry type detection to local_auth plugin #845

Merged
merged 8 commits into from
Oct 15, 2018

Conversation

pdefuns
Copy link
Contributor

@pdefuns pdefuns commented Oct 12, 2018

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 biometrics

Enum BiometricType:

  • face
  • fingerprint
  • iris (not yet implemented)

@mehmetf here's the fix according to your mail. Thanks!

@googlebot
Copy link

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. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

Copy link
Contributor

@mehmetf mehmetf left a 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/ios/Classes/LocalAuthPlugin.m Outdated Show resolved Hide resolved
packages/local_auth/ios/Classes/LocalAuthPlugin.m Outdated Show resolved Hide resolved
packages/local_auth/lib/local_auth.dart Outdated Show resolved Hide resolved
@pdefuns
Copy link
Contributor Author

pdefuns commented Oct 13, 2018

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

packages/local_auth/example/lib/main.dart Outdated Show resolved Hide resolved
packages/local_auth/lib/local_auth.dart Outdated Show resolved Hide resolved
packages/local_auth/lib/local_auth.dart Outdated Show resolved Hide resolved
packages/local_auth/lib/local_auth.dart Outdated Show resolved Hide resolved
packages/local_auth/lib/local_auth.dart Show resolved Hide resolved
@mehmetf
Copy link
Contributor

mehmetf commented Oct 14, 2018

Thank you! This looks good now. One last thing:

Please update changelog.md and pubspec.yaml with a new version: 0.3.0 since there's a new API.

@mehmetf mehmetf merged commit a211895 into flutter:master Oct 15, 2018
@sameerbakre
Copy link

this is going to be great, When can we expect this to get this version of plugin in pub?

@mehmetf
Copy link
Contributor

mehmetf commented Oct 18, 2018

Done!

@pdefuns pdefuns deleted the local_auth_biometry_type branch October 19, 2018 07:00
andreidiaconu pushed a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
Now the users can determine two things:
- Whether the phone is capable of biometrics.
- Whether any biometric checks are available to the app.
andreidiaconu added a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
4 participants