|
|
@@ -18,8 +18,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
|
Thread.sleep(forTimeInterval: 1)
|
|
|
IQKeyboardManager.shared.enable = true
|
|
|
AMapServices.shared().apiKey = QSLConfig.MapKey
|
|
|
- //启动埋点
|
|
|
- managerAppOnlyLaunch()
|
|
|
return true
|
|
|
}
|
|
|
|
|
|
@@ -32,18 +30,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
|
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
|
|
|
}
|
|
|
|
|
|
- //管理app启动埋点
|
|
|
- func managerAppOnlyLaunch() {
|
|
|
-
|
|
|
- guard UserDefaults.standard.string(forKey: "MANAGER_APP_ONLY_LAUNCH") != nil else {
|
|
|
- UserDefaults.standard.set("YES", forKey: "MANAGER_APP_ONLY_LAUNCH")
|
|
|
- UserDefaults.standard.synchronize()
|
|
|
- //只有app第一次启动才会埋点
|
|
|
- gravityInstance?.track(QSLGravityConst.app_launch, properties: ["id": 02001])
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
// 当 App 即将终止(退出)时调用
|
|
|
func applicationWillTerminate(_ application: UIApplication) {
|
|
|
print("App 即将退出")
|