Skip to content

Commit

Permalink
Fix issues with consuming OktaIdx via Swift Package Manager (#111)
Browse files Browse the repository at this point in the history
* Remove Package.resolved to prevent issues cloning upstream projects

* Update Package.swift to use a version number for AuthFoundation

* Bump version number
  • Loading branch information
mikenachbaur-okta authored Aug 22, 2022
1 parent 4cfa3c2 commit 3b5ad3c
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 54 deletions.
2 changes: 1 addition & 1 deletion OktaIdx.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'OktaIdx'
spec.version = '3.0.0'
spec.version = '3.0.1'
spec.summary = 'SDK to easily integrate the Okta Identity Engine'
spec.description = <<-DESC
Integrate your native app with Okta using the Okta Identity Engine library.
Expand Down
25 changes: 0 additions & 25 deletions OktaIdx.xcworkspace/xcshareddata/swiftpm/Package.resolved

This file was deleted.

25 changes: 0 additions & 25 deletions Package.resolved

This file was deleted.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var package = Package(
dependencies: [
.package(name: "AuthFoundation",
url: "https://github.com/okta/okta-mobile-swift",
branch: "master")
from: "1.0.0")
],
targets: [
.target(name: "OktaIdx",
Expand Down
2 changes: 1 addition & 1 deletion Sources/OktaIdx/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

import Foundation

public let Version = SDKVersion(sdk: "okta-idx-swift", version: "3.0.0")
public let Version = SDKVersion(sdk: "okta-idx-swift", version: "3.0.1")
2 changes: 1 addition & 1 deletion Tests/OktaIdxTests/InteractionCodeFlowTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class InteractionCodeFlowTests: XCTestCase {
return
}

XCTAssertEqual(oauthError.code, "invalid_request")
XCTAssertEqual(oauthError.code, .invalidRequest)
XCTAssertEqual(oauthError.description,
"PKCE code challenge is required when the token endpoint authentication method is \'NONE\'.")
}
Expand Down

0 comments on commit 3b5ad3c

Please sign in to comment.