Merge tag '0.7.0' into develop

This commit is contained in:
Sergey Abramchuk
2020-08-19 20:14:48 +03:00
4 changed files with 17 additions and 12 deletions
+6 -1
View File
@@ -1,10 +1,15 @@
# Changelog
## 0.7.0
- **Added**: An option to evaluate configuration without creating an instance of `OpenVPNAdapter`.
- **Updated**: Class `OpenVPNProperties` renamed to `OpenVPNConfigurationEvaluation`.
- **Updated**: openvpn3 library to 3.5.6 version, mbedTLS library to 2.7.13 version;
## 0.6.0
- **Updated**: Slightly changed API of the framework.
- **Fixed**: Reading packets issue affecting on connection when network interface is changed.
## 0.5.0
- **Added**: Swift Package Manager support;
- **Updated**: openvpn3 library 3.5.4 version;
- **Updated**: openvpn3 library to 3.5.4 version;
- **Fixed**: Network issue when adapter used in macOS projects.
+1 -1
View File
@@ -3,7 +3,7 @@ Pod::Spec.new do |s|
# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
s.name = "OpenVPNAdapter"
s.version = "0.6.0"
s.version = "0.7.0"
s.summary = "Objective-C wrapper for OpenVPN library. Compatible with iOS and macOS."
s.description = <<-DESC
OpenVPNAdapter is an Objective-C framework that allows to easily configure and establish VPN connection using OpenVPN protocol.
+6 -6
View File
@@ -1547,7 +1547,7 @@
"$(inherited)",
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MARKETING_VERSION = 0.6.0;
MARKETING_VERSION = 0.7.0;
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = OpenVPNAdapter;
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
@@ -1576,7 +1576,7 @@
"$(inherited)",
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MARKETING_VERSION = 0.6.0;
MARKETING_VERSION = 0.7.0;
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = OpenVPNAdapter;
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
@@ -1630,7 +1630,7 @@
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MACH_O_TYPE = staticlib;
MARKETING_VERSION = 3.5.4;
MARKETING_VERSION = 3.5.6;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
@@ -1661,7 +1661,7 @@
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MACH_O_TYPE = staticlib;
MARKETING_VERSION = 3.5.4;
MARKETING_VERSION = 3.5.6;
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
@@ -1692,7 +1692,7 @@
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MACH_O_TYPE = staticlib;
MARKETING_VERSION = 2.7.12;
MARKETING_VERSION = 2.7.13;
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = mbedTLS;
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
@@ -1721,7 +1721,7 @@
"$(TOOLCHAIN_DIR)/usr/lib/swift/macosx",
);
MACH_O_TYPE = staticlib;
MARKETING_VERSION = 2.7.12;
MARKETING_VERSION = 2.7.13;
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = mbedTLS;
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
+4 -4
View File
@@ -35,7 +35,7 @@ To install OpenVPNAdapter with Cocoapods, add the following lines to your `Podfi
```ruby
target 'Your Target Name' do
use_frameworks!
pod 'OpenVPNAdapter', :git => 'https://github.com/ss-abramchuk/OpenVPNAdapter.git', :tag => '0.6.0'
pod 'OpenVPNAdapter', :git => 'https://github.com/ss-abramchuk/OpenVPNAdapter.git', :tag => '0.7.0'
end
```
@@ -191,16 +191,16 @@ class PacketTunnelProvider: NEPacketTunnelProvider {
// configuration.tunPersist = true
// Apply OpenVPN configuration
let properties: OpenVPNProperties
let evaluation: OpenVPNConfigurationEvaluation
do {
properties = try vpnAdapter.apply(configuration: configuration)
evaluation = try vpnAdapter.apply(configuration: configuration)
} catch {
completionHandler(error)
return
}
// Provide credentials if needed
if !properties.autologin {
if !evaluation.autologin {
// If your VPN configuration requires user credentials you can provide them by
// `protocolConfiguration.username` and `protocolConfiguration.passwordReference`
// properties. It is recommended to use persistent keychain reference to a keychain