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-09-23 13:02:26 +00:00
|
|
|
targets: [
|
2024-09-26 21:13:55 +00:00
|
|
|
"AppDataProfiles",
|
|
|
|
"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-09-26 21:13:55 +00:00
|
|
|
// .package(url: "git@github.com:passepartoutvpn/passepartoutkit", from: "0.7.0"),
|
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit", revision: "2d7e0210d8754664ce45528d50c1a1e6a36ad27c"),
|
2024-09-23 13:02:26 +00:00
|
|
|
// .package(path: "../../../passepartoutkit"),
|
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-openvpn-openssl", from: "0.6.0"),
|
|
|
|
// .package(path: "../../../passepartoutkit-openvpn-openssl"),
|
|
|
|
.package(url: "git@github.com:passepartoutvpn/passepartoutkit-wireguard-go", from: "0.6.2"),
|
|
|
|
// .package(path: "../../../passepartoutkit-wireguard-go"),
|
|
|
|
.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",
|
|
|
|
dependencies: [
|
|
|
|
.product(name: "PassepartoutKit", package: "passepartoutkit")
|
|
|
|
]
|
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "AppDataProfiles",
|
|
|
|
dependencies: [
|
|
|
|
"AppData",
|
|
|
|
"UtilsLibrary",
|
|
|
|
.product(name: "PassepartoutKit", package: "passepartoutkit")
|
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Profiles.xcdatamodeld")
|
|
|
|
]
|
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "AppLibrary",
|
|
|
|
dependencies: [
|
|
|
|
"AppData",
|
|
|
|
"CommonLibrary",
|
2024-09-26 21:13:55 +00:00
|
|
|
"Kvitto",
|
|
|
|
"UtilsLibrary"
|
|
|
|
]
|
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "AppUI",
|
|
|
|
dependencies: ["AppLibrary"],
|
2024-09-23 13:02:26 +00:00
|
|
|
resources: [
|
|
|
|
.process("Resources")
|
|
|
|
]
|
|
|
|
),
|
|
|
|
.target(
|
|
|
|
name: "CommonLibrary",
|
|
|
|
dependencies: [
|
|
|
|
.product(name: "PassepartoutKit", package: "passepartoutkit"),
|
|
|
|
.product(name: "PassepartoutOpenVPNOpenSSL", package: "passepartoutkit-openvpn-openssl"),
|
2024-09-26 21:13:55 +00:00
|
|
|
.product(name: "PassepartoutWireGuardGo", package: "passepartoutkit-wireguard-go")
|
2024-09-23 13:02:26 +00:00
|
|
|
],
|
|
|
|
resources: [
|
|
|
|
.process("Resources")
|
|
|
|
]
|
|
|
|
),
|
|
|
|
.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
|
|
|
)
|
|
|
|
]
|
|
|
|
)
|