From e71dae46c22d5778f438fbdc4360b5f45fea8503 Mon Sep 17 00:00:00 2001 From: noriaki watanabe Date: Sat, 21 Feb 2026 09:35:46 +0900 Subject: [PATCH 1/4] Fix: Remove redundant 'try' from URL initialization --- ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift b/ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift index 38c96c1..89a5e11 100644 --- a/ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift +++ b/ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift @@ -73,7 +73,7 @@ struct LoginView: View { ) self.pds = pds - let pdsURL = try URL(string: pds!)! + let pdsURL = URL(string: pds!)! try await viewModel.getAuthenticator(pdsURL: pdsURL) .authenticator From 25404b50f0bd91c0fcf5f8ee20f216cff6fa7420 Mon Sep 17 00:00:00 2001 From: noriaki watanabe Date: Sat, 21 Feb 2026 09:35:58 +0900 Subject: [PATCH 2/4] Refactor: Align with OAuth API changes for Authenticator --- .../ATProtoLite-Demo/Views/AuthenticatedView.swift | 4 ++-- ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ATProtoLite-Demo/ATProtoLite-Demo/Views/AuthenticatedView.swift b/ATProtoLite-Demo/ATProtoLite-Demo/Views/AuthenticatedView.swift index f4dde27..509110d 100644 --- a/ATProtoLite-Demo/ATProtoLite-Demo/Views/AuthenticatedView.swift +++ b/ATProtoLite-Demo/ATProtoLite-Demo/Views/AuthenticatedView.swift @@ -113,7 +113,7 @@ struct CachedAuthenticatedView: View { let metadata = try await ATProtoAuthAPI.getAuthedMetadata( for: theirDID.fullId, pdsURL: pdsURL, - authenticator: authenticator.authenticator + authenticator: authenticator ) blocking = metadata.blockingURI != nil blocked = metadata.isBlocked @@ -144,7 +144,7 @@ struct CachedAuthenticatedView: View { ), for: myDID.fullId, pdsURL: pdsURL, - authenticator: authenticator.authenticator + authenticator: authenticator ) } } diff --git a/ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift b/ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift index 89a5e11..9cfa7ee 100644 --- a/ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift +++ b/ATProtoLite-Demo/ATProtoLite-Demo/Views/LoginView.swift @@ -76,7 +76,6 @@ struct LoginView: View { let pdsURL = URL(string: pds!)! try await viewModel.getAuthenticator(pdsURL: pdsURL) - .authenticator .authenticate() } self.authenticatingTask = authenticatingTask From 4e93bde44fa4d660e3ab356250f72a1916317b5b Mon Sep 17 00:00:00 2001 From: noriaki watanabe Date: Sat, 21 Feb 2026 09:42:29 +0900 Subject: [PATCH 3/4] chore: update Package.resolved to sync dependencies --- .../xcshareddata/swiftpm/Package.resolved | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ATProtoLite-Demo/ATProtoLite-Demo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ATProtoLite-Demo/ATProtoLite-Demo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 5c9bfa5..d5929c9 100644 --- a/ATProtoLite-Demo/ATProtoLite-Demo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ATProtoLite-Demo/ATProtoLite-Demo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -1,13 +1,13 @@ { - "originHash" : "a181d4ea539bab301ef81799ae7006319ef1881564c08386cfc9670493ad267c", + "originHash" : "7698967d6bb59aa11fc8c62e14e7ce4d7524dfcb07fc7f038bb56a437f1e829f", "pins" : [ { "identity" : "atresolve", "kind" : "remoteSourceControl", "location" : "https://github.com/germ-network/ATResolve", "state" : { - "revision" : "6b69a7bd310fd8a4b1a2281d6d8665ebe889b6bc", - "version" : "1.1.3" + "revision" : "26459d9d6e7deb27066b9d7d2931279acc107138", + "version" : "1.0.0-germ.2" } }, { @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/germ-network/autonomous-comm-protocol.git", "state" : { - "revision" : "f939a2ff62b065dfd792dc9f11b75f2ddfa4adf1", - "version" : "1.1.9" + "revision" : "295a73d20310c82ca84e46c4dde8af1d49b5a3d8", + "version" : "1.1.10" } }, { @@ -24,8 +24,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/germ-network/OAuthenticator", "state" : { - "revision" : "2e3936413622bf16a83928b91aaf8ae4ace769f9", - "version" : "0.7.1-germ.1" + "revision" : "f657aa04cb6241c0811052264f345046f6938274", + "version" : "0.7.2-germ.1" } }, { From 82b2db4003efaee4310d7f689e02207337161761 Mon Sep 17 00:00:00 2001 From: noriaki watanabe Date: Sat, 21 Feb 2026 11:32:29 +0900 Subject: [PATCH 4/4] Use Text(verbatim:) for user-related strings to avoid localized interpolation warnings --- .../ATProtoLite-Demo/Views/AuthenticatedView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ATProtoLite-Demo/ATProtoLite-Demo/Views/AuthenticatedView.swift b/ATProtoLite-Demo/ATProtoLite-Demo/Views/AuthenticatedView.swift index 509110d..1752e87 100644 --- a/ATProtoLite-Demo/ATProtoLite-Demo/Views/AuthenticatedView.swift +++ b/ATProtoLite-Demo/ATProtoLite-Demo/Views/AuthenticatedView.swift @@ -86,16 +86,16 @@ struct CachedAuthenticatedView: View { } } if let blocked { - Text("Blocked: \(blocked)") + Text(verbatim: "Blocked: \(blocked)") } if let blocking { - Text("Blocking: \(blocking)") + Text(verbatim: "Blocking: \(blocking)") } if let following { - Text("Following: \(following)") + Text(verbatim: "Following: \(following)") } if let followedBy { - Text("Followed by: \(followedBy)") + Text(verbatim: "Followed by: \(followedBy)") } } }