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

Change LocalAuth to use Biometric API #1621

Merged
merged 3 commits into from
May 23, 2019
Merged

Change LocalAuth to use Biometric API #1621

merged 3 commits into from
May 23, 2019

Conversation

mehmetf
Copy link
Contributor

@mehmetf mehmetf commented May 21, 2019

Description

Migrates the LocalAuth plugin on Android to Biometric API for showing the fingerprint dialog. This will allow us to implement more biometric authentication schemes (and others such as PIN) in the future.

Related Issues

flutter/flutter#18690

Breaking Change

This is a breaking change because it requires Flutter applications on Android to extend a FragmentActivity rather than a regular Activity. The fix is to use FlutterFragmentActivity instead of FlutterActivity. The y version has been bumped due to this.

@mehmetf mehmetf requested a review from mklim May 21, 2019 22:17
@mehmetf
Copy link
Contributor Author

mehmetf commented May 22, 2019

@jiajiabingcheng Please take a look at this as well. It would be good if you copied this to Leafy's codebase and gave it a try.

Copy link
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@mehmetf mehmetf merged commit a3988f8 into flutter:master May 23, 2019
@mehmetf mehmetf deleted the patch-09 branch May 23, 2019 03:54
@awazgyawali
Copy link
Contributor

awazgyawali commented May 23, 2019

It seems that we have to change the Activity class manually, shouldn't this be mentioned on the readme?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants