支持spm的通用仓库(备用,目前文档没有对外)
lpw
2025-07-03 992de0855d2496c35331b1289e0e64fd09b82c4d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
// swift-tools-version: 6.0
 
import PackageDescription
 
let package = Package(
    name: "wingsdk-ios",
    platforms: [
        .iOS(.v12)
    ],
    products: [
        .library(name: "WASdkIntf", targets: ["WASdkIntf"]),
        .library(name: "WASdkImpl", targets: ["WASdkImpl"]),
        .library(name: "WAPushImpl", targets: ["WAPushImpl"]),
        .library(name: "WAAiHelpImpl", targets: ["WAAiHelpImpl"]),
//        .library(name: "WAAdmobImpl", targets: ["WAAdmobImpl"]),
        .library(name: "WAAfImpl", targets: ["WAAfImpl"]),
        .library(name: "WAApImpl", targets: ["WAApImpl"]),
        .library(name: "WAFbImpl", targets: ["WAFbImpl"]),
        .library(name: "WAFirebaseImpl", targets: ["WAFirebaseImpl"]),
    ],
    targets: [
 
        // MARK: - WASdkIntf
        .binaryTarget(name: "WASdkIntfBinary", path: "./WASdkIntf/WASdkIntf.xcframework"),
        .target(
            name: "WASdkIntf",
            dependencies: ["WASdkIntfBinary"],
            path: "Sources/WASdkIntf",
            publicHeadersPath: ".",
            cSettings: [.headerSearchPath(".")]
        ),
 
 
        // MARK: - WASdkImpl
        .binaryTarget(
            name: "AFNetworking",
            path: "./WASdkImpl/AFNetworking.xcframework"
        ),
        .binaryTarget(
            name: "WASdkImplBinary",
            path: "./WASdkImpl/WASdkImpl.xcframework"
        ),
        .binaryTarget(
            name: "FMDB",
            path: "./WASdkImpl/FMDB.xcframework"
        ),
        .binaryTarget(
            name: "Toast",
            path: "./WASdkImpl/Toast.xcframework"
        ),
        .binaryTarget(
            name: "WACommon",
            path: "./WASdkImpl/WACommon.xcframework"
        ),
        .binaryTarget(
            name: "Didomi",
            path: "./WASdkImpl/Didomi.xcframework"
        ),
        .target(
            name: "WASdkImpl",
            dependencies: [
                "WASdkImplBinary",
                "AFNetworking",
                "FMDB",
                "Toast",
                "WACommon",
                "Didomi"
            ],
            path: "Sources/WASdkImpl",
            resources: [.copy("config/wa_sdk_impl_config_winga.xml")],
            publicHeadersPath: ".",
            cSettings: [.headerSearchPath(".")]
        ),
 
        // MARK: - WAAiHelpImpl
        .binaryTarget(name: "AIHelpSupportSDK", path: "./WAAiHelpImpl/AIHelpSupportSDK.xcframework"),
        .binaryTarget(name: "WAAiHelpImplBinary", path: "./WAAiHelpImpl/WAAIhelpImpl.xcframework"),
        .target(
            name: "WAAiHelpImpl",
            dependencies: ["AIHelpSupportSDK", "WAAiHelpImplBinary"],
            path: "Sources/WAAiHelpImpl",
            resources: [.copy("config/wa_sdk_impl_config_aihelp.xml")],
            publicHeadersPath: ".",
            cSettings: [.headerSearchPath(".")],
            linkerSettings: [.linkedFramework("PhotosUI")]
        ),
 
        // MARK: - WAAdmobImpl
//        .binaryTarget(name: "WAAdmobImplBinary", path: "./WAAdmobImpl/WAAdmobImpl.xcframework"),
//        .binaryTarget(name: "GoogleMobileAds", path: "./WAAdmobImpl/GoogleMobileAds.xcframework"),
//        .binaryTarget(name: "UserMessagingPlatform", path: "./WAAdmobImpl/UserMessagingPlatform.xcframework"),
//        .target(
//            name: "WAAdmobImpl",
//            dependencies: ["WAAdmobImplBinary", "GoogleMobileAds", "UserMessagingPlatform"],
//            path: "Sources/WAAdmobImpl",
//            resources: [.process("config/wa_sdk_impl_config_admob.xml")],
//            publicHeadersPath: ".",
//            cSettings: [.headerSearchPath(".")]
//        ),
 
        // MARK: - WAAfImpl
        .binaryTarget(name: "WAAfImplBinary", path: "./WAAfImpl/WAAfImpl.xcframework"),
        .binaryTarget(name: "AppsFlyerLib", path: "./WAAfImpl/AppsFlyerLib.xcframework"),
        .target(
            name: "WAAfImpl",
            dependencies: ["WAAfImplBinary", "AppsFlyerLib"],
            path: "Sources/WAAfImpl",
            resources: [.process("config/wa_sdk_impl_config_appsflyer.xml")],
            publicHeadersPath: ".",
            cSettings: [.headerSearchPath(".")]
        ),
 
        // MARK: - WAApImpl
        .binaryTarget(name: "WAApImplBinary", path: "./WAApImpl/WAApImpl.xcframework"),
        .target(
            name: "WAApImpl",
            dependencies: ["WAApImplBinary"],
            path: "Sources/WAApImpl",
            resources: [.process("config/wa_sdk_impl_config_apple.xml")],
            publicHeadersPath: ".",
            cSettings: [.headerSearchPath(".")]
        ),
 
        // MARK: - WAFbImpl
        .binaryTarget(name: "WAFbImplBinary", path: "./WAFbImpl/WAFbImpl.xcframework"),
        .binaryTarget(name: "FBAEMKit", path: "./WAFbImpl/FBAEMKit.xcframework"),
        .binaryTarget(name: "FBSDKCoreKit", path: "./WAFbImpl/FBSDKCoreKit.xcframework"),
        .binaryTarget(name: "FBSDKCoreKit_Basics", path: "./WAFbImpl/FBSDKCoreKit_Basics.xcframework"),
        .binaryTarget(name: "FBSDKGamingServicesKit", path: "./WAFbImpl/FBSDKGamingServicesKit.xcframework"),
        .binaryTarget(name: "FBSDKLoginKit", path: "./WAFbImpl/FBSDKLoginKit.xcframework"),
        .binaryTarget(name: "FBSDKShareKit", path: "./WAFbImpl/FBSDKShareKit.xcframework"),
        .target(
            name: "WAFbImpl",
            dependencies: [
                "WAFbImplBinary",
                "FBAEMKit",
                "FBSDKCoreKit",
                "FBSDKCoreKit_Basics",
                "FBSDKGamingServicesKit",
                "FBSDKLoginKit",
                "FBSDKShareKit"
            ],
            path: "Sources/WAFbImpl",
            resources: [.process("config/wa_sdk_impl_config_facebook.xml")],
            publicHeadersPath: ".",
            cSettings: [.headerSearchPath(".")],
            linkerSettings: [.linkedFramework("Accelerate")]
        ),
 
        
 
 
        
        
        // MARK: - WAFirebaseImpl
        .binaryTarget(name: "WAFirebaseImplBinary", path: "./WAFirebaseImpl/WAFirebaseImpl.xcframework"),
        .binaryTarget(name: "FBLPromises", path: "./WAFirebaseImpl/FBLPromises.xcframework"),
        .binaryTarget(name: "FirebaseAnalytics", path: "./WAFirebaseImpl/FirebaseAnalytics.xcframework"),
        .binaryTarget(name: "FirebaseCore", path: "./WAFirebaseImpl/FirebaseCore.xcframework"),
        .binaryTarget(name: "FirebaseCoreInternal", path: "./WAFirebaseImpl/FirebaseCoreInternal.xcframework"),
        .binaryTarget(name: "FirebaseInstallations", path: "./WAFirebaseImpl/FirebaseInstallations.xcframework"),
        .binaryTarget(name: "GoogleAppMeasurement", path: "./WAFirebaseImpl/GoogleAppMeasurement.xcframework"),
        .binaryTarget(name: "GoogleAppMeasurementIdentitySupport", path: "./WAFirebaseImpl/GoogleAppMeasurementIdentitySupport.xcframework"),
        .binaryTarget(name: "GoogleUtilities", path: "./WAFirebaseImpl/GoogleUtilities.xcframework"),
        .binaryTarget(name: "GoogleAdsOnDeviceConversion", path: "./WAFirebaseImpl/GoogleAdsOnDeviceConversion.xcframework"),
 
        
        .binaryTarget(name: "nanopb", path: "./WAFirebaseImpl/nanopb.xcframework"),
        .target(
            name: "WAFirebaseImpl",
            dependencies: [
                "WAFirebaseImplBinary",
                "FBLPromises",
                "FirebaseAnalytics",
                "FirebaseCore",
                "FirebaseCoreInternal",
                "FirebaseInstallations",
                "GoogleAppMeasurement",
                "GoogleAppMeasurementIdentitySupport",
                "GoogleUtilities",
                "nanopb",
                "GoogleAdsOnDeviceConversion",
 
            ],
            path: "Sources/WAFirebaseImpl",
            resources: [.process("config")],
            publicHeadersPath: ".",
            cSettings: [.headerSearchPath(".")]
        ),
 
        // MARK: - WAPushImpl
        .binaryTarget(name: "WAPushImplBinary", path: "./WAPushImpl/WAPushImpl.xcframework"),
        .target(
            name: "WAPushImpl",
            dependencies: ["WAPushImplBinary"],
            path: "Sources/WAPushImpl",
            resources: [.process("config/wa_sdk_impl_config_push.xml")],
            publicHeadersPath: ".",
            cSettings: [.headerSearchPath(".")]
        ),
 
 
    ]
)