Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit eee1e01

Browse files
committed
Add Package.swift
1 parent 01fe272 commit eee1e01

File tree

1 file changed

+7
-39
lines changed

1 file changed

+7
-39
lines changed

Package.swift

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,18 @@
1-
// swift-tools-version: 5.9
1+
// swift-tools-version: 5.10
22

33
import PackageDescription
44

55
let package = Package(
66
name: "WordPressKit",
7-
platforms: [.iOS(.v13)],
7+
platforms: [.iOS(.v15)],
88
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"]),
2010
],
2111
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"
4816
),
4917
]
5018
)

0 commit comments

Comments
 (0)