From 48b854b15774b020934a22ea78da23842f915b4a Mon Sep 17 00:00:00 2001 From: hooni Date: Tue, 16 Jul 2024 02:21:47 +0900 Subject: [PATCH] =?UTF-8?q?fix/#182=20bundle=20=EC=88=A8=EA=B9=80=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Resource/KeyChain/KeychainService.swift | 4 +++- .../ViewController/LoginViewController.swift | 18 +++++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/KkuMulKum/Resource/KeyChain/KeychainService.swift b/KkuMulKum/Resource/KeyChain/KeychainService.swift index 9ea718b6..52f052f9 100644 --- a/KkuMulKum/Resource/KeyChain/KeychainService.swift +++ b/KkuMulKum/Resource/KeyChain/KeychainService.swift @@ -26,8 +26,10 @@ class DefaultKeychainService: KeychainService { static let refreshToken = "refreshToken" } - init(serviceName: String = Bundle.main.bundleIdentifier ?? "KkuMulKum.yizihn") { + init() { + let serviceName = Bundle.main.privacyInfo?["ServiceName"] as? String ?? Bundle.main.bundleIdentifier ?? "DefaultServiceName" self.keychain = KeychainWrapper(serviceName: serviceName) + print("Keychain initialized with service name: \(serviceName)") } var accessToken: String? { diff --git a/KkuMulKum/Source/Onboarding/Login/ViewController/LoginViewController.swift b/KkuMulKum/Source/Onboarding/Login/ViewController/LoginViewController.swift index 96baefba..f445f116 100644 --- a/KkuMulKum/Source/Onboarding/Login/ViewController/LoginViewController.swift +++ b/KkuMulKum/Source/Onboarding/Login/ViewController/LoginViewController.swift @@ -33,10 +33,22 @@ class LoginViewController: BaseViewController { override func setupAction() { super.setupAction() - let appleTapGesture = UITapGestureRecognizer(target: self, action: #selector(appleLoginTapped)) - loginView.appleLoginImageView.addGestureRecognizer(appleTapGesture) + let appleTapGesture = UITapGestureRecognizer( + target: self, + action: #selector( + appleLoginTapped + ) + ) + loginView.appleLoginImageView.addGestureRecognizer( + appleTapGesture + ) - let kakaoTapGesture = UITapGestureRecognizer(target: self, action: #selector(kakaoLoginTapped)) + let kakaoTapGesture = UITapGestureRecognizer( + target: self, + action: #selector( + kakaoLoginTapped + ) + ) loginView.kakaoLoginImageView.addGestureRecognizer(kakaoTapGesture) loginView.dummyNextButton.addTarget(