Commit ad0e257f authored by Davide De Rosa's avatar Davide De Rosa

Merge branch 'mr/publish-podspec' into 'master'

Publish podspec
parents 3a95c75d 1ae1d26c
Pod::Spec.new do |s|
s.name = "PIALibrary"
s.version = "1.1"
s.version = "1.1.0"
s.summary = "PIA client library in Swift."
s.homepage = "https://www.privateinternetaccess.com/"
......@@ -9,22 +9,22 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/pia-foss/client-library-apple.git", :tag => "v#{s.version}" }
s.ios.deployment_target = "9.0"
s.osx.deployment_target = "10.11"
#s.osx.deployment_target = "10.11"
s.default_subspecs = "Core", "Library"
s.subspec "Core" do |p|
p.source_files = "PIALibrary/Sources/Core/**/*.swift"
p.osx.exclude_files = "PIALibrary/Sources/Core/InApp",
"PIALibrary/Sources/Core/Account/InApp"
#p.osx.exclude_files = "PIALibrary/Sources/Core/InApp",
# "PIALibrary/Sources/Core/Account/InApp"
end
s.subspec "Library" do |p|
p.source_files = "PIALibrary/Sources/Library/**/*.swift"
p.osx.exclude_files = "PIALibrary/Sources/Library/InApp"
#p.osx.exclude_files = "PIALibrary/Sources/Library/InApp"
p.resources = "PIALibrary/Resources/Library/**/*"
p.ios.frameworks = "UIKit"
p.osx.frameworks = "Cocoa"
#p.osx.frameworks = "Cocoa"
p.dependency "PIALibrary/Core"
p.dependency "PIALibrary/Util"
p.dependency "Gloss", "~> 2"
......@@ -68,10 +68,10 @@ Pod::Spec.new do |s|
p.ios.private_header_files = "PIALibrary/Sources/Util/iOS/*.h"
p.ios.preserve_paths = "PIALibrary/Sources/Util/iOS/*.modulemap"
p.ios.pod_target_xcconfig = { "SWIFT_INCLUDE_PATHS" => "${PODS_TARGET_SRCROOT}/PIALibrary/Sources/Util/iOS" }
p.osx.source_files = "PIALibrary/Sources/Util/macOS/*.{h,m,swift}"
p.osx.private_header_files = "PIALibrary/Sources/Util/macOS/*.h"
p.osx.preserve_paths = "PIALibrary/Sources/Util/macOS/*.modulemap"
p.osx.pod_target_xcconfig = { "SWIFT_INCLUDE_PATHS" => "${PODS_TARGET_SRCROOT}/PIALibrary/Sources/Util/macOS" }
#p.osx.source_files = "PIALibrary/Sources/Util/macOS/*.{h,m,swift}"
#p.osx.private_header_files = "PIALibrary/Sources/Util/macOS/*.h"
#p.osx.preserve_paths = "PIALibrary/Sources/Util/macOS/*.modulemap"
#p.osx.pod_target_xcconfig = { "SWIFT_INCLUDE_PATHS" => "${PODS_TARGET_SRCROOT}/PIALibrary/Sources/Util/macOS" }
p.dependency "PIALibrary/Core"
end
end
......@@ -37,6 +37,22 @@ The library has been tested on both iOS and macOS and includes the following fea
It's highly recommended to use the Git and Ruby packages provided by [Homebrew][dep-brew].
### CocoaPods
To use with CocoaPods just add this to your Podfile:
```ruby
pod 'PIALibrary'
```
To include other non-default subspecs:
```ruby
pod 'PIALibrary'
pod 'PIALibrary/VPN' # adds support for PIATunnel
pod 'PIALibrary/Mock'
```
### Testing
Download the library codebase locally:
......@@ -59,10 +75,6 @@ then open `Demo.xcworkspace`. You can test the account-related business with the
We'd definitely like to offer a more extensive showcase later on.
### Deployment
We plan to submit the library to the master CocoaPods repository, hence the presence of a `.podspec` file in the root.
## Documentation
Due to its complexity, the library is split into several modules named after their context. The *Core* and *Library* modules make up the foundation of the library and are the bare requirements.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment