Skip to content

Migrate permission_handler_apple to Pigeon ProxyApi (darwin)#1547

Open
rickdijk wants to merge 8 commits into
Baseflow:mainfrom
rickdijk:main
Open

Migrate permission_handler_apple to Pigeon ProxyApi (darwin)#1547
rickdijk wants to merge 8 commits into
Baseflow:mainfrom
rickdijk:main

Conversation

@rickdijk

@rickdijk rickdijk commented Jul 13, 2026

Copy link
Copy Markdown
  • Migrate iOS from legacy Obj-C MethodChannel strategies to Pigeon ProxyApi
  • Add darwin/ Swift plugin (thin bridges) and lib/next/ Dart permission logic
  • Enable cutover via sharedDarwinSource: true and dartPluginClass: PermissionHandlerApple
  • Bump permission_handler_apple to 9.5.0 (minimum iOS 14.0 for darwin)

Pre-launch Checklist

  • I made sure the project builds.
  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.
  • I updated CHANGELOG.md to add a description of the change.
  • I updated/added relevant documentation (doc comments with ///).
  • I rebased onto main.
  • I added new tests to check the change I am making, or this PR does not need tests.
  • I made sure all existing and new tests are passing.
  • I ran dart format . and committed any changes.
  • I ran flutter analyze and fixed any errors.

Rick van Dijk and others added 8 commits July 13, 2026 11:19
Define Apple framework types in pigeon/apple_permissions.dart and commit
the generated Dart and Swift artifacts used by the darwin migration.

Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce PermissionHandlerDarwinPlugin, ProxyApiRegistrar, and per-framework
delegates that forward Pigeon calls to Apple APIs, plus SPM/podspec wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>
…lass.

Port permission orchestration and handlers to lib/next/, using Pigeon
ProxyApi types with injectable proxies for testing.

Co-authored-by: Cursor <cursoragent@cursor.com>
…o 9.5.0.

Wire PermissionHandlerDarwinPlugin and PermissionHandlerApple as the iOS
implementation and add pigeon as a runtime dependency for ProxyApi types.

Co-authored-by: Cursor <cursoragent@cursor.com>
Cover permission status mapping, manager orchestration, and platform
delegation with mocked proxies in test/next/.

Co-authored-by: Cursor <cursoragent@cursor.com>
Point the Xcode SPM reference at darwin/, raise the deployment target to
14.0, and add a platform_interface dependency for tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
Describe the new architecture, Pigeon regeneration steps, and iOS 14
minimum deployment target for the darwin implementation.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rickdijk
rickdijk requested a review from mvanbeusekom July 13, 2026 17:48
@rickdijk rickdijk self-assigned this Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant