From 2e6fad8015d591ea38a257ee00f4a28438cc3172 Mon Sep 17 00:00:00 2001 From: Ildar Abdullin Date: Wed, 10 Jul 2019 17:20:21 -0700 Subject: [PATCH 1/2] OKTA-237473-AuthN iOS SDK: SDK sends incorrect version in User-Agent header field --- Source/RestAPI/Utils.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/RestAPI/Utils.swift b/Source/RestAPI/Utils.swift index db8f69c..1b828c8 100644 --- a/Source/RestAPI/Utils.swift +++ b/Source/RestAPI/Utils.swift @@ -16,8 +16,12 @@ import Foundation import UIKit #endif +public func sdkVersion() -> String { + return "2.0.0" +} + internal func buildUserAgent() -> String { - let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") ?? "?" + let version = sdkVersion() let device = "Device/\(deviceModel())" #if os(iOS) let os = "iOS/\(UIDevice.current.systemVersion)" From ca3d93200d86a879b6b1438b337fb98c1a9b07fd Mon Sep 17 00:00:00 2001 From: Ildar Abdullin Date: Tue, 16 Jul 2019 16:57:13 -0700 Subject: [PATCH 2/2] Release increment --- OktaAuthSdk.podspec | 2 +- Source/Info.plist | 2 +- Source/RestAPI/Utils.swift | 2 +- Tests/Info.plist | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OktaAuthSdk.podspec b/OktaAuthSdk.podspec index 832232a..bd8b0a2 100644 --- a/OktaAuthSdk.podspec +++ b/OktaAuthSdk.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'OktaAuthSdk' - s.version = '2.0.0' + s.version = '2.0.1' s.summary = 'SDK for Okta native authentication.' s.description = <<-DESC Integrate your native app with Okta. diff --git a/Source/Info.plist b/Source/Info.plist index d2562c9..2f1baf2 100644 --- a/Source/Info.plist +++ b/Source/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.0.0 + 2.0.1 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/Source/RestAPI/Utils.swift b/Source/RestAPI/Utils.swift index 1b828c8..52fb71a 100644 --- a/Source/RestAPI/Utils.swift +++ b/Source/RestAPI/Utils.swift @@ -17,7 +17,7 @@ import UIKit #endif public func sdkVersion() -> String { - return "2.0.0" + return "2.0.1" } internal func buildUserAgent() -> String { diff --git a/Tests/Info.plist b/Tests/Info.plist index f4285f2..40302d5 100644 --- a/Tests/Info.plist +++ b/Tests/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 2.0.0 + 2.0.1 CFBundleVersion 1