|
| 1 | + |
| 2 | +// swift-tools-version:5.9 |
| 3 | +// The swift-tools-version declares the minimum version of Swift required to build this package. |
| 4 | + |
| 5 | +import PackageDescription |
| 6 | + |
| 7 | +let package = Package( |
| 8 | + name: "PIALibrary", |
| 9 | + defaultLocalization: "en", |
| 10 | + platforms: [ |
| 11 | + .iOS(.v12), |
| 12 | + .tvOS(.v17) |
| 13 | + ], |
| 14 | + products: [ |
| 15 | + .library( |
| 16 | + name: "PIALibrary", |
| 17 | + targets: [ |
| 18 | + "PIALibrary", |
| 19 | + "PIALibraryUtilObjC" |
| 20 | + ] |
| 21 | + ) |
| 22 | + ], |
| 23 | + dependencies: [ |
| 24 | + .package(url: "git@github.com:pia-foss/mobile-ios-releases-kpi.git", exact: "1.2.3"), |
| 25 | + .package(url: "git@github.com:pia-foss/mobile-ios-releases-csi.git", exact: "1.3.3"), |
| 26 | + .package(url: "git@github.com:pia-foss/mobile-ios-releases-account.git", exact: "1.4.5"), |
| 27 | + .package(url: "git@github.com:pia-foss/mobile-ios-releases-regions.git", exact: "1.6.3"), |
| 28 | + .package(url: "git@github.com:pia-foss/mobile-ios-openvpn.git", branch: "master"), |
| 29 | + .package(url: "git@github.com:pia-foss/mobile-ios-wireguard.git", revision: "bf7b4258d9c9279c6051bba0b7a73ca7d5f9547e"), |
| 30 | + .package(url: "https://github.com/hkellaway/Gloss.git", from: "3.1.0"), |
| 31 | + .package(url: "https://github.com/airbnb/lottie-ios.git", from: "3.4.1"), |
| 32 | + .package(url: "https://github.com/huri000/SwiftEntryKit.git", from: "1.0.3"), |
| 33 | + .package(url: "https://github.com/Orderella/PopupDialog.git", branch: "master"), |
| 34 | + .package(url: "https://github.com/SwiftyBeaver/SwiftyBeaver.git", from: "1.9.0"), |
| 35 | + .package(url: "https://github.com/ashleymills/Reachability.swift.git", from: "4.3.0"), |
| 36 | + .package(url: "https://github.com/Alamofire/Alamofire.git", exact: "5.0.1"), |
| 37 | + .package(url: "git@github.com:pia-foss/mobile-ios-networking.git", exact: "1.3.1") |
| 38 | + ], |
| 39 | + targets: [ |
| 40 | + .target( |
| 41 | + name: "PIALibrary", |
| 42 | + dependencies: [ |
| 43 | + "SwiftyBeaver", |
| 44 | + "Gloss", |
| 45 | + "PIALibraryUtilObjC", |
| 46 | + "Alamofire", |
| 47 | + .product(name: "PopupDialog", package: "PopupDialog", condition: .when(platforms: [.iOS])), |
| 48 | + .product(name: "SwiftEntryKit", package: "SwiftEntryKit", condition: .when(platforms: [.iOS])), |
| 49 | + .product(name: "Lottie", package: "lottie-ios"), |
| 50 | + .product(name: "Reachability", package: "Reachability.swift"), |
| 51 | + .product(name: "PIAKPI", package: "mobile-ios-releases-kpi"), |
| 52 | + .product(name: "PIACSI", package: "mobile-ios-releases-csi"), |
| 53 | + .product(name: "PIARegions", package: "mobile-ios-releases-regions"), |
| 54 | + .product(name: "PIAAccount", package: "mobile-ios-releases-account"), |
| 55 | + .product(name: "PIAWireguard", package: "mobile-ios-wireguard", condition: .when(platforms: [.iOS])), |
| 56 | + .product(name: "TunnelKit", package: "mobile-ios-openvpn", condition: .when(platforms: [.iOS])), |
| 57 | + .product(name: "TunnelKitOpenVPN", package: "mobile-ios-openvpn", condition: TargetDependencyCondition.when(platforms: [.iOS])), |
| 58 | + .product(name: "TunnelKitOpenVPNAppExtension", package: "mobile-ios-openvpn", condition: TargetDependencyCondition.when(platforms: [.iOS])), |
| 59 | + .product(name: "NWHttpConnection", package: "mobile-ios-networking") |
| 60 | + ], |
| 61 | + resources: [ |
| 62 | + .process("Resources") |
| 63 | + ] |
| 64 | + ), |
| 65 | + .target( |
| 66 | + name: "PIALibraryUtilObjC", |
| 67 | + dependencies: [] |
| 68 | + ), |
| 69 | + .testTarget( |
| 70 | + name: "PIALibraryTests", |
| 71 | + dependencies: [ |
| 72 | + "PIALibrary", |
| 73 | + ], |
| 74 | + resources: [ |
| 75 | + .process("Resources") |
| 76 | + ] |
| 77 | + ), |
| 78 | + ] |
| 79 | +) |
0 commit comments