From caa35eaa7d9cae55a57155d9508d1285999f1bba Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 30 十一月 2023 22:16:42 +0800
Subject: [PATCH] 2023年11月30日22:16:31

---
 app/build.gradle |   44 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 43 insertions(+), 1 deletions(-)

diff --git a/app/build.gradle b/app/build.gradle
index 91dfa0e..12d6ca3 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -8,6 +8,20 @@
 ]
 
 android {
+    signingConfigs {
+        debug {
+            storeFile file('../keystore/Untitled')
+            keyAlias 'photovotaic'
+            storePassword '85521566'
+            keyPassword '85521566'
+        }
+        release {
+            storeFile file('../keystore/Untitled')
+            keyAlias 'photovotaic'
+            storePassword '85521566'
+            keyPassword '85521566'
+        }
+    }
     compileSdk 30
 
     defaultConfig {
@@ -15,7 +29,7 @@
         minSdk 23
         targetSdk 30
         versionCode 1
-        versionName "1.0"
+        versionName "1.1.1"
 
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         multiDexEnabled true
@@ -36,11 +50,23 @@
             dirs 'libs'
         }
     }
+    /**
+     * 鎵撳寘鑷姩鍛藉悕
+     */
+    android.applicationVariants.configureEach { variant ->
+        variant.outputs.configureEach {
+            outputFileName = "photovoltaic_${name}_v${versionName}_${generateTime()}.apk"
+        }
+    }
 
     buildTypes {
         release {
             minifyEnabled false
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+            signingConfig signingConfigs.release
+        }
+        debug {
+            signingConfig signingConfigs.debug
         }
     }
 
@@ -51,6 +77,10 @@
         sourceCompatibility JavaVersion.VERSION_1_8
         targetCompatibility JavaVersion.VERSION_1_8
     }
+}
+//鏋勫缓鏃堕棿
+static def generateTime() {
+    return new Date().format("yyyyMMddHHmm")
 }
 
 dependencies {
@@ -67,6 +97,8 @@
     implementation project(path: ':third-zxing')
     //Link鏈湴搴�
     implementation project(path: ':HDLLinkLocalSdk')
+//    implementation project(path: ':HDLLinkPMSdk')
+
     testImplementation 'junit:junit:4.13.2'
     androidTestImplementation 'androidx.test.ext:junit:1.1.3'
     androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
@@ -80,6 +112,10 @@
     //灞忓箷閫傞厤
     implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1'
 
+    //鍥剧墖鍔犺浇搴�
+    implementation 'com.github.bumptech.glide:glide:4.12.0'
+    annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
+
 
     //********UniSDK蹇呴』娣诲姞鐨勪緷璧� start********
     implementation "androidx.recyclerview:recyclerview:1.0.0"
@@ -92,6 +128,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