From 1c91b62ea573082581e72fd433d02e3dc52dbf51 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期一, 05 一月 2026 11:03:29 +0800
Subject: [PATCH] 2026年01月05日11:00:26 升级gradle和uni库
---
app/build.gradle | 101 +++++++++-----------------------------------------
1 files changed, 19 insertions(+), 82 deletions(-)
diff --git a/app/build.gradle b/app/build.gradle
index 55ca496..0721c4f 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -11,6 +11,7 @@
]
android {
+ namespace 'com.hdl.photovoltaic'
signingConfigs {
debug {
storeFile file('../keystore/Untitled')
@@ -63,10 +64,10 @@
]
}
- // 淇濊瘉鍏朵粬鐨刲ib娌℃湁琚玴reDex
- dexOptions {
- preDexLibraries = false
- }
+// // 淇濊瘉鍏朵粬鐨刲ib娌℃湁琚玴reDex
+// dexOptions {
+// preDexLibraries = false
+// }
repositories {
flatDir {
dirs 'libs'
@@ -85,7 +86,11 @@
// abortOnError false
// }
-
+ packagingOptions {
+ jniLibs {
+ useLegacyPackaging true
+ }
+ }
/**
* 鎵撳寘鑷姩鍛藉悕
*/
@@ -110,6 +115,7 @@
buildFeatures {
viewBinding true
aidl true
+ buildConfig = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
@@ -154,7 +160,7 @@
//浜岀淮鐮佸簱
implementation project(path: ':third-zxing')
//Link鏈湴搴擄紙鍦ㄧ嚎渚濊禆缃戠粶搴擄級
- implementation 'com.hdl.android:pmsdk:1.0.18'
+ implementation 'com.hdl.android:pmsdk:1.0.22'
// implementation 'com.hdl.android:debugsdk:1.0.71'
implementation project(path: ':sdk')
implementation 'androidx.activity:activity:1.2.3'
@@ -175,8 +181,7 @@
//鍥剧墖鍔犺浇搴�
- implementation 'com.github.bumptech.glide:glide:4.13.0'
- annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
+ annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
//娣诲姞StatusBarUtil鐨勪緷璧� 鐘舵�佹爮閫傞厤
implementation 'com.jaeger.statusbarutil:library:1.5.1'
@@ -185,13 +190,13 @@
//********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.facebook.fresco:fresco:3.6.0'//蹇呴』闆嗘垚锛屽浘鐗囧姞杞介渶瑕�
+ implementation 'com.facebook.fresco:animated-gif:3.6.0'//蹇呴』闆嗘垚锛屽浘鐗囧姞杞介渶瑕�
+ implementation 'com.facebook.fresco:webpsupport:3.6.0'
+ implementation 'com.facebook.fresco:animated-webp:3.6.0'
+ implementation 'com.github.bumptech.glide:glide:5.0.5'//蹇呴』闆嗘垚锛屽浘鐗囧姞杞介渶瑕�
implementation 'com.android.support:multidex:1.0.3'
- implementation 'androidx.webkit:webkit:1.3.0'//3.6.15鐗堟湰涔嬪悗 蹇呴』闆嗘垚锛岀敤鏉ユ敮鎸佹殫榛戞ā寮�
+ implementation 'androidx.webkit:webkit:1.6.1'//3.6.15鐗堟湰涔嬪悗 蹇呴』闆嗘垚锛岀敤鏉ユ敮鎸佹殫榛戞ā寮�
//********UniSDK蹇呴』娣诲姞鐨勪緷璧� end********
//NanoHTTPD鎼缓鏈嶅姟鍣�
implementation 'org.nanohttpd:nanohttpd:2.3.1'
@@ -203,82 +208,14 @@
//閫氱敤閫傞厤鍣�
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'
-
// //鍙嬬洘
// implementation 'com.umeng.umsdk:common:9.5.6'// 蹇呴��
// implementation 'com.umeng.umsdk:asms:1.6.3'// 蹇呴��
// implementation 'com.umeng.umsdk:apm:1.7.0' // 閿欒鍒嗘瀽
//寮曞叆FCM锛堝師鐢熻胺姝岋級
implementation 'com.google.firebase:firebase-messaging:23.2.1'
-
- // 寮曞叆FCM
- implementation 'com.google.firebase:firebase-messaging:23.0.0' // 浣跨敤鏈�鏂扮増鏈�
// 浣跨敤 ShortcutBadger 搴擄紝娓呴櫎瑙掓爣
implementation 'me.leolin:ShortcutBadger:1.1.22@aar'
- // 闃块噷浜戞帹閫佹牳蹇冨簱
- implementation 'com.aliyun.ams:alicloud-android-push:3.9.3'
-
-
- //杈呭姪閫氶亾
- implementation 'com.aliyun.ams:alicloud-android-third-push:3.9.2'
-////鍗庝负渚濊禆
-// implementation 'com.aliyun.ams:alicloud-android-third-push-huawei:3.10.1'
-//灏忕背鍥藉唴閫氶亾渚濊禆
- implementation 'com.aliyun.ams:alicloud-android-third-push-xiaomi:3.9.2'
-//OPPO渚濊禆
- implementation 'com.aliyun.ams:alicloud-android-third-push-oppo:3.9.2'
-////vivo渚濊禆
-// implementation 'com.aliyun.ams:alicloud-android-third-push-vivo:3.10.1'
-////榄呮棌渚濊禆
-// implementation 'com.aliyun.ams:alicloud-android-third-push-meizu:3.10.1'
-////璋锋瓕渚濊禆
-// implementation 'com.aliyun.ams:alicloud-android-third-push-fcm:3.10.1'
-////鑽h��渚濊禆
-// implementation 'com.aliyun.ams:alicloud-android-third-push-honor:3.10.1'
-
-// // 鍙�夛細濡傛灉浣犻渶瑕佸鐞嗗悗鍙版秷鎭紝鍙兘闇�瑕佷互涓嬩緷璧�
-// implementation 'com.google.firebase:firebase-analytics:21.0.0'
-
-// // 鎺ュ叆 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 鐩綍涓嬨��
- //鍙互浣跨敤CardView缁勪欢鏉ヤ负瑙嗗浘璁剧疆闃村奖鏁堟灉
}
\ No newline at end of file
--
Gitblit v1.8.0