Skip to content

Commit 2ad7db3

Browse files
committed
feat: add Swift Package Manager support - Phase 2
- Add Package.swift with iOS 14+ target and proper resource handling - Configure SPM target for workmanager_apple with Sources/workmanager_apple path - Include Resources/PrivacyInfo.xcprivacy processing for SPM - Support Swift tools version 5.9 ✅ Verified: SPM builds successfully with flutter config --enable-swift-package-manager ✅ Verified: CocoaPods backward compatibility maintained ✅ Verified: Both dependency managers work independently Users can now choose their preferred dependency manager: - CocoaPods: flutter config --no-enable-swift-package-manager - SPM: flutter config --enable-swift-package-manager This completes the core SPM migration while maintaining full backward compatibility.
1 parent e338292 commit 2ad7db3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "workmanager_apple",
8+
platforms: [
9+
.iOS(.v14)
10+
],
11+
products: [
12+
.library(
13+
name: "workmanager_apple",
14+
targets: ["workmanager_apple"]
15+
)
16+
],
17+
targets: [
18+
.target(
19+
name: "workmanager_apple",
20+
path: "Sources/workmanager_apple",
21+
resources: [
22+
.process("../Resources")
23+
]
24+
)
25+
]
26+
)

0 commit comments

Comments
 (0)