Skip to content

Commit 4a811b4

Browse files
committed
Unify changes from the common lib migration and mutable JSON workstreams
1 parent 5db1a0a commit 4a811b4

37 files changed

Lines changed: 6 additions & 140 deletions

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ jobs:
229229
strategy:
230230
matrix:
231231
include:
232-
- destination: "platform=iOS Simulator,OS=18.5,name=iPhone 16 Pro Max"
232+
- destination: "platform=iOS Simulator,OS=18.6,name=iPhone 16 Pro Max"
233233
xcode_version: "16.4"
234234
os: macos-15
235235
- destination: "platform=tvOS Simulator,OS=18.5,name=Apple TV"

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ var package = Package(
4646
.library(name: "OktaDirectAuth", targets: ["OktaDirectAuth"]),
4747
.library(name: "OktaIdxAuth", targets: ["OktaIdxAuth"])
4848
],
49-
// dependencies: [
50-
// .package(url: "https://github.com/apple/swift-docc-plugin", from: "1.4.0")
51-
// ],
49+
dependencies: [
50+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.4.0")
51+
],
5252
targets: [
5353
.target(name: "CommonSupport",
5454
swiftSettings: .libraryTarget),

Sources/AuthFoundation/Debugging/APIRequestObserver.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818

1919
#if DEBUG && canImport(OSLog)
2020
import Foundation
21-
22-
#if !COCOAPODS
23-
import CommonSupport
24-
#endif
25-
2621
import OSLog
2722

2823
#if !COCOAPODS

Sources/AuthFoundation/JWT/JWK.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ import Foundation
1616
import CommonSupport
1717
#endif
1818

19-
#if !COCOAPODS
20-
import CommonSupport
21-
#endif
22-
2319
/// Describes an individual key from an authorization server, which can be used to validate tokens or encrypt content.
2420
///
2521
/// > Warning: At this time, this class only supports RSA Public Keys.

Sources/AuthFoundation/Migration/Migration.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ import Foundation
1616
import CommonSupport
1717
#endif
1818

19-
#if !COCOAPODS
20-
import CommonSupport
21-
#endif
22-
2319
/// Namespace used for a variety of version migration agents.
2420
public final class Migration {
2521
/// Determines whether or not some user data needs to be migrated.

Sources/AuthFoundation/Migration/SDKVersion.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ import Foundation
1616
import CommonSupport
1717
#endif
1818

19-
#if !COCOAPODS
20-
import CommonSupport
21-
#endif
22-
2319
#if canImport(UIKit)
2420
import UIKit
2521
#endif
@@ -33,16 +29,12 @@ import Android
3329
#endif
3430

3531
private let deviceModel: String = {
36-
#if os(Darwin)
3732
var system = utsname()
3833
uname(&system)
3934
let model = withUnsafePointer(to: &system.machine.0) { ptr in
4035
return String(cString: ptr)
4136
}
4237
return model
43-
#else
44-
return "Unknown"
45-
#endif
4638
}()
4739

4840
private let systemName: String = {
@@ -56,10 +48,10 @@ private let systemName: String = {
5648
return "tvOS"
5749
#elseif os(macOS)
5850
return "macOS"
59-
#elseif os(Linux)
60-
return "linux"
6151
#elseif os(Android)
6252
return "android"
53+
#elseif os(Linux)
54+
return "linux"
6355
#endif
6456
}()
6557

Sources/AuthFoundation/OAuth2/Authentication.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ import Foundation
1616
import CommonSupport
1717
#endif
1818

19-
#if !COCOAPODS
20-
import CommonSupport
21-
#endif
22-
2319
/// A common delegate protocol that all authentication flows should support.
2420
public protocol AuthenticationDelegate: AnyObject {
2521
/// Sent when an authentication session starts.

Sources/AuthFoundation/Responses/OpenIdConfiguration.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ import Foundation
1616
@_exported import JSON
1717
#endif
1818

19-
#if !COCOAPODS
20-
import JSON
21-
#endif
22-
2319
/// Describes the configuration of an OpenID server.
2420
///
2521
/// The values exposed from this configuration are typically used during authentication, or when querying a server for its capabilities. This type uses ``HasClaims`` to represent the various provider metadata (represented as ``OpenIdConfiguration/ProviderMetadata``) for returning the full contents of the server's configuration. For more information, please see the ``HasClaims`` documentation.

Sources/AuthFoundation/Security/Keychain.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ import Foundation
1616
import CommonSupport
1717
#endif
1818

19-
#if !COCOAPODS
20-
import CommonSupport
21-
#endif
22-
2319
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS) || (swift(>=5.10) && os(visionOS))
2420

2521
#if canImport(LocalAuthentication) && !os(tvOS)

Sources/AuthFoundation/Token Management/Token.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ import CommonSupport
1717
@_exported import JSON
1818
#endif
1919

20-
#if !COCOAPODS
21-
import CommonSupport
22-
import JSON
23-
#endif
24-
2520
/// Token information representing a user's access to a resource server, including access token, refresh token, and other related information.
2621
public struct Token: Sendable, Codable, Equatable, Hashable, HasClaims, Expires {
2722
public typealias ClaimType = TokenClaim

0 commit comments

Comments
 (0)