Browse Source

Merge branch 'master' of https://git.yishihui.com/iOS/Introduce

* 'master' of https://git.yishihui.com/iOS/Introduce:
  添加打包时间参数
  修改 build 号
harry 3 years ago
parent
commit
6346ba91dd

+ 2 - 2
Introduce.xcodeproj/project.pbxproj

@@ -438,7 +438,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 1;
+				CURRENT_PROJECT_VERSION = 6;
 				DEVELOPMENT_TEAM = UH52C8A7SN;
 				ENABLE_BITCODE = NO;
 				EXCLUDED_ARCHS = "";
@@ -484,7 +484,7 @@
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 1;
+				CURRENT_PROJECT_VERSION = 6;
 				DEVELOPMENT_TEAM = UH52C8A7SN;
 				ENABLE_BITCODE = NO;
 				EXCLUDED_ARCHS = "";

+ 2 - 0
Introduce/PQConfig.plist

@@ -6,5 +6,7 @@
 	<string>ENVModeTest</string>
 	<key>ENChannel</key>
 	<string>Appstore</string>
+	<key>ENBuildTime</key>
+	<string>1990-01-01 00:00:00</string>
 </dict>
 </plist>

+ 15 - 0
Introduce/Record/INRecorderController.swift

@@ -68,6 +68,16 @@ class INRecorderController: BFBaseViewController {
         return l
     }()
     
+    //显示编译时间
+    lazy var buildTimeLabel:UILabel = {
+        let l = UILabel.init(frame: CGRect.init(x: 0, y: 120, width: cScreenWidth, height: 20))
+        l.text = "打包时间:" + PQENVUtil.shared.ENBuildTime
+        l.textColor = .white
+        l.font = UIFont.boldSystemFont(ofSize: 18)
+        l.textAlignment = .left
+        return l
+    }()
+ 
     lazy var protocolLab: TYAttributedLabel = {
         let protocolLab = TYAttributedLabel()
         protocolLab.highlightedLinkBackgroundColor = UIColor.clear
@@ -160,6 +170,11 @@ class INRecorderController: BFBaseViewController {
         view.backgroundColor = .black
         view.addSubview(bgView)
         
+        if(PQENVUtil.shared.channel == "Development"){
+            view.addSubview(buildTimeLabel)
+        }
+      
+        
         view.addSubview(centerView)
         view.addSubview(bottomView)
         centerView.snp.makeConstraints { make in