-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[local_auth] Support for macOS
platform
#140685
Comments
We don't copy implementations, since that would require maintaining two copies forever; instead we share them. See path_provider, shared_preferences, and video_player for some examples. The first step in adding macOS support would be renaming the existing iOS package. Normally we use the name of the shared implementing framework; unfortunately in this case that's the (For anyone interested in doing this, renaming needs to be done in its own PR, without any macOS additions, and then adding macOS would be a follow-up PR once the rename has landed.) |
/cc @jmagman in case you have any alternate thoughts for our latest installment of "Name That Shared iOS/macOS Code!" 🙂. |
Hi, I don't quite understand what you mean. Can you elaborate more on this statement with a simple explanation. |
I'm not sure what elaboration you are looking for. Which part isn't clear? |
I didn't understand what you are telling me to do |
I'm not telling you to do anything; what you choose to contribute is entirely up to you. I'm describing what we would accept for adding an endorsed macOS implementation of The process for getting from the current state to that state is at least three separate PRs:
The relative order of 2 and 3 isn't particularly important, but 1 must be done first. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Just wanted to give y'all a quick update, I am awaiting approval on my pr and hopefully it gets merged soon! |
This comment was marked as off-topic.
This comment was marked as off-topic.
The |
Adds macOS support for local_auth_darwin ![Screenshot 2024-03-05 at 8 30 35�AM](https://github.com/flutter/packages/assets/160153899/89bcfa78-b998-401e-869c-28b9d82a9229) ![Screenshot 2024-03-05 at 8 30 56�AM](https://github.com/flutter/packages/assets/160153899/69f0e215-1a7c-45eb-99a6-264458b0e771) ## Cancelled Example: ![Screenshot 2024-03-05 at 8 31 12�AM](https://github.com/flutter/packages/assets/160153899/1196b4e9-c010-4e96-994b-7467d1561ad1) ## Success Example ![Screenshot 2024-03-05 at 8 31 32�AM](https://github.com/flutter/packages/assets/160153899/acd0d550-3be2-46cf-957c-fbbe445abfa4) ## Error Example <img width="912" alt="Screenshot 2024-03-05 at 4 01 58�PM" src="https://github.com/flutter/packages/assets/160153899/3a16eed5-d8b1-42a2-b6ab-ca82ade101ce"> *List which issues are fixed by this PR. You must list at least one issue.* flutter/flutter#140685 *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
Updates the app-facing package to endorse `local_auth_darwin` as the macOS implementation, and require a version of that package with macOS support. Updates the README to indicate that macOS is supported. Adds macOS support to the example app (using `flutter create --platforms=macos .` in the example). Fixes flutter/flutter#140685
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Use case
The local_auth plugin currently supports only android, ios and windows platform. It would be great to have support for macOS as well.
Proposal
We can copy the implementation of local_auth_ios and make necessary and proprietary changes to support macOS platform.
The text was updated successfully, but these errors were encountered: