From 94be043705cf5d8050e4424524a254befd4790aa Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期三, 06 十二月 2023 13:32:00 +0800
Subject: [PATCH] 2023年12月06日13:31:45

---
 app/build.gradle |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/app/build.gradle b/app/build.gradle
index f1e0a0e..032745b 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -11,26 +11,24 @@
     signingConfigs {
         debug {
             storeFile file('../keystore/Untitled')
-            keyAlias 'hdlphotovotaic'
+            keyAlias 'photovotaic'
             storePassword '85521566'
             keyPassword '85521566'
         }
         release {
             storeFile file('../keystore/Untitled')
-            keyAlias 'photovoltaic'
+            keyAlias 'photovotaic'
             storePassword '85521566'
             keyPassword '85521566'
         }
     }
     compileSdk 30
-
     defaultConfig {
         applicationId "com.hdl.photovoltaic"
         minSdk 23
         targetSdk 30
         versionCode 1
-        versionName "1.0"
-
+        versionName "1.1.2"//鐗堟湰瑙勫垯1.1鏄骇鍝佸姛鑳借凯浠g敤鐨�,鏈�鍚庝竴浣�1鏄垜浠慨澶峛ug鐢ㄧ殑
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         multiDexEnabled true
         manifestPlaceholders = mfph
@@ -48,6 +46,14 @@
     repositories {
         flatDir {
             dirs 'libs'
+        }
+    }
+    /**
+     * 鎵撳寘鑷姩鍛藉悕
+     */
+    android.applicationVariants.configureEach { variant ->
+        variant.outputs.configureEach {
+            outputFileName = "photovoltaic_${name}_v${versionName}_${generateTime()}.apk"
         }
     }
 
@@ -70,6 +76,10 @@
         targetCompatibility JavaVersion.VERSION_1_8
     }
 }
+//鏋勫缓鏃堕棿
+static def generateTime() {
+    return new Date().format("yyyyMMddHHmm")
+}
 
 dependencies {
 
@@ -82,6 +92,9 @@
     implementation 'androidx.navigation:navigation-ui:2.3.5'
     implementation 'androidx.legacy:legacy-support-v4:1.0.0'
 
+    //鍥藉鍒楄〃鍜屾墜鏈哄尯鍙峰簱
+    implementation project(path: ':countrypicker')
+    //浜岀淮鐮佸簱
     implementation project(path: ':third-zxing')
     //Link鏈湴搴�
     implementation project(path: ':HDLLinkLocalSdk')
@@ -116,6 +129,12 @@
     implementation 'com.android.support:multidex:1.0.3'
     implementation 'androidx.webkit:webkit:1.3.0'//3.6.15鐗堟湰涔嬪悗 蹇呴』闆嗘垚锛岀敤鏉ユ敮鎸佹殫榛戞ā寮�
     //********UniSDK蹇呴』娣诲姞鐨勪緷璧� end********
+    //NanoHTTPD鎼缓鏈嶅姟鍣�
+    implementation 'org.nanohttpd:nanohttpd:2.3.1'
+    //Apache FileUtils 绗笁鏂瑰伐鍏风被
+    implementation 'commons-io:commons-io:2.11.0'
+    //鏉冮檺璇锋眰妗嗘灦
+    implementation 'com.github.getActivity:XXPermissions:12.8'
 
 
 }
\ No newline at end of file

--
Gitblit v1.8.0