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 db8f69c..52fb71a 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.1" +} + 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)" 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