diff --git a/CHANGELOG.md b/CHANGELOG.md index adac210..182ce6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/OpenVPNAdapter.podspec b/OpenVPNAdapter.podspec index 3cc20df..faf1437 100644 --- a/OpenVPNAdapter.podspec +++ b/OpenVPNAdapter.podspec @@ -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. diff --git a/OpenVPNAdapter.xcodeproj/project.pbxproj b/OpenVPNAdapter.xcodeproj/project.pbxproj index 2a879ea..eb6d24d 100644 --- a/OpenVPNAdapter.xcodeproj/project.pbxproj +++ b/OpenVPNAdapter.xcodeproj/project.pbxproj @@ -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)"; diff --git a/README.md b/README.md index 98ed0a0..fc49965 100644 --- a/README.md +++ b/README.md @@ -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