2024-09-23 13:02:26 +00:00
|
|
|
// swift-tools-version: 5.9
|
|
|
|
// The swift-tools-version declares the minimum version of Swift required to build this package.
|
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "Library",
|
|
|
|
defaultLocalization: "en",
|
|
|
|
platforms: [
|
|
|
|
.iOS(.v16),
|
|
|
|
.macOS(.v13),
|
|
|
|
.tvOS(.v17)
|
|
|
|
],
|
|
|
|
products: [
|
|
|
|
// Products define the executables and libraries a package produces, making them visible to other packages.
|
2024-10-29 13:30:41 +00:00
|
|
|
.library(
|
|
|
|
name: "AppUIMain",
|
2024-11-20 17:05:47 +00:00
|
|
|
targets: ["AppUIMainWrapper"]
|
2024-10-29 13:30:41 +00:00
|
|
|
),
|
|
|
|
.library(
|
|
|
|
name: "AppUITV",
|
2024-11-20 17:05:47 +00:00
|
|
|
targets: ["AppUITVWrapper"]
|
|
|
|
),
|
|
|
|
.library(
|
|
|
|
name: "CommonIAP",
|
|
|
|
targets: ["CommonIAP"]
|
2024-10-29 13:30:41 +00:00
|
|
|
),
|
2024-11-03 12:16:13 +00:00
|
|
|
.library(
|
|
|
|
name: "CommonLibrary",
|
|
|
|
targets: ["CommonLibrary"]
|
|
|
|
),
|
2024-11-12 15:42:19 +00:00
|
|
|
.library(
|
|
|
|
name: "LegacyV2",
|
|
|
|
targets: ["LegacyV2"]
|
|
|
|
),
|
2024-11-13 20:05:53 +00:00
|
|
|
.library(
|
|
|
|
name: "PassepartoutImplementations",
|
|
|
|
targets: ["PassepartoutImplementations"]
|
|
|
|
),
|
2024-09-23 13:02:26 +00:00
|
|
|
.library(
|
|
|
|
name: "TunnelLibrary",
|
2024-11-13 20:05:53 +00:00
|
|
|
targets: ["CommonLibrary"]
|
2024-11-02 09:11:59 +00:00
|
|
|
),
|
|
|
|
.library(
|
|
|
|
name: "UILibrary",
|
|
|
|
targets: ["UILibrary"]
|
2024-09-23 13:02:26 +00:00
|
|
|
)
|
|
|
|
],
|
|
|
|
dependencies: [
|
2024-11-14 23:24:22 +00:00
|
|
|
// .package(url: "git@github.com:passepartoutvpn/passepartoutkit-source", from: "0.11.0"),
|
2024-11-26 18:14:56 +00:00
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-source", revision: "dd4d614e9334b0a788cf8216793471074d1ec5dd"),
|
2024-10-04 00:43:18 +00:00
|
|
|
// .package(path: "../../../passepartoutkit-source"),
|
2024-10-12 13:49:17 +00:00
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-openvpn-openssl", from: "0.9.1"),
|
2024-10-04 00:43:18 +00:00
|
|
|
// .package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-openvpn-openssl", revision: "031863a1cd683962a7dfe68e20b91fa820a1ecce"),
|
|
|
|
// .package(path: "../../../passepartoutkit-source-openvpn-openssl"),
|
2024-11-25 10:34:31 +00:00
|
|
|
// .package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-wireguard-go", from: "0.9.2"),
|
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-wireguard-go", revision: "68fceaa664913988b2d9053405738682a30b87b8"),
|
2024-10-04 00:43:18 +00:00
|
|
|
// .package(path: "../../../passepartoutkit-source-wireguard-go"),
|
2024-10-31 00:15:07 +00:00
|
|
|
.package(url: "https://github.com/Cocoanetics/Kvitto", from: "1.0.0")
|
2024-09-23 13:02:26 +00:00
|
|
|
],
|
|
|
|
targets: [
|
|
|
|
// Targets are the basic building blocks of a package, defining a module or a test suite.
|
|
|
|
// Targets can depend on other targets in this package and products from dependencies.
|
|
|
|
.target(
|
|
|
|
name: "AppData",
|
2024-10-10 14:20:36 +00:00
|
|
|
dependencies: []
|
2024-09-23 13:02:26 +00:00
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "AppDataProfiles",
|
|
|
|
dependencies: [
|
|
|
|
"AppData",
|
2024-11-03 12:16:13 +00:00
|
|
|
"CommonLibrary"
|
2024-09-23 13:02:26 +00:00
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Profiles.xcdatamodeld")
|
|
|
|
]
|
|
|
|
),
|
2024-10-28 15:57:23 +00:00
|
|
|
.target(
|
|
|
|
name: "AppDataProviders",
|
|
|
|
dependencies: [
|
|
|
|
"AppData",
|
2024-11-03 12:16:13 +00:00
|
|
|
"CommonLibrary"
|
2024-10-28 15:57:23 +00:00
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Providers.xcdatamodeld")
|
|
|
|
]
|
|
|
|
),
|
2024-10-10 14:20:36 +00:00
|
|
|
.target(
|
|
|
|
name: "AppUI",
|
2024-09-23 13:02:26 +00:00
|
|
|
dependencies: [
|
2024-11-02 09:11:59 +00:00
|
|
|
.target(name: "AppUIMain", condition: .when(platforms: [.iOS, .macOS])),
|
|
|
|
.target(name: "AppUITV", condition: .when(platforms: [.tvOS]))
|
2024-09-23 13:02:26 +00:00
|
|
|
]
|
|
|
|
),
|
2024-10-29 13:30:41 +00:00
|
|
|
.target(
|
|
|
|
name: "AppUIMain",
|
2024-11-13 20:05:53 +00:00
|
|
|
dependencies: ["UILibrary"],
|
2024-10-29 13:30:41 +00:00
|
|
|
resources: [
|
|
|
|
.process("Resources")
|
|
|
|
]
|
|
|
|
),
|
2024-11-20 17:05:47 +00:00
|
|
|
.target(
|
|
|
|
name: "AppUIMainWrapper",
|
|
|
|
dependencies: [
|
|
|
|
.target(name: "AppUIMain", condition: .when(platforms: [.iOS, .macOS]))
|
|
|
|
]
|
|
|
|
),
|
2024-11-02 07:41:32 +00:00
|
|
|
.target(
|
2024-11-02 09:11:59 +00:00
|
|
|
name: "AppUITV",
|
|
|
|
dependencies: ["UILibrary"]
|
2024-11-02 07:41:32 +00:00
|
|
|
),
|
2024-11-20 17:05:47 +00:00
|
|
|
.target(
|
|
|
|
name: "AppUITVWrapper",
|
|
|
|
dependencies: [
|
|
|
|
.target(name: "AppUITV", condition: .when(platforms: [.tvOS]))
|
|
|
|
]
|
|
|
|
),
|
2024-10-29 13:30:41 +00:00
|
|
|
.target(
|
2024-11-02 09:11:59 +00:00
|
|
|
name: "CommonAPI",
|
|
|
|
dependencies: ["CommonLibrary"],
|
|
|
|
resources: [
|
|
|
|
.copy("API")
|
|
|
|
]
|
2024-10-29 13:30:41 +00:00
|
|
|
),
|
2024-11-20 17:05:47 +00:00
|
|
|
.target(
|
|
|
|
name: "CommonIAP",
|
|
|
|
dependencies: ["CommonUtils"]
|
|
|
|
),
|
2024-09-23 13:02:26 +00:00
|
|
|
.target(
|
|
|
|
name: "CommonLibrary",
|
|
|
|
dependencies: [
|
2024-11-20 17:05:47 +00:00
|
|
|
"CommonIAP",
|
2024-11-03 12:16:13 +00:00
|
|
|
"CommonUtils",
|
2024-11-08 11:37:09 +00:00
|
|
|
.product(name: "PassepartoutKit", package: "passepartoutkit-source")
|
2024-09-23 13:02:26 +00:00
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Resources")
|
|
|
|
]
|
|
|
|
),
|
2024-11-02 09:11:59 +00:00
|
|
|
.target(
|
2024-11-06 12:20:12 +00:00
|
|
|
name: "CommonUtils",
|
|
|
|
dependencies: ["Kvitto"]
|
2024-11-02 09:11:59 +00:00
|
|
|
),
|
2024-10-03 16:41:27 +00:00
|
|
|
.target(
|
|
|
|
name: "LegacyV2",
|
|
|
|
dependencies: [
|
2024-11-12 15:42:19 +00:00
|
|
|
"CommonLibrary",
|
2024-11-13 20:05:53 +00:00
|
|
|
"PassepartoutImplementations"
|
2024-10-03 16:41:27 +00:00
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Profiles.xcdatamodeld")
|
|
|
|
]
|
|
|
|
),
|
2024-11-08 11:37:09 +00:00
|
|
|
.target(
|
|
|
|
name: "PassepartoutImplementations",
|
|
|
|
dependencies: [
|
2024-11-13 20:05:53 +00:00
|
|
|
.product(name: "PassepartoutKit", package: "passepartoutkit-source"),
|
2024-11-08 11:37:09 +00:00
|
|
|
.product(name: "PassepartoutOpenVPNOpenSSL", package: "passepartoutkit-source-openvpn-openssl"),
|
|
|
|
.product(name: "PassepartoutWireGuardGo", package: "passepartoutkit-source-wireguard-go")
|
|
|
|
]
|
|
|
|
),
|
2024-09-23 13:02:26 +00:00
|
|
|
.target(
|
2024-11-02 09:11:59 +00:00
|
|
|
name: "UILibrary",
|
|
|
|
dependencies: [
|
|
|
|
"AppDataProfiles",
|
|
|
|
"AppDataProviders",
|
2024-11-03 12:16:13 +00:00
|
|
|
"CommonAPI",
|
|
|
|
"CommonLibrary"
|
2024-11-02 09:11:59 +00:00
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Resources")
|
|
|
|
]
|
2024-09-23 13:02:26 +00:00
|
|
|
),
|
2024-10-29 13:30:41 +00:00
|
|
|
.testTarget(
|
|
|
|
name: "AppUIMainTests",
|
|
|
|
dependencies: ["AppUIMain"]
|
|
|
|
),
|
2024-11-03 12:16:13 +00:00
|
|
|
.testTarget(
|
|
|
|
name: "CommonLibraryTests",
|
|
|
|
dependencies: ["CommonLibrary"]
|
|
|
|
),
|
2024-11-12 15:42:19 +00:00
|
|
|
.testTarget(
|
|
|
|
name: "LegacyV2Tests",
|
2024-11-12 17:35:44 +00:00
|
|
|
dependencies: ["LegacyV2"]
|
2024-11-12 15:42:19 +00:00
|
|
|
),
|
2024-09-26 21:13:55 +00:00
|
|
|
.testTarget(
|
2024-11-02 09:11:59 +00:00
|
|
|
name: "UILibraryTests",
|
|
|
|
dependencies: ["UILibrary"]
|
2024-09-23 13:02:26 +00:00
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|