|
1 | | -// swift-tools-version: 5.9 |
| 1 | +// swift-tools-version: 5.10 |
2 | 2 |
|
3 | 3 | import PackageDescription |
4 | 4 |
|
5 | 5 | let package = Package( |
6 | 6 | name: "WordPressKit", |
7 | | - platforms: [.iOS(.v13)], |
| 7 | + platforms: [.iOS(.v15)], |
8 | 8 | products: [ |
9 | | - .library(name: "APIInterface", targets: ["APIInterface"]), |
10 | | - .library(name: "CoreAPI", targets: ["CoreAPI"]), |
11 | | - ], |
12 | | - dependencies: [ |
13 | | - // .package(url: "https://github.com/wordpress-mobile/WordPress-iOS-Shared.git", from: "2.3.1"), |
14 | | - // See https://github.com/wordpress-mobile/WordPress-iOS-Shared/pull/354 |
15 | | - .package(url: "https://github.com/wordpress-mobile/WordPress-iOS-Shared.git", branch: "mokagio/swiftlint-read-as-dependency"), |
16 | | - .package(url: "https://github.com/wordpress-mobile/wpxmlrpc", from: "0.10.0"), |
17 | | - // Test dependencies |
18 | | - .package(url: "https://github.com/AliSoftware/OHHTTPStubs", from: "9.1.0"), |
19 | | - .package(url: "https://github.com/Alamofire/Alamofire", from: "5.8.1"), |
| 9 | + .library(name: "WordPressKit", targets: ["WordPressKit"]), |
20 | 10 | ], |
21 | 11 | targets: [ |
22 | | - .target(name: "APIInterface"), |
23 | | - .target( |
24 | | - name: "CoreAPI", |
25 | | - dependencies: [ |
26 | | - .target(name: "APIInterface"), |
27 | | - .product( |
28 | | - name: "WordPressShared", |
29 | | - package: "WordPress-iOS-Shared", |
30 | | - // Constrain to iOS only to avoid having to explicitly set a macOS version because of this library's requirements. |
31 | | - condition: .when(platforms: [.iOS]) |
32 | | - ), |
33 | | - "wpxmlrpc" |
34 | | - ] |
35 | | - ), |
36 | | - .testTarget( |
37 | | - name: "CoreAPITests", |
38 | | - dependencies: [ |
39 | | - .target(name: "CoreAPI"), |
40 | | - .product(name: "OHHTTPStubs", package: "OHHTTPStubs"), |
41 | | - .product(name: "OHHTTPStubsSwift", package: "OHHTTPStubs"), |
42 | | - "Alamofire", |
43 | | - ], |
44 | | - path: "Tests/CoreAPITests", |
45 | | - resources: [ |
46 | | - .process("Stubs") // Relative to path |
47 | | - ] |
| 12 | + .binaryTarget( |
| 13 | + name: "WordPressKit", |
| 14 | + url: "https://github.com/user-attachments/files/16200320/WordPressKit.zip", |
| 15 | + checksum: "fa2ddc1fedcc225beb23d23168043bd78bbd12d43e187cc0dd772aef8d81ee20" |
48 | 16 | ), |
49 | 17 | ] |
50 | 18 | ) |
0 commit comments