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