Skip to content

Commit 6293faa

Browse files
committed
[feat] #208 amplitude 초기화
1 parent a2d3436 commit 6293faa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Projects/App/Resources/Pokit-info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,7 @@
9494
<string>UIInterfaceOrientationLandscapeLeft</string>
9595
<string>UIInterfaceOrientationLandscapeRight</string>
9696
</array>
97+
<key>AMPLITUDE_API_KEY</key>
98+
<string>$(AMPLITUDE_API_KEY)</string>
9799
</dict>
98100
</plist>

Projects/App/Sources/AppDelegate/AppDelegate.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ extension AppDelegate: UIApplicationDelegate {
4242

4343
// 앱 번들 버전 (ex: "2.0.1")
4444
let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? ""
45-
45+
let amplitudeKey = Bundle.main.infoDictionary?["AMPLITUDE_API_KEY"] as? String ?? ""
46+
amplitude.initialize(amplitudeKey, nil)
47+
4648
amplitude.track(.app_open(deviceOS: osVersion, appVersion: appVersion))
4749
return true
4850
}

0 commit comments

Comments
 (0)