From f5f5f329a5bb12b68032a60052268d7b0f78f6d9 Mon Sep 17 00:00:00 2001 From: Sarthak Agrawal Date: Fri, 21 Aug 2026 13:21:46 +0530 Subject: [PATCH] fix: use shared account handoff --- .../xcshareddata/swiftpm/Package.resolved | 2 +- ios/Sources/Kith/AppModel.swift | 6 ++++-- ios/Sources/Kith/Info.plist | 11 +++++++++++ ios/Sources/Kith/Kith.entitlements | 4 ---- ios/Sources/Kith/KithConnectionView.swift | 11 ++++------- ios/project.yml | 4 ++++ 6 files changed, 24 insertions(+), 14 deletions(-) diff --git a/ios/Kith.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ios/Kith.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 4582299..9f73c33 100644 --- a/ios/Kith.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ios/Kith.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -7,7 +7,7 @@ "location" : "https://github.com/Significant-Hobbies/personal-platform.git", "state" : { "branch" : "main", - "revision" : "53a591bd19270b503177f4674f3e9d82d7255cb4" + "revision" : "28e0664ad76ab0f9b71f671abf3b796f0f241008" } } ], diff --git a/ios/Sources/Kith/AppModel.swift b/ios/Sources/Kith/AppModel.swift index 7839887..ae89044 100644 --- a/ios/Sources/Kith/AppModel.swift +++ b/ios/Sources/Kith/AppModel.swift @@ -22,7 +22,7 @@ final class AppModel { private let store: KithStore private let cloud: KithCloudStore? private let platform: PersonalPlatformConnection? - let account: PersonalAppleSignInModel? + let account: PersonalWebSignInModel? init( store: KithStore = KithStore(), @@ -31,7 +31,9 @@ final class AppModel { ) { self.store = store self.platform = platform - account = platform.map { PersonalAppleSignInModel(identity: $0.identity) } + account = platform.map { + PersonalWebSignInModel(identity: $0.identity, callbackScheme: "kith") + } let arguments = ProcessInfo.processInfo.arguments self.cloud = Self.isDemoLaunch(arguments) ? nil : cloud if arguments.contains("--person-demo") { diff --git a/ios/Sources/Kith/Info.plist b/ios/Sources/Kith/Info.plist index b074adb..e242167 100644 --- a/ios/Sources/Kith/Info.plist +++ b/ios/Sources/Kith/Info.plist @@ -18,6 +18,17 @@ APPL CFBundleShortVersionString $(MARKETING_VERSION) + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLSchemes + + kith + + + CFBundleVersion $(CURRENT_PROJECT_VERSION) ITSAppUsesNonExemptEncryption diff --git a/ios/Sources/Kith/Kith.entitlements b/ios/Sources/Kith/Kith.entitlements index 8cc2f99..ffad188 100644 --- a/ios/Sources/Kith/Kith.entitlements +++ b/ios/Sources/Kith/Kith.entitlements @@ -2,10 +2,6 @@ - com.apple.developer.applesignin - - Default -