Skip to content

fix(passkeys_darwin): place Package.swift at Flutter-conventional path#239

Merged
kopy merged 1 commit into
mainfrom
fix/passkeys-darwin-swiftpm-layout
May 9, 2026
Merged

fix(passkeys_darwin): place Package.swift at Flutter-conventional path#239
kopy merged 1 commit into
mainfrom
fix/passkeys-darwin-swiftpm-layout

Conversation

@kopy
Copy link
Copy Markdown
Contributor

@kopy kopy commented May 9, 2026

Adds SwiftPM support to passkeys_darwin using the Flutter plugin layout convention. Closes #234. Closes #235.

  • Package.swift at darwin/passkeys_darwin/
  • Swift sources at darwin/passkeys_darwin/Sources/passkeys_darwin/
  • Podspec source_files and deployment targets aligned (iOS 13.0, macOS 10.15)
  • .gitignore for SwiftPM artifacts

Verified on iOS and macOS: passkeys_darwin resolves via SwiftPM and drops out of Podfile.lock. No version bump — to be done as a separate post-merge commit per the usual release flow.

Credit @Dopeamin for opening #235 and surfacing this.

@kopy kopy force-pushed the fix/passkeys-darwin-swiftpm-layout branch from 31d7ca5 to c0096c1 Compare May 9, 2026 20:20
Adds Package.swift at the Flutter-conventional path so Flutter's plugin
tooling discovers it (FlutterGeneratedPluginSwiftPackage now includes
passkeys_darwin and the plugin is consumed via SwiftPM rather than
falling back to CocoaPods).

- Package.swift at darwin/passkeys_darwin/ (matches shared_preferences_foundation)
- Swift sources moved to darwin/passkeys_darwin/Sources/passkeys_darwin/
- Podspec source_files path and deployment targets aligned with
  Package.swift (iOS 13.0, macOS 10.15); @available runtime gating
  unchanged
- .gitignore for SwiftPM build artifacts
- CLAUDE.md note documenting dual-build (SwiftPM + CocoaPods) convention

Verified on iOS and macOS in both modes: with SwiftPM enabled,
passkeys_darwin appears in the generated SwiftPM graph and drops out of
Podfile.lock; with SwiftPM disabled, the updated podspec source_files
path resolves and pod install pulls the plugin as before.

Closes #234. Closes #235.
@kopy kopy force-pushed the fix/passkeys-darwin-swiftpm-layout branch from c0096c1 to 23fd8ac Compare May 9, 2026 20:24
@kopy kopy merged commit 8877184 into main May 9, 2026
2 checks passed
@kopy kopy deleted the fix/passkeys-darwin-swiftpm-layout branch May 9, 2026 20:28
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.

Add Swift Package Manager support

1 participant