Commit ab2369a
Iwan Gerber
fix(workmanager_apple): Correct SPM structure and product name for Flutter compatibility
- Move Package.swift to ios/workmanager_apple/ subdirectory (Flutter SPM requirement)
- Rename product from 'workmanager_apple' to 'workmanager-apple' (Flutter naming convention)
- Add missing UIKit import in Extensions.swift for UIBackgroundFetchResult
- Move Sources, Resources, Assets to correct subdirectory
This fixes Swift Package Manager integration with Flutter's SPM plugin system,
which expects:
1. Package.swift at ios/<plugin_name>/Package.swift
2. Product names with hyphens (e.g., 'workmanager-apple' not 'workmanager_apple')
Without these fixes, Flutter falls back to CocoaPods instead of using SPM.1 parent 7f4f870 commit ab2369a
File tree
15 files changed
+2
-1
lines changed- workmanager_apple/ios/workmanager_apple
- Assets
- Resources
- Sources/workmanager_apple
- pigeon
15 files changed
+2
-1
lines changedFile renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments