Browse Source

feat: 如果体现入口配置为空或者 0 ,则表示不限制

陈文艺 1 tháng trước cách đây
mục cha
commit
1867e5b7dd

+ 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";

+ 4 - 1
Lanu/Manager/Config/LNConfigManager.swift

@@ -14,9 +14,12 @@ class LNConfigManager {
     
     var isBeanAvailable: Bool {
         guard let version = commonConfig.appReviewSpecialVersionConfig?.ios else { return false }
+        if version.isEmpty { return true }
+        
         guard let iVersion = Int(version) else { return false }
-        guard let curVersion = Int(curBuildVersion) else { return false }
+        if iVersion == 0 { return true }
         
+        guard let curVersion = Int(curBuildVersion) else { return false }
         return curVersion < iVersion
     }
     

+ 7 - 1
Lanu/Views/Settings/LNAboutViewController.swift

@@ -50,8 +50,14 @@ extension LNAboutViewController {
             make.top.equalTo(icon.snp.bottom).offset(7)
         }
         
+        var version: String = .init(key: "A00248", curAppVersion)
+        
+#if DEBUG
+        version += "(\(curBuildVersion)"
+#endif
+        
         let versionLabel = UILabel()
-        versionLabel.text = .init(key: "A00248", curAppVersion)
+        versionLabel.text = version
         versionLabel.font = .body_s
         versionLabel.textColor = .text_5
         view.addSubview(versionLabel)