From 2f5411b86c59706d31f6ec7de629d8f860725e46 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 26 十一月 2025 19:56:56 +0800
Subject: [PATCH] 2025年11月26日19:56:45 集成谷歌推送
---
app/build.gradle | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/app/build.gradle b/app/build.gradle
index c533df2..bec48fa 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,6 +3,7 @@
// 娣诲姞濡備笅閰嶇疆(鍗庝负鏋佸厜鎺ㄩ��)
id 'com.huawei.agconnect'
}
+apply plugin: 'com.google.gms.google-services' // 鏀惧湪鏂囦欢搴曢儴
//蹇呴』閰嶇疆uni
def mfph = [
//瀹夸富鍖呭悕
@@ -24,13 +25,13 @@
keyPassword '85521566'
}
}
- compileSdk 34
+ compileSdk 35
defaultConfig {
applicationId "com.hdl.photovoltaic"
minSdk 23
- targetSdk 34
- versionCode 11
- versionName "1.2.0"//鐗堟湰瑙勫垯1.3鏄骇鍝佸姛鑳借凯浠g敤鐨�,鏈�鍚庝竴浣�0鏄垜浠慨澶峛ug鐢ㄧ殑
+ targetSdk 35
+ versionCode 20
+ versionName "2.0"//鐗堟湰瑙勫垯1.3鏄骇鍝佸姛鑳借凯浠g敤鐨�,鏈�鍚庝竴浣�0鏄垜浠慨澶峛ug鐢ㄧ殑
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
manifestPlaceholders = mfph
@@ -90,7 +91,7 @@
*/
android.applicationVariants.configureEach { variant ->
variant.outputs.configureEach {
- outputFileName = "photovoltaic_v${versionName}_${generateTime()}_${getEnvironmentVersion(1)}.apk"
+ outputFileName = "photovoltaic_v${versionName}_${generateTime()}_${getEnvironmentVersion(2)}.apk"
}
}
@@ -153,7 +154,7 @@
//浜岀淮鐮佸簱
implementation project(path: ':third-zxing')
//Link鏈湴搴擄紙鍦ㄧ嚎渚濊禆缃戠粶搴擄級
- implementation 'com.hdl.android:pmsdk:1.0.11'
+ implementation 'com.hdl.android:pmsdk:1.0.18'
// implementation 'com.hdl.android:debugsdk:1.0.71'
implementation project(path: ':sdk')
implementation 'androidx.activity:activity:1.2.3'
@@ -214,6 +215,21 @@
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.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'
--
Gitblit v1.8.0