plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[local_auth] Fixes show dialog when biometrics is not enrolled on Android devices.

Open vcrash opened this issue 2 years ago • 1 comments

Description

  • Added AuthenticationErrorHandler class to encapsulate error handling logic which can be reused in several places. It can help to avoid applying different error processing logic for same kind of errors in different places.
  • Added AuthResultErrorCodes class containing result error codes constants. These error codes are matching to those in error_codes.dart.

Related issues

https://github.com/flutter/flutter/issues/96646

Pre-launch Checklist

  • [X] I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • [X] I read the Tree Hygiene wiki page, which explains my responsibilities.
  • [X] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
  • [X] I signed the CLA.
  • [X] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • [X] I listed at least one issue that this PR fixes in the description above.
  • [X] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • [X] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • [X] I updated/added relevant documentation (doc comments with ///).
  • [X] I added new tests to check the change I am making, or this PR is test-exempt.
  • [X] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

vcrash avatar Jun 26 '22 12:06 vcrash

@camsim99 Since you are looking at local_auth at the moment, maybe you could do the initial review here?

stuartmorgan avatar Jun 30 '22 20:06 stuartmorgan

What's the status of this PR? It's not clear to me if all of the last round of review comments have been addressed yet, and it looks like some of the tests don't compile.

stuartmorgan avatar Aug 22 '22 20:08 stuartmorgan

Closing this PR since the issue is not reproducing in local_auth 2.1.2. Further refactoring is not seems to be directly related to this issue.

vcrash avatar Sep 10 '22 08:09 vcrash