From f19071bd5e0007fc823f99cdfa0196391827da1e Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 11 五月 2022 18:46:35 +0800
Subject: [PATCH] 'android项目完善'

---
 src/main/resources/code/android/app/build.gradle |   41 ++++++++++++++++++++++++++++++++++++++---
 1 files changed, 38 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/code/android/app/build.gradle b/src/main/resources/code/android/app/build.gradle
index fbc64b2..3c257e7 100644
--- a/src/main/resources/code/android/app/build.gradle
+++ b/src/main/resources/code/android/app/build.gradle
@@ -1,6 +1,6 @@
-plugins {
-    id 'com.android.application'
-}
+apply plugin: 'com.android.application'
+apply plugin: 'com.google.gms.google-services'
+apply plugin: 'com.huawei.agconnect'
 
 android {
 
@@ -18,6 +18,22 @@
         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
 
         multiDexEnabled true
+
+        manifestPlaceholders = [
+                JPUSH_PKGNAME : applicationId,
+                JPUSH_APPKEY  : "浣犵殑 Appkey ", //JPush 涓婃敞鍐岀殑鍖呭悕瀵瑰簲鐨� Appkey.
+                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"
+        ]
+
     }
 
     buildTypes {
@@ -63,4 +79,23 @@
 
     implementation 'androidx.cardview:cardview:1.0.0'
     implementation 'com.google.android.material:material:1.3.0'
+
+    //--鎺ㄩ�佸紑濮�
+    implementation 'cn.jiguang.sdk:jcore:2.7.2'  // 姝ゅ浠Core 2.7.2 鐗堟湰涓轰緥銆�
+    implementation 'cn.jiguang.sdk:jpush:4.0.0'  // 姝ゅ浠Push 4.0.0 鐗堟湰涓轰緥
+    // 鎺ュ叆鍗庝负鍘傚晢
+    implementation 'com.huawei.hms:push:4.0.2.300'
+    implementation 'cn.jiguang.sdk.plugin:huawei:4.0.0'// 鏋佸厜鍘傚晢鎻掍欢鐗堟湰涓庢帴鍏� JPush 鐗堟湰淇濇寔涓�鑷达紝涓嬪悓
+    // 鎺ュ叆 FCM 鍘傚晢
+    implementation 'com.google.firebase:firebase-messaging:21.0.1'
+    implementation 'cn.jiguang.sdk.plugin:fcm:4.0.0'
+    // 鎺ュ叆榄呮棌鍘傚晢
+    implementation 'cn.jiguang.sdk.plugin:meizu:4.0.0'
+    // 鎺ュ叆 VIVO 鍘傚晢
+    implementation 'cn.jiguang.sdk.plugin:vivo:4.0.0'
+    // 鎺ュ叆 OPPO 鍘傚晢
+    implementation 'cn.jiguang.sdk.plugin:oppo:4.0.0'
+    // 鎺ュ叆灏忕背鍘傚晢
+    implementation 'cn.jiguang.sdk.plugin:xiaomi:4.0.0'
+    //--鎺ㄩ�佺粨鏉�
 }
\ No newline at end of file

--
Gitblit v1.8.0