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",
|
|
|
|
targets: ["AppUIMain"]
|
|
|
|
),
|
|
|
|
.library(
|
|
|
|
name: "AppUITV",
|
|
|
|
targets: ["AppUITV"]
|
|
|
|
),
|
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-17 21:27:02 +00:00
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-source", revision: "c0a615bc7a85d68a9b00d3703d0dae6efab9bdd2"),
|
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-13 11:07:30 +00:00
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-wireguard-go", from: "0.9.2"),
|
2024-10-11 17:11:42 +00:00
|
|
|
// .package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-wireguard-go", revision: "ea39fa396e98cfd2b9a235f0a801aaf03a37e30a"),
|
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-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-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-09-23 13:02:26 +00:00
|
|
|
.target(
|
|
|
|
name: "CommonLibrary",
|
|
|
|
dependencies: [
|
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
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|