From f7c38847b8e00c84c30e51a92c03071d3e9a9da8 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期二, 14 五月 2024 09:08:57 +0800
Subject: [PATCH] 2024年05月14日09:08:49

---
 app/build.gradle |  152 +++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 142 insertions(+), 10 deletions(-)

diff --git a/app/build.gradle b/app/build.gradle
index a2a4d12..56f9234 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,5 +1,7 @@
 plugins {
     id 'com.android.application'
+    // 娣诲姞濡備笅閰嶇疆(鍗庝负鏋佸厜鎺ㄩ��)
+    id 'com.huawei.agconnect'
 }
 //蹇呴』閰嶇疆uni
 def mfph = [
@@ -8,22 +10,66 @@
 ]
 
 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.hdl.photovoltaic"
         minSdk 23
-        targetSdk 32
+        targetSdk 30
         versionCode 1
-        versionName "1.0"
-
+        versionName "1.3.3"//鐗堟湰瑙勫垯1.3鏄骇鍝佸姛鑳借凯浠g敤鐨�,鏈�鍚庝竴浣�0鏄垜浠慨澶峛ug鐢ㄧ殑
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         multiDexEnabled true
         manifestPlaceholders = mfph
         ndk {
-            abiFilters 'x86', 'armeabi-v7a', "arm64-v8a" //涓嶆敮鎸乤rmeabi
+            abiFilters 'armeabi-v7a', "arm64-v8a" //涓嶆敮鎸乤rmeabi
         }
 
+        manifestPlaceholders = [
+                JPUSH_PKGNAME: applicationId,
+                //JPush 涓婃敞鍐岀殑鍖呭悕瀵瑰簲鐨� Appkey.
+                JPUSH_APPKEY : "3baee103750e192ba68f3878",
+                //鏆傛椂濉啓榛樿鍊煎嵆鍙�.
+                JPUSH_CHANNEL: "developer-default",
+
+//                //鑻ヤ笉闆嗘垚鍘傚晢閫氶亾锛屽彲鐩存帴璺宠繃浠ヤ笅閰嶇疆
+//                MEIZU_APPKEY : "MZ-榄呮棌鐨凙PPKEY",
+//                MEIZU_APPID : "MZ-榄呮棌鐨凙PPID",
+//                XIAOMI_APPID : "MI-灏忕背鐨凙PPID",
+//                XIAOMI_APPKEY : "MI-灏忕背鐨凙PPKEY",
+//                OPPO_APPKEY : "OP-oppo鐨凙PPKEY",
+//                OPPO_APPID : "OP-oppo鐨凙PPID",
+//                OPPO_APPSECRET : "OP-oppo鐨凙PPSECRET",
+//                VIVO_APPKEY : "vivo鐨凙PPKEY",
+//                VIVO_APPID : "vivo鐨凙PPID",
+//                HONOR_APPID : "Honor鐨凙PP ID",
+//                MEIZU_APPKEY : "MZ-榄呮棌鐨凙PPKEY",
+//                MEIZU_APPID : "110098313",
+
+        ]
+
+    }
+    // 淇濊瘉鍏朵粬鐨刲ib娌℃湁琚玴reDex
+    dexOptions {
+        preDexLibraries = false
+    }
+    repositories {
+        flatDir {
+            dirs 'libs'
+        }
     }
     //姝ゅ閰嶇疆蹇呴』娣诲姞 鍚﹀垯鏃犳硶姝g‘杩愯uni
     aaptOptions {
@@ -31,16 +77,24 @@
         //noCompress 'foo', 'bar'
         ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
     }
-    repositories {
-        flatDir {
-            dirs 'libs'
+    /**
+     * 鎵撳寘鑷姩鍛藉悕
+     */
+    android.applicationVariants.configureEach { variant ->
+        variant.outputs.configureEach {
+            outputFileName = "photovoltaic_${name}_v${versionName}_${generateTime()}.apk"
         }
     }
 
     buildTypes {
         release {
-            minifyEnabled false
+            minifyEnabled false //寮�鍚贩娣�
             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+            signingConfig signingConfigs.release
+        }
+        debug {
+            signingConfig signingConfigs.debug
+
         }
     }
 
@@ -51,6 +105,10 @@
         sourceCompatibility JavaVersion.VERSION_1_8
         targetCompatibility JavaVersion.VERSION_1_8
     }
+}
+//鏋勫缓鏃堕棿
+static def generateTime() {
+    return new Date().format("yyyyMMddHHmm")
 }
 
 dependencies {
@@ -63,15 +121,38 @@
     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: ':pickerview')
+    //鍥捐〃搴�
+    implementation project(path: ':aa_chart_core')
+    //鍥藉鍒楄〃鍜屾墜鏈哄尯鍙峰簱
+    implementation project(path: ':countrypicker')
+    //浜岀淮鐮佸簱
     implementation project(path: ':third-zxing')
+    //Link鏈湴搴擄紙鍦ㄧ嚎渚濊禆缃戠粶搴擄級
+    implementation 'com.hdl.android:pmsdk:1.0.2'
+    implementation 'com.hdl.android:debugsdk:1.0.22'
+
     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 '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.13.0'
+    annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
+
+    //娣诲姞StatusBarUtil鐨勪緷璧�
+    implementation 'com.jaeger.statusbarutil:library:1.5.1'
 
 
     //********UniSDK蹇呴』娣诲姞鐨勪緷璧� start********
@@ -85,6 +166,57 @@
     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'
+
+
+
+    //鑻ヤ笉闆嗘垚鍘傚晢閫氶亾锛屽彲鐩存帴璺宠繃浠ヤ笅渚濊禆
+    // 鏋佸厜鍘傚晢鎻掍欢鐗堟湰涓庢帴鍏� JPush 鐗堟湰淇濇寔涓�鑷达紝涓嬪悓
+    // 鎺ュ叆鍗庝负鍘傚晢
+    implementation 'com.huawei.hms:push:6.9.0.300'
+    implementation 'cn.jiguang.sdk.plugin:huawei:5.0.3'
+    implementation 'com.huawei.agconnect:agconnect-core:1.9.1.301'
+//    // 鎺ュ叆 FCM 鍘傚晢
+//    implementation 'com.google.firebase:firebase-messaging:23.1.2'
+//    implementation 'cn.jiguang.sdk.plugin:fcm:5.0.3'
+//    // 鎺ュ叆榄呮棌鍘傚晢
+//    implementation 'cn.jiguang.sdk.plugin:meizu:5.0.3'
+//    // 鎺ュ叆 VIVO 鍘傚晢
+//    implementation 'cn.jiguang.sdk.plugin:vivo:5.0.3'
+//    // 鎺ュ叆灏忕背鍘傚晢
+//    implementation 'cn.jiguang.sdk.plugin:xiaomi:5.0.3'
+//    // 鎺ュ叆 OPPO 鍘傚晢
+//    implementation 'cn.jiguang.sdk.plugin:oppo:5.0.3'
+//    // JPush Android SDK v4.6.0 寮�濮嬶紝闇�瑕佸崟鐙紩鍏� oppo 鍘傚晢 aar 锛岃涓嬭浇瀹樼綉 SDK 鍖呭苟鎶� jpush-android-xxx-release/third-push/oppo/libs 涓嬬殑 aar 鏂囦欢鍗曠嫭鎷疯礉涓�浠藉埌搴旂敤 module/libs 涓�
+//    implementation(name: 'com.heytap.msp-push-3.1.0', ext: 'aar')
+//
+//    //浠ヤ笅涓� OPPO 3.1.0 aar闇�瑕佷緷璧�
+//    implementation 'com.google.code.gson:gson:2.6.2'
+//    implementation 'commons-codec:commons-codec:1.6'
+//    implementation 'androidx.annotation:annotation:1.1.0'
+//    // 鎺ュ叆鑽h��鍘傚晢
+//    implementation 'cn.jiguang.sdk.plugin:honor:5.0.3'
+//    //闇�瑕佸崟鐙紩鍏ヨ崳鑰�鍘傚晢 aar 锛岃涓嬭浇瀹樼綉 SDK 鍖呭苟鎶� jpush-android-xxx-release/third-push/honor/libs 涓嬬殑 aar 鏂囦欢鍗曠嫭鎷疯礉涓�浠藉埌搴旂敤 module/libs 涓�
+//    implementation(name: 'HiPushSdk-v7.0.41.301', ext: 'aar')
+
+
+//    搴旂敤 Module 閰嶇疆
+//    濡傛灉閫夋嫨鐨勫巶鍟嗛�氶亾鍖呭惈浜� Huawei 鍘傚晢閫氶亾鍜� FCM 鍘傚晢閫氶亾锛屽垯闇�瑕侀澶栨墽琛屼互涓嬫搷浣滐紝鑻ユ湭閫夋嫨鍙拷鐣ユ湰姝ラ銆�
+//    FCM锛氬湪 Firebase 涓婂垱寤哄拰 JPush 涓婂悓鍖呭悕鐨勫緟鍙戝竷搴旂敤锛屽垱寤哄畬鎴愬悗涓嬭浇璇ュ簲鐢ㄧ殑 google-services.json 閰嶇疆鏂囦欢骞舵坊鍔犲埌搴旂敤鐨� module 鐩綍涓嬨��
+//    Huawei锛氬湪 Huawei 涓婂垱寤哄拰 JPush 涓婂悓鍖呭悕鐨勫緟鍙戝竷搴旂敤锛屽垱寤哄畬鎴愬悗涓嬭浇璇ュ簲鐢ㄧ殑 agconnect-services.json 閰嶇疆鏂囦欢骞舵坊鍔犲埌搴旂敤鐨� module 鐩綍涓嬨��
 
 
 }
\ No newline at end of file

--
Gitblit v1.8.0