|
1 | | -// swift-tools-version:5.6 |
| 1 | +// swift-tools-version:6.0 |
2 | 2 | import PackageDescription |
3 | 3 |
|
4 | 4 | let package = Package( |
5 | 5 | name: "xcodes", |
6 | 6 | platforms: [ |
7 | | - .macOS(.v10_15) |
| 7 | + .macOS(.v13), |
| 8 | + .iOS(.v17) |
8 | 9 | ], |
9 | 10 | products: [ |
10 | 11 | .executable(name: "xcodes", targets: ["xcodes"]), |
11 | | - .library(name: "XcodesKit", targets: ["XcodesKit"]), |
12 | | - .library(name: "AppleAPI", targets: ["AppleAPI"]), |
| 12 | + .library(name: "XcodesCLIKit", targets: ["XcodesCLIKit"]), |
13 | 13 | ], |
14 | 14 | dependencies: [ |
15 | 15 | .package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "1.1.4")), |
16 | | - .package(url: "https://github.com/mxcl/Path.swift.git", .upToNextMinor(from: "0.16.0")), |
| 16 | + .package(url: "https://github.com/mxcl/Path.swift.git", from: "1.0.0"), |
17 | 17 | .package(url: "https://github.com/mxcl/Version.git", .upToNextMinor(from: "1.0.3")), |
18 | | - .package(url: "https://github.com/mxcl/PromiseKit.git", .upToNextMinor(from: "6.22.1")), |
19 | | - .package(url: "https://github.com/PromiseKit/Foundation.git", .upToNextMinor(from: "3.4.0")), |
20 | 18 | .package(url: "https://github.com/scinfu/SwiftSoup.git", .upToNextMinor(from: "2.0.0")), |
21 | 19 | .package(url: "https://github.com/mxcl/LegibleError.git", .upToNextMinor(from: "1.0.1")), |
22 | 20 | .package(url: "https://github.com/kishikawakatsumi/KeychainAccess.git", .upToNextMinor(from: "3.2.0")), |
23 | 21 | .package(url: "https://github.com/xcodereleases/data", revision: "fcf527b187817f67c05223676341f3ab69d4214d"), |
24 | 22 | .package(url: "https://github.com/onevcat/Rainbow.git", .upToNextMinor(from: "3.2.0")), |
25 | | - .package(url: "https://github.com/jpsim/Yams", .upToNextMinor(from: "5.0.1")), |
26 | | - .package(url: "https://github.com/xcodesOrg/swift-srp", branch: "main") |
| 23 | + .package(path: "../XcodesLoginKit"), |
| 24 | + .package(path: "../XcodesApp/Xcodes/XcodesKit") |
27 | 25 | ], |
28 | 26 | targets: [ |
29 | 27 | .executableTarget( |
30 | 28 | name: "xcodes", |
31 | 29 | dependencies: [ |
32 | 30 | .product(name: "ArgumentParser", package: "swift-argument-parser"), |
33 | | - "XcodesKit" |
| 31 | + "XcodesCLIKit", |
| 32 | + .product(name: "XcodesKit", package: "XcodesKit") |
34 | 33 | ]), |
35 | 34 | .testTarget( |
36 | 35 | name: "xcodesTests", |
37 | 36 | dependencies: [ |
38 | 37 | "xcodes" |
39 | 38 | ]), |
40 | 39 | .target( |
41 | | - name: "XcodesKit", |
| 40 | + name: "XcodesCLIKit", |
42 | 41 | dependencies: [ |
43 | | - "AppleAPI", |
44 | 42 | "KeychainAccess", |
45 | 43 | "LegibleError", |
46 | 44 | .product(name: "Path", package: "Path.swift"), |
47 | | - "PromiseKit", |
48 | | - .product(name: "PMKFoundation", package: "Foundation"), |
49 | 45 | "SwiftSoup", |
50 | 46 | "Unxip", |
51 | 47 | "Version", |
52 | 48 | .product(name: "XCModel", package: "data"), |
53 | | - "Rainbow", |
54 | | - "Yams" |
55 | | - ]), |
| 49 | + "XcodesLoginKit", |
| 50 | + .product(name: "XcodesKit", package: "XcodesKit"), |
| 51 | + "Rainbow" |
| 52 | + ], |
| 53 | + path: "Sources/XcodesKit"), |
56 | 54 | .testTarget( |
57 | 55 | name: "XcodesKitTests", |
58 | 56 | dependencies: [ |
59 | | - "XcodesKit", |
| 57 | + "XcodesCLIKit", |
| 58 | + .product(name: "XcodesKit", package: "XcodesKit"), |
60 | 59 | "Version" |
61 | 60 | ], |
62 | 61 | resources: [ |
63 | 62 | .copy("Fixtures"), |
64 | 63 | ]), |
65 | 64 | .target(name: "Unxip"), |
66 | | - .target( |
67 | | - name: "AppleAPI", |
68 | | - dependencies: [ |
69 | | - "PromiseKit", |
70 | | - .product(name: "PMKFoundation", package: "Foundation"), |
71 | | - "Rainbow", |
72 | | - .product(name: "SRP", package: "swift-srp") |
73 | | - ]), |
74 | | - .testTarget( |
75 | | - name: "AppleAPITests", |
76 | | - dependencies: [ |
77 | | - "AppleAPI" |
78 | | - ], |
79 | | - resources: [ |
80 | | - .copy("Fixtures"), |
81 | | - ]), |
82 | 65 | ] |
83 | 66 | ) |
0 commit comments