Skip to content

Commit 99f99eb

Browse files
KM-13322 Integrate PIALibrary as a local package (#205)
* KM-13322 Setup PIALibrary as a local dependency for PIA VPN * KM-13322 Setup and trigger PIALibraryTests accordingly
1 parent 85befb6 commit 99f99eb

298 files changed

Lines changed: 31382 additions & 59 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
xcuserdata/
5+
DerivedData/
6+
.swiftpm/configuration/registries.json
7+
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8+
.netrc

LocalPackages/PIALibrary/CLA.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
# Contributor agreement
3+
4+
By contributing any improvement, modification, or change to this project, I hereby certify that:
5+
6+
(a) The contribution was authored or created in whole or in part by me and I have the full and unrestricted ownership right and title to submit the contribution under the MIT license; or
7+
8+
(b) The contribution is based upon previously authored work that, to the best of my knowledge, is licensed appropriately under an open source license and I have the full and unrestricted right under that open source license to submit that work with modifications, whether created in whole or in part by me, under the MIT license; or
9+
10+
(c) The contribution was lawfully provided to me by a licensed third-party who certified (a), (b) or (c) and I have not modified the contribution.
11+
12+
I understand and agree that the contents of this project and the contents of this contribution are considered to be part of the public record and that a record of the contribution (including all personal information I submit with it) shall be maintained indefinitely and may be redistributed to third-parties consistent with this terms of this project or the open source license(s) involved.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Contribution Guidelines
2+
Private Internet Access welcomes community contributions, and are always looking for ways in which to improve. Please take a look at our contribution guidelines, and get involved with the PIA community.
3+
4+
## Bugs and Issues
5+
Have you found a bug? Is our software behaving in an unexpected way? Please check the open issues for duplicates -- perhaps a fix is already in development, or maybe a solution has already been published.
6+
If not then please submit a bug report using our [template](/.github/ISSUE_TEMPLATE.md)
7+
8+
## Feature Requests
9+
Feature requests can also be submitted as issues. We’d be grateful if you checked for duplicates also before submitting a feature request.
10+
11+
## Working with our Code
12+
* Fork the repository. Make sure to keep your repository synced with the source repo.
13+
* When you are ready to start working on a new feature, cut a new branch from `develop` with the prefix `feature/` (e.g. `feature/name-of-feature`).
14+
* Refer to the [README](/README.md) for instructions on how to install and build.
15+
16+
## Making Pull Requests
17+
* Sync the `develop` branch in your fork with the `develop` branch in the source repo.
18+
* Merge your feature branch into `develop`.
19+
* Make your pull request from `develop` in your fork to `develop` in the source.
20+
* Use short and concise commit messages.
21+
* Lint your code before committing and making a pull request.
22+
* Write unit tests for new features and make sure all tests are passing.
23+
* If your pull request contains multiple commits or commits that are not meaningful, consider squashing them.

LocalPackages/PIALibrary/LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2018-Present Private Internet Access
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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

Comments
 (0)