From 66f7177c1b514b07ef0780a428df79bea4d89de1 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Mon, 22 Oct 2018 14:48:04 +0300 Subject: [PATCH 1/2] Specify tag instead of branch --- OpenVPNAdapter.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenVPNAdapter.podspec b/OpenVPNAdapter.podspec index c89a6f3..9df2af5 100644 --- a/OpenVPNAdapter.podspec +++ b/OpenVPNAdapter.podspec @@ -32,7 +32,7 @@ Pod::Spec.new do |s| # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - s.source = { :git => "https://github.com/ss-abramchuk/OpenVPNAdapter.git", :branch => "develop" } + s.source = { :git => "https://github.com/ss-abramchuk/OpenVPNAdapter.git", :tag => "#{s.version}" } # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # From b9e15b6c510c9c51cdeca7c46d3001481b155bb3 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Sat, 27 Oct 2018 13:07:17 +0300 Subject: [PATCH 2/2] Add Cocoapods section --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index df49ade..b42dd12 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,22 @@ To install OpenVPNAdapter with Carthage, add the following line to your `Cartfil github "ss-abramchuk/OpenVPNAdapter" ``` -Then run `carthage update` command. For details of the installation and usage of Carthage, visit [its project page](https://github.com/Carthage/Carthage). +Then run `$ carthage update` command. For details of the installation and usage of Carthage, visit [its project page](https://github.com/Carthage/Carthage). + +### Cocoapods +To install OpenVPNAdapter with Cocoapods, add the following lines to your `Podfile`. + +```ruby +target 'Your Target Name' do + # Comment the next line if you're not using Swift and don't want to use dynamic frameworks + use_frameworks! + + # Pods for iOSOpenVPNTunnel + pod 'OpenVPNAdapter', '~> 0.1' +end +``` + +And run `$ pod install`. ## Usage At first, you need to add a Packet Tunnel Provider extension to the project and configure provision profiles for both the container app and the extension. There are official documentation and many tutorials describing how to do it so we won't dwell on this in detail.