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.
|
|
|
|
.library(
|
|
|
|
name: "AppLibrary",
|
2024-09-26 21:13:55 +00:00
|
|
|
targets: ["AppLibrary"]
|
|
|
|
),
|
|
|
|
.library(
|
|
|
|
name: "AppUI",
|
2024-10-10 14:20:36 +00:00
|
|
|
targets: ["AppUI"]
|
2024-09-23 13:02:26 +00:00
|
|
|
),
|
|
|
|
.library(
|
|
|
|
name: "TunnelLibrary",
|
2024-09-26 21:13:55 +00:00
|
|
|
targets: ["CommonLibrary"]
|
2024-09-23 13:02:26 +00:00
|
|
|
)
|
|
|
|
],
|
|
|
|
dependencies: [
|
2024-10-04 07:58:42 +00:00
|
|
|
// .package(url: "git@github.com:passepartoutvpn/passepartoutkit-source", from: "0.8.0"),
|
2024-10-10 14:03:02 +00:00
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-source", revision: "90267688fa16be83e7f75f26d5eb5b3094b309ec"),
|
2024-10-04 00:43:18 +00:00
|
|
|
// .package(path: "../../../passepartoutkit-source"),
|
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-openvpn-openssl", from: "0.8.0"),
|
|
|
|
// .package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-openvpn-openssl", revision: "031863a1cd683962a7dfe68e20b91fa820a1ecce"),
|
|
|
|
// .package(path: "../../../passepartoutkit-source-openvpn-openssl"),
|
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-wireguard-go", from: "0.8.0"),
|
|
|
|
// .package(url: "git@github.com:passepartoutvpn/passepartoutkit-source-wireguard-go", revision: "ea39fa396e98cfd2b9a235f0a801aaf03a37e30a"),
|
|
|
|
// .package(path: "../../../passepartoutkit-source-wireguard-go"),
|
2024-09-23 13:02:26 +00:00
|
|
|
.package(url: "https://github.com/Cocoanetics/Kvitto", from: "1.0.0")
|
|
|
|
],
|
|
|
|
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-10-10 14:20:36 +00:00
|
|
|
"AppLibrary",
|
|
|
|
"UtilsLibrary"
|
2024-09-23 13:02:26 +00:00
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Profiles.xcdatamodeld")
|
|
|
|
]
|
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "AppLibrary",
|
2024-10-10 14:20:36 +00:00
|
|
|
dependencies: ["CommonLibrary"]
|
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "AppUI",
|
2024-09-23 13:02:26 +00:00
|
|
|
dependencies: [
|
2024-10-10 14:20:36 +00:00
|
|
|
"AppDataProfiles",
|
|
|
|
"AppLibrary",
|
2024-09-26 21:13:55 +00:00
|
|
|
"Kvitto",
|
2024-10-03 16:41:27 +00:00
|
|
|
"LegacyV2",
|
2024-09-26 21:13:55 +00:00
|
|
|
"UtilsLibrary"
|
2024-10-10 14:20:36 +00:00
|
|
|
],
|
2024-09-23 13:02:26 +00:00
|
|
|
resources: [
|
|
|
|
.process("Resources")
|
|
|
|
]
|
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "CommonLibrary",
|
|
|
|
dependencies: [
|
2024-10-10 22:24:06 +00:00
|
|
|
.product(name: "PassepartoutAPIBundle", package: "passepartoutkit-source"),
|
2024-10-04 00:43:18 +00:00
|
|
|
.product(name: "PassepartoutKit", package: "passepartoutkit-source"),
|
|
|
|
.product(name: "PassepartoutOpenVPNOpenSSL", package: "passepartoutkit-source-openvpn-openssl"),
|
|
|
|
.product(name: "PassepartoutWireGuardGo", package: "passepartoutkit-source-wireguard-go")
|
2024-09-23 13:02:26 +00:00
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Resources")
|
|
|
|
]
|
|
|
|
),
|
2024-10-03 16:41:27 +00:00
|
|
|
.target(
|
|
|
|
name: "LegacyV2",
|
|
|
|
dependencies: [
|
2024-10-10 14:20:36 +00:00
|
|
|
"UtilsLibrary",
|
2024-10-04 00:43:18 +00:00
|
|
|
.product(name: "PassepartoutKit", package: "passepartoutkit-source")
|
2024-10-03 16:41:27 +00:00
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Profiles.xcdatamodeld")
|
|
|
|
]
|
|
|
|
),
|
2024-09-23 13:02:26 +00:00
|
|
|
.target(
|
|
|
|
name: "UtilsLibrary"
|
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "AppLibraryTests",
|
|
|
|
dependencies: ["AppLibrary"]
|
2024-09-26 21:13:55 +00:00
|
|
|
),
|
|
|
|
.testTarget(
|
|
|
|
name: "AppUITests",
|
|
|
|
dependencies: ["AppUI"]
|
2024-09-23 13:02:26 +00:00
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|