Skip to content

Commit 98bfec0

Browse files
Ognidets version bump (#322)
* Version increment to 3.11.0 * Changed error code visibility for tests * Fix tests referencing underlyingErrors on macOS Co-authored-by: Mike Nachbaur <mike.nachbaur@okta.com>
1 parent 7a738fc commit 98bfec0

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

Example/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
20+
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleURLTypes</key>

OktaOidc.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'OktaOidc'
3-
s.version = '3.10.8'
3+
s.version = '3.11.0'
44
s.summary = 'SDK to easily integrate AppAuth with Okta'
55
s.description = <<-DESC
66
Integrate your native app with Okta using the AppAuth library.

Sources/AppAuth/OktaUserAgent.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ +(void)setUserAgentValue:(NSString*)value {
2222
}
2323

2424
+(NSString*)userAgentVersion {
25-
return @"3.10.8";
25+
return @"3.11.0";
2626
}
2727

2828
+(NSString*)userAgentHeaderKey {

Sources/OktaOidc/Common/OktaOidcError.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public enum OktaOidcError: CustomNSError {
4545
/// Most of errors returns the general error code.
4646
/// Error like `api`, `unexpectedAuthCodeResponse` return specific error code.
4747
/// `api` returns the general error code if `underlyingError` is absent.
48-
private static let generalErrorCode = -1012009
48+
static let generalErrorCode = -1012009
4949

5050
public var errorCode: Int {
5151
switch self {

Tests/OktaOidcTests/OktaOidcErrorTests.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class OktaOidcErrorTests: XCTestCase {
3131
XCTAssertEqual(error.userInfo[NSLocalizedDescriptionKey] as! String, error.localizedDescription)
3232
XCTAssertNil(error.userInfo[NSUnderlyingErrorKey] as? NSError)
3333

34-
if #available(iOS 14.5, *) {
34+
if #available(iOS 14.5, macOS 11.3, *) {
3535
XCTAssertTrue(error.underlyingErrors.isEmpty)
3636
}
3737
}
@@ -47,7 +47,7 @@ final class OktaOidcErrorTests: XCTestCase {
4747
XCTAssertEqual(error.userInfo[NSUnderlyingErrorKey] as! NSError, underlyingError)
4848
XCTAssertEqual(error.userInfo[NSLocalizedDescriptionKey] as! String, error.localizedDescription)
4949

50-
if #available(iOS 14.5, *) {
50+
if #available(iOS 14.5, macOS 11.3, *) {
5151
XCTAssertEqual(error.underlyingErrors.first! as NSError, underlyingError)
5252
}
5353
}
@@ -60,7 +60,7 @@ final class OktaOidcErrorTests: XCTestCase {
6060
XCTAssertNil(error.userInfo[NSUnderlyingErrorKey] as? NSError)
6161
XCTAssertEqual(error.userInfo[NSLocalizedDescriptionKey] as! String, error.localizedDescription)
6262

63-
if #available(iOS 14.5, *) {
63+
if #available(iOS 14.5, macOS 11.3, *) {
6464
XCTAssertTrue(error.underlyingErrors.isEmpty)
6565
}
6666
}

okta-oidc.xcodeproj/project.pbxproj

+6-4
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@
17641764
"@executable_path/Frameworks",
17651765
"@loader_path/Frameworks",
17661766
);
1767-
MARKETING_VERSION = 3.10.8;
1767+
MARKETING_VERSION = 3.11.0;
17681768
PRODUCT_BUNDLE_IDENTIFIER = "com.okta.okta-oidc";
17691769
PRODUCT_NAME = OktaOidc;
17701770
SKIP_INSTALL = YES;
@@ -1794,7 +1794,7 @@
17941794
"@executable_path/Frameworks",
17951795
"@loader_path/Frameworks",
17961796
);
1797-
MARKETING_VERSION = 3.10.8;
1797+
MARKETING_VERSION = 3.11.0;
17981798
PRODUCT_BUNDLE_IDENTIFIER = "com.okta.okta-oidc";
17991799
PRODUCT_NAME = OktaOidc;
18001800
SKIP_INSTALL = YES;
@@ -1816,6 +1816,7 @@
18161816
"$(inherited)",
18171817
"@executable_path/Frameworks",
18181818
);
1819+
MARKETING_VERSION = 3.11.0;
18191820
PRODUCT_BUNDLE_IDENTIFIER = com.okta.Example;
18201821
PRODUCT_NAME = "$(TARGET_NAME)";
18211822
SWIFT_VERSION = 5.0;
@@ -1834,6 +1835,7 @@
18341835
"$(inherited)",
18351836
"@executable_path/Frameworks",
18361837
);
1838+
MARKETING_VERSION = 3.11.0;
18371839
PRODUCT_BUNDLE_IDENTIFIER = com.okta.Example;
18381840
PRODUCT_NAME = "$(TARGET_NAME)";
18391841
SWIFT_VERSION = 5.0;
@@ -1940,7 +1942,7 @@
19401942
"@loader_path/Frameworks",
19411943
);
19421944
MACOSX_DEPLOYMENT_TARGET = 10.14;
1943-
MARKETING_VERSION = 3.10.8;
1945+
MARKETING_VERSION = 3.11.0;
19441946
PRODUCT_BUNDLE_IDENTIFIER = "com.okta.okta-oidc";
19451947
PRODUCT_NAME = OktaOidc;
19461948
SDKROOT = macosx;
@@ -1967,7 +1969,7 @@
19671969
"@loader_path/Frameworks",
19681970
);
19691971
MACOSX_DEPLOYMENT_TARGET = 10.14;
1970-
MARKETING_VERSION = 3.10.8;
1972+
MARKETING_VERSION = 3.11.0;
19711973
PRODUCT_BUNDLE_IDENTIFIER = "com.okta.okta-oidc";
19721974
PRODUCT_NAME = OktaOidc;
19731975
SDKROOT = macosx;

0 commit comments

Comments
 (0)