From 117222d270ee4d686d6208436fbbf5b2b0515b76 Mon Sep 17 00:00:00 2001 From: YoungBin Lee Date: Wed, 18 Oct 2023 14:46:36 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=91=B8=EC=8B=9C=20=EC=95=8C=EB=A6=BC?= =?UTF-8?q?=20=EB=AC=BC=EC=96=B4=EB=B3=B4=EB=8A=94=20=ED=83=80=EC=9D=B4?= =?UTF-8?q?=EB=B0=8D=20=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Projects/Keyme/Sources/KeymeApp.swift | 5 ++++- Tuist/ProjectDescriptionHelpers/Project+App.swift | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Projects/Keyme/Sources/KeymeApp.swift b/Projects/Keyme/Sources/KeymeApp.swift index 790a0003..64607bfe 100644 --- a/Projects/Keyme/Sources/KeymeApp.swift +++ b/Projects/Keyme/Sources/KeymeApp.swift @@ -31,7 +31,7 @@ struct KeymeApp: App { class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { @Dependency(\.notificationManager) var notificationManager - + Messaging.messaging().apnsToken = deviceToken Messaging.messaging().token { token, error in if let error = error { @@ -46,6 +46,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { + @Dependency(\.notificationManager) var notificationManager + Task { try await notificationManager.registerPushNotification() } + if let kakaoAPIKey = Bundle.main.object(forInfoDictionaryKey: "KAKAO_API_KEY") as? String { KakaoSDK.initSDK(appKey: kakaoAPIKey) } diff --git a/Tuist/ProjectDescriptionHelpers/Project+App.swift b/Tuist/ProjectDescriptionHelpers/Project+App.swift index f40e6f54..e87bf228 100644 --- a/Tuist/ProjectDescriptionHelpers/Project+App.swift +++ b/Tuist/ProjectDescriptionHelpers/Project+App.swift @@ -26,7 +26,7 @@ extension Project { infoPlist: .extendingDefault(with: Project.infoPlist), sources: ["Sources/**"], resources: [.glob(pattern: "Resources/**", excluding: [])], - entitlements: .relativeToRoot("Keyme.entitlements"), + entitlements: .file(path: .relativeToRoot("Keyme.entitlements")), scripts: Project.lintScript + Project.encryptionScript, dependencies: internalDependencies + externalDependencies, settings: .settings(base: .baseSettings, configurations: XCConfig.project)