Commit 23fd8ac
committed
feat(passkeys_darwin): add SwiftPM support
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.1 parent c08597f commit 23fd8ac
9 files changed
Lines changed: 28 additions & 3 deletions
File tree
- packages/passkeys/passkeys_darwin
- darwin
- passkeys_darwin
- Sources/passkeys_darwin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments