فهرست منبع

feat: 补充 adjust 配置

陈文艺 1 ماه پیش
والد
کامیت
21e12cf232
2فایلهای تغییر یافته به همراه11 افزوده شده و 17 حذف شده
  1. 2 8
      Lanu.xcodeproj/project.pbxproj
  2. 9 9
      Lanu/AppDelegate.swift

+ 2 - 8
Lanu.xcodeproj/project.pbxproj

@@ -341,6 +341,8 @@
 		};
 		FBB67E232EC48B440070E686 /* ThirdParty */ = {
 			isa = PBXFileSystemSynchronizedRootGroup;
+			exceptions = (
+			);
 			path = ThirdParty;
 			sourceTree = "<group>";
 		};
@@ -495,14 +497,10 @@
 			inputFileListPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-Gami/Pods-Gami-resources-${CONFIGURATION}-input-files.xcfilelist",
 			);
-			inputPaths = (
-			);
 			name = "[CP] Copy Pods Resources";
 			outputFileListPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-Gami/Pods-Gami-resources-${CONFIGURATION}-output-files.xcfilelist",
 			);
-			outputPaths = (
-			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
 			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Gami/Pods-Gami-resources.sh\"\n";
@@ -538,14 +536,10 @@
 			inputFileListPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-Gami/Pods-Gami-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 			);
-			inputPaths = (
-			);
 			name = "[CP] Embed Pods Frameworks";
 			outputFileListPaths = (
 				"${PODS_ROOT}/Target Support Files/Pods-Gami/Pods-Gami-frameworks-${CONFIGURATION}-output-files.xcfilelist",
 			);
-			outputPaths = (
-			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
 			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Gami/Pods-Gami-frameworks.sh\"\n";

+ 9 - 9
Lanu/AppDelegate.swift

@@ -100,18 +100,18 @@ extension AppDelegate {
     }
     
     private func setupAdjust() {
-        let token = ""
-        let env = if LNAppConfig.shared.curEnv == .test {
-            "sandbox"
+        let token = "fbze46mdkxds"
+        let env: String
+        let logLevel: ADJLogLevel
+        if LNAppConfig.shared.curEnv == .test {
+            env = ADJEnvironmentSandbox
+            logLevel = .verbose
         } else {
-            "production"
+            env = ADJEnvironmentProduction
+            logLevel = .suppress
         }
         let config = ADJConfig(appToken: token, environment: env)
-        config?.logLevel = if LNAppConfig.shared.curEnv == .test {
-            .verbose
-        } else {
-            .suppress
-        }
+        config?.logLevel = logLevel
         config?.enableCostDataInAttribution()
 //        config?.delegate = self
         Adjust.initSdk(config)