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 |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/app/build.gradle b/app/build.gradle
index 537a2d6..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 = [
         //瀹夸富鍖呭悕
@@ -29,8 +30,8 @@
         applicationId "com.hdl.photovoltaic"
         minSdk 23
         targetSdk 35
-        versionCode 19
-        versionName "1.4.0"//鐗堟湰瑙勫垯1.3鏄骇鍝佸姛鑳借凯浠g敤鐨�,鏈�鍚庝竴浣�0鏄垜浠慨澶峛ug鐢ㄧ殑
+        versionCode 20
+        versionName "2.0"//鐗堟湰瑙勫垯1.3鏄骇鍝佸姛鑳借凯浠g敤鐨�,鏈�鍚庝竴浣�0鏄垜浠慨澶峛ug鐢ㄧ殑
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
         multiDexEnabled true
         manifestPlaceholders = mfph
@@ -218,6 +219,16 @@
     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'

--
Gitblit v1.8.0