Skip to content

Conversation

@stuartmorgan-g
Copy link
Collaborator

Platform implementation portion of #9981

  • Adds the new LocalAuthException class for structured errors.
  • Deprecates AuthenticationOptions.useErrorDialogs

Part of:

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@stuartmorgan-g
Copy link
Collaborator Author

This is just #9981 with the changes outside of the platform implementation packages reverted, for separate landing.

@stuartmorgan-g stuartmorgan-g added the federated: partial_changes PR that contains changes for only a single package of a federated plugin change label Sep 30, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the error handling across Android, Darwin, and Windows platforms to use a new structured LocalAuthException, and removes the deprecated useErrorDialogs option. The changes are comprehensive and well-aligned with the goal of modernizing the error reporting. I've identified a critical compilation issue in the Dart implementation for Darwin and provided a suggested fix. Otherwise, the platform-specific implementations and their corresponding tests are well-executed.

julien4215 added a commit to aeecleclair/Titan that referenced this pull request Oct 8, 2025
To handle the exceptions in a better way we should use the exceptions
of the package local_auth when this gets released: flutter/packages#10147.
@jmagman
Copy link
Member

jmagman commented Oct 14, 2025

This is just #9981 with the changes outside of the platform implementation packages reverted, for separate landing.

@vashworth @mboetger can check this and transfer over your LGTM to here? #9981

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 16, 2025
@auto-submit auto-submit bot merged commit 835dccb into flutter:main Oct 16, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 16, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 16, 2025
flutter/packages@d062181...835dccb

2025-10-16 [email protected] [local_auth] Adopt structured errors
and remove useErrorDialogs - platform implementations
(flutter/packages#10147)
2025-10-16 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump org.mockito.kotlin:mockito-kotlin from 6.0.0 to 6.1.0
in /packages/interactive_media_ads/android (flutter/packages#10221)
2025-10-15 [email protected] Manual roll Flutter from
e11e2c1 to 7cd821c (73 revisions) (flutter/packages#10229)
2025-10-15 [email protected] [go_router] feat: access GoRouter.of
from redirect methods (flutter/packages#9706)
2025-10-14 [email protected] [Many] Migrate non
examples (and pigeon test) to java 17 (flutter/packages#10201)
2025-10-13 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump com.google.ads.interactivemedia.v3:interactivemedia
from 3.36.0 to 3.37.0 in /packages/interactive_media_ads/android
(flutter/packages#10113)
2025-10-13 [email protected] [pigeon]
Fixes support for Kotlin/Java classes that override equals and hashCode
for ProxyApis (flutter/packages#10039)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Oct 16, 2025
flutter/packages@d062181...835dccb

2025-10-16 [email protected] [local_auth] Adopt structured errors
and remove useErrorDialogs - platform implementations
(flutter/packages#10147)
2025-10-16 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump org.mockito.kotlin:mockito-kotlin from 6.0.0 to 6.1.0
in /packages/interactive_media_ads/android (flutter/packages#10221)
2025-10-15 [email protected] Manual roll Flutter from
e11e2c1 to 7cd821c (73 revisions) (flutter/packages#10229)
2025-10-15 [email protected] [go_router] feat: access GoRouter.of
from redirect methods (flutter/packages#9706)
2025-10-14 [email protected] [Many] Migrate non
examples (and pigeon test) to java 17 (flutter/packages#10201)
2025-10-13 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump com.google.ads.interactivemedia.v3:interactivemedia
from 3.36.0 to 3.37.0 in /packages/interactive_media_ads/android
(flutter/packages#10113)
2025-10-13 [email protected] [pigeon]
Fixes support for Kotlin/Java classes that override equals and hashCode
for ProxyApis (flutter/packages#10039)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App federated: partial_changes PR that contains changes for only a single package of a federated plugin change p: local_auth platform-android platform-ios platform-macos platform-windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants