diff --git a/Package.resolved b/Package.resolved index 6fc5144..81fb4bf 100644 --- a/Package.resolved +++ b/Package.resolved @@ -7,7 +7,7 @@ "location" : "https://tangled.org/@sparrowtek.com/CoreATProtocol", "state" : { "branch" : "main", - "revision" : "558ca899297156adf3f4a3ce927f8d2cacfed36b" + "revision" : "7c0b9e265aeda72cb9791830c45168f97048d88c" } }, { @@ -25,7 +25,7 @@ "location" : "https://github.com/SparrowTek/NetworkingKit.git", "state" : { "branch" : "main", - "revision" : "e1c325e58c64925c00063c0373f812101b041b43" + "revision" : "8df3678a8e21522daebd71346156e1a7fae19d58" } }, { @@ -42,8 +42,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-asn1.git", "state" : { - "revision" : "9f542610331815e29cc3821d3b6f488db8715517", - "version" : "1.6.0" + "revision" : "eb50cbd14606a9161cbc5d452f18797c90ef0bab", + "version" : "1.7.0" } }, { @@ -51,8 +51,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-certificates.git", "state" : { - "revision" : "24ccdeeeed4dfaae7955fcac9dbf5489ed4f1a25", - "version" : "1.18.0" + "revision" : "5aa1c0d1bc204908df47c2075bdbb39573d05e8d", + "version" : "1.19.0" } }, { @@ -60,8 +60,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-crypto.git", "state" : { - "revision" : "fa308c07a6fa04a727212d793e761460e41049c3", - "version" : "4.3.0" + "revision" : "476538ccb827f2dd18efc5de754cc87d77127a47", + "version" : "4.4.0" } }, { @@ -69,8 +69,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-log.git", "state" : { - "revision" : "bbd81b6725ae874c69e9b8c8804d462356b55523", - "version" : "1.10.1" + "revision" : "5073617dac96330a486245e4c0179cb0a6fd2256", + "version" : "1.12.0" } } ], diff --git a/Sources/EffemKit/Configuration.swift b/Sources/EffemKit/Configuration.swift index 9fad9bd..734620e 100644 --- a/Sources/EffemKit/Configuration.swift +++ b/Sources/EffemKit/Configuration.swift @@ -31,7 +31,7 @@ func ensureAppViewConfigured() throws { @APActor func ensurePDSConfigured() throws { - guard APEnvironment.current.host != nil else { + guard ATProtoSession.shared.host != nil else { throw EffemKitConfigurationError.pdsHostNotConfigured } } diff --git a/Sources/EffemKit/EffemRepoService.swift b/Sources/EffemKit/EffemRepoService.swift index e45591d..9e21f82 100644 --- a/Sources/EffemKit/EffemRepoService.swift +++ b/Sources/EffemKit/EffemRepoService.swift @@ -15,7 +15,7 @@ public struct EffemRepoService: Sendable { private func execute(_ endpoint: RepoAPI) async throws -> T { try ensurePDSConfigured() - let delegate = APEnvironment.current.routerDelegate + let delegate = ATProtoSession.shared.routerDelegate return try await RouterCache.repo(delegate: delegate).execute(endpoint) } diff --git a/Sources/EffemKit/RepoAPI.swift b/Sources/EffemKit/RepoAPI.swift index d12327d..238ddb0 100644 --- a/Sources/EffemKit/RepoAPI.swift +++ b/Sources/EffemKit/RepoAPI.swift @@ -14,7 +14,7 @@ enum RepoAPI: Sendable { extension RepoAPI: EndpointType { public var baseURL: URL? { get async { - guard let host = await APEnvironment.current.host, + guard let host = await ATProtoSession.shared.host, let url = URL(string: host) else { return nil }