Skip to content

Commit d13e853

Browse files
committed
[BOOK-476] chore: kakao plus chat account 관리
1 parent fe72680 commit d13e853

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright © 2026 Booket. All rights reserved
2+
3+
import Foundation
4+
5+
private final class PresentationBundleToken {}
6+
7+
public enum URLConstants {
8+
private static let bundle = Bundle(for: PresentationBundleToken.self)
9+
10+
private static let kakaoAccount: String = {
11+
guard let value = bundle.object(forInfoDictionaryKey: "KAKAO_ACCOUNT") as? String else {
12+
fatalError("Can't load KAKAO_ACCOUNT")
13+
}
14+
return value
15+
}()
16+
17+
public static let kakaoAppScheme = "kakaoplus://plusfriend/home/\(kakaoAccount)"
18+
public static let kakaoChatURL = "https://pf.kakao.com/\(kakaoAccount)/chat"
19+
}

src/SupportingFiles/Booket/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
<false/>
4444
<key>KAKAO_NATIVE_APP_KEY</key>
4545
<string>$(KAKAO_NATIVE_APP_KEY)</string>
46-
<key>KAKAO_CHAT_URL</key>
47-
<string>$(KAKAO_CHAT_URL)</string>
46+
<key>KAKAO_ACCOUNT</key>
47+
<string>$(KAKAO_ACCOUNT)</string>
4848
<key>LSApplicationQueriesSchemes</key>
4949
<array>
5050
<string>kakaokompassauth</string>

0 commit comments

Comments
 (0)