From f9956641e92cce3ece4cdff523a6e453f159d268 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 21 十二月 2023 11:58:30 +0800
Subject: [PATCH] 2023年12月21日11:58:13

---
 app/build.gradle |  125 +++++++++++++++++++++++++++++++++++++++--
 1 files changed, 118 insertions(+), 7 deletions(-)

diff --git a/app/build.gradle b/app/build.gradle
index 620abc7..10ce0ba 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,24 +1,79 @@
 plugins {
     id 'com.android.application'
 }
+//蹇呴』閰嶇疆uni
+def mfph = [
+        //瀹夸富鍖呭悕
+        "apk.applicationId": "com.hdl.photovoltaic",
+]
 
 android {
-    compileSdk 32
-
+    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 {
-        applicationId "com.example.photovoltaic"
+        applicationId "com.hdl.photovoltaic"
         minSdk 23
-        targetSdk 32
+        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
+        ndk {
+            abiFilters 'x86', 'armeabi-v7a', "arm64-v8a" //涓嶆敮鎸乤rmeabi
+        }
+
+        manifestPlaceholders = [
+                JPUSH_PKGNAME: applicationId,
+                //JPush 涓婃敞鍐岀殑鍖呭悕瀵瑰簲鐨� Appkey.
+                JPUSH_APPKEY : "3baee103750e192ba68f3878",
+                //鏆傛椂濉啓榛樿鍊煎嵆鍙�.
+                JPUSH_CHANNEL: "developer-default",
+
+        ]
+
+    }
+    repositories {
+        flatDir {
+            dirs 'libs'
+        }
+    }
+    //姝ゅ閰嶇疆蹇呴』娣诲姞 鍚﹀垯鏃犳硶姝g‘杩愯uni
+    aaptOptions {
+        additionalParameters '--auto-add-overlay'
+        //noCompress 'foo', 'bar'
+        ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
+    }
+    /**
+     * 鎵撳寘鑷姩鍛藉悕
+     */
+    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
         }
     }
 
@@ -30,8 +85,14 @@
         targetCompatibility JavaVersion.VERSION_1_8
     }
 }
+//鏋勫缓鏃堕棿
+static def generateTime() {
+    return new Date().format("yyyyMMddHHmm")
+}
 
 dependencies {
+
+    implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
 
     implementation 'androidx.appcompat:appcompat:1.3.0'
     implementation 'com.google.android.material:material:1.4.0'
@@ -39,8 +100,58 @@
     implementation 'androidx.navigation:navigation-fragment:2.3.5'
     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')
+//    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'
-    implementation 'org.greenrobot:eventbus:3.0.0'
+//    implementation 'org.greenrobot:eventbus:3.0.0'
+    implementation 'com.hdl.hdlhttp:hxhttp:1.0.4'
+    //okhttp 鎵撳嵃
+    implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1'
+
+    //Eventbus浜嬩欢鍙戝竷涓庢帴鏀�
+    implementation 'org.greenrobot:eventbus:3.3.1'
+    //灞忓箷閫傞厤
+    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"
+    implementation 'com.alibaba:fastjson:1.2.66'//蹇呴』闆嗘垚锛宖astjson鍔熻兘闇�瑕�
+    implementation 'com.facebook.fresco:fresco:2.5.0'//蹇呴』闆嗘垚锛屽浘鐗囧姞杞介渶瑕�
+    implementation 'com.facebook.fresco:animated-gif:2.5.0'//蹇呴』闆嗘垚锛屽浘鐗囧姞杞介渶瑕�
+    implementation 'com.facebook.fresco:webpsupport:2.5.0'
+    implementation 'com.facebook.fresco:animated-webp:2.5.0'
+    implementation 'com.github.bumptech.glide:glide:4.9.0'//蹇呴』闆嗘垚锛屽浘鐗囧姞杞介渶瑕�
+    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'
+
+    //閫氱敤閫傞厤鍣�
+    implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.6'
+
+    // 姝ゅ浠Push 5.0.3 鐗堟湰涓轰緥锛屾敞鎰忥細浠� 5.0.0 鐗堟湰寮�濮嬪彲浠ヨ嚜鍔ㄦ媺鍙� JCore 鍖咃紝鏃犻渶鍙﹀閰嶇疆
+    implementation 'cn.jiguang.sdk:jpush-google:5.2.2'
+    //鍒嗘瀽鍜岀敤鎴锋爣绛剧瓑鍔熻兘(鍙�夛紝闆嗘垚鏋佸厜鍒嗘瀽SDK鍚庯紝鍗冲彲鏀寔琛屼负瑙﹀彂鎺ㄩ�佹秷鎭�佹帹閫佽浆鍖栫巼缁熻锛岀敤鎴疯涓哄垎)
+    implementation 'cn.jiguang.sdk:joperate:2.0.2'
+
+
 }
\ No newline at end of file

--
Gitblit v1.8.0