We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2d3436 commit 6293faaCopy full SHA for 6293faa
2 files changed
Projects/App/Resources/Pokit-info.plist
@@ -94,5 +94,7 @@
94
<string>UIInterfaceOrientationLandscapeLeft</string>
95
<string>UIInterfaceOrientationLandscapeRight</string>
96
</array>
97
+ <key>AMPLITUDE_API_KEY</key>
98
+ <string>$(AMPLITUDE_API_KEY)</string>
99
</dict>
100
</plist>
Projects/App/Sources/AppDelegate/AppDelegate.swift
@@ -42,7 +42,9 @@ extension AppDelegate: UIApplicationDelegate {
42
43
// 앱 번들 버전 (ex: "2.0.1")
44
let appVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? ""
45
-
+ let amplitudeKey = Bundle.main.infoDictionary?["AMPLITUDE_API_KEY"] as? String ?? ""
46
+ amplitude.initialize(amplitudeKey, nil)
47
+
48
amplitude.track(.app_open(deviceOS: osVersion, appVersion: appVersion))
49
return true
50
}
0 commit comments