Browse Source

修改极光5.3.1版本

Pq 11 months ago
parent
commit
6c40183089

+ 1 - 2
institution/build.gradle

@@ -73,8 +73,7 @@ dependencies {
     implementation project(':usercenter')
     implementation project(':chatModule')
     implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
-    implementation 'cn.jiguang.sdk:jpush:4.7.2'  // 此处以JPush 4.7.0 版本为例。
-    implementation 'cn.jiguang.sdk:jcore:3.2.4'  // 此处以JCore 3.2.4 版本为例。
+    implementation 'cn.jiguang.sdk:jpush:5.3.1'  // 此处以JPush 4.7.0 版本为例。
 
     //ARouter
     annotationProcessor("com.alibaba:arouter-compiler:$rootProject.ext.android.arouter_api_version")

+ 7 - 7
student/build.gradle

@@ -133,20 +133,20 @@ dependencies {
 
 //    api(name: 'openDefault-10.10.0', ext: 'aar')
 //    极光推送start
-    implementation 'cn.jiguang.sdk:jpush:5.0.3'  // 此处以JPush 4.7.0 版本为例。
+    implementation 'cn.jiguang.sdk:jpush:5.3.1'  // 此处以JPush 4.7.0 版本为例。
     //若不集成厂商通道,可直接跳过以下依赖
     // 接入华为厂商
-    implementation 'com.huawei.hms:push:6.5.0.300'
+    implementation 'com.huawei.hms:push:6.12.0.300'
     // 极光厂商插件版本与接入 JPush 版本保持一致,下同
-    implementation 'cn.jiguang.sdk.plugin:huawei:5.0.3'
+    implementation 'cn.jiguang.sdk.plugin:huawei:5.3.1'
     // 接入 VIVO 厂商
-    implementation 'cn.jiguang.sdk.plugin:vivo:5.0.3'
+    implementation 'cn.jiguang.sdk.plugin:vivo:5.3.1'
     // 接入小米厂商
-    implementation 'cn.jiguang.sdk.plugin:xiaomi:5.0.3'
+    implementation 'cn.jiguang.sdk.plugin:xiaomi:5.3.1'
     // 接入 OPPO 厂商
-    implementation 'cn.jiguang.sdk.plugin:oppo:5.0.3'
+    implementation 'cn.jiguang.sdk.plugin:oppo:5.3.1'
     // JPush Android SDK v4.6.0 开始,需要单独引入 oppo 厂商 aar ,请下载官网 SDK 包并把 jpush-android-xxx-release/third-push/oppo/libs 下的 com.heytap.msp-push-x.x.x.aar 文件单独拷贝一份到应用 module/libs 下
-    implementation(name: 'com.heytap.msp-push-3.1.0', ext: 'aar')
+    implementation(name: 'com.heytap.msp_3.4.0', ext: 'aar')
     implementation 'commons-codec:commons-codec:1.6'
 //    极光推送end
 

BIN
student/libs/com.heytap.msp-push-3.1.0.aar


BIN
student/libs/com.heytap.msp_3.4.0.aar


+ 2 - 2
student/src/main/AndroidManifest.xml

@@ -284,7 +284,7 @@
                 <action android:name="cn.jiguang.user.service.action" />
             </intent-filter>
         </service> <!-- User defined.  For test only  用户自定义的广播接收器 -->
-        <receiver
+        <service
             android:name=".push.MyJPushMessageReceiver"
             android:enabled="true"
             android:exported="false">
@@ -293,7 +293,7 @@
 
                 <category android:name="${applicationId}" />
             </intent-filter>
-        </receiver> <!-- JPush结束 -->
+        </service> <!-- JPush结束 -->
         <service
             android:name=".push.MyHWPushService"
             android:exported="false">

+ 2 - 2
student/src/main/java/com/cooleshow/student/push/MyJPushMessageReceiver.java

@@ -9,12 +9,12 @@ import org.json.JSONObject;
 
 import cn.jpush.android.api.JPushMessage;
 import cn.jpush.android.api.NotificationMessage;
-import cn.jpush.android.service.JPushMessageReceiver;
+import cn.jpush.android.service.JPushMessageService;
 
 /**
  * 自定义JPush message 接收器,包括操作tag/alias的结果返回(仅仅包含tag/alias新接口部分)
  */
-public class MyJPushMessageReceiver extends JPushMessageReceiver {
+public class MyJPushMessageReceiver extends JPushMessageService {
 
     private String memo;
 

+ 7 - 7
teacher/build.gradle

@@ -139,20 +139,20 @@ dependencies {
 
 //    api(name: 'openDefault-10.10.0', ext: 'aar')
 //    极光推送start
-    implementation 'cn.jiguang.sdk:jpush:5.0.3'  // 此处以JPush 4.7.0 版本为例。
+    implementation 'cn.jiguang.sdk:jpush:5.3.1'  // 此处以JPush 4.7.0 版本为例。
     //若不集成厂商通道,可直接跳过以下依赖
     // 接入华为厂商
-    implementation 'com.huawei.hms:push:6.5.0.300'
+    implementation 'com.huawei.hms:push:6.12.0.300'
     // 极光厂商插件版本与接入 JPush 版本保持一致,下同
-    implementation 'cn.jiguang.sdk.plugin:huawei:5.0.3'
+    implementation 'cn.jiguang.sdk.plugin:huawei:5.3.1'
     // 接入 VIVO 厂商
-    implementation 'cn.jiguang.sdk.plugin:vivo:5.0.3'
+    implementation 'cn.jiguang.sdk.plugin:vivo:5.3.1'
     // 接入小米厂商
-    implementation 'cn.jiguang.sdk.plugin:xiaomi:5.0.3'
+    implementation 'cn.jiguang.sdk.plugin:xiaomi:5.3.1'
     // 接入 OPPO 厂商
-    implementation 'cn.jiguang.sdk.plugin:oppo:5.0.3'
+    implementation 'cn.jiguang.sdk.plugin:oppo:5.3.1'
     // JPush Android SDK v4.6.0 开始,需要单独引入 oppo 厂商 aar ,请下载官网 SDK 包并把 jpush-android-xxx-release/third-push/oppo/libs 下的 com.heytap.msp-push-x.x.x.aar 文件单独拷贝一份到应用 module/libs 下
-    implementation(name: 'com.heytap.msp-push-3.1.0', ext: 'aar')
+    implementation(name: 'com.heytap.msp_3.4.0', ext: 'aar')
     implementation 'commons-codec:commons-codec:1.6'
 //    极光推送end
 

BIN
teacher/libs/com.heytap.msp-push-3.1.0.aar


BIN
teacher/libs/com.heytap.msp_3.4.0.aar


+ 2 - 2
teacher/src/main/AndroidManifest.xml

@@ -393,7 +393,7 @@
                 <action android:name="cn.jiguang.user.service.action" />
             </intent-filter>
         </service> <!-- User defined.  For test only  用户自定义的广播接收器 -->
-        <receiver
+        <service
             android:name=".push.MyJPushMessageReceiver"
             android:enabled="true"
             android:exported="false">
@@ -402,7 +402,7 @@
 
                 <category android:name="${applicationId}" />
             </intent-filter>
-        </receiver> <!-- JPush结束 -->
+        </service> <!-- JPush结束 -->
         <service
             android:name=".push.MyHWPushService"
             android:exported="false">

+ 2 - 2
teacher/src/main/java/com/cooleshow/teacher/push/MyJPushMessageReceiver.java

@@ -12,12 +12,12 @@ import org.json.JSONObject;
 
 import cn.jpush.android.api.JPushMessage;
 import cn.jpush.android.api.NotificationMessage;
-import cn.jpush.android.service.JPushMessageReceiver;
+import cn.jpush.android.service.JPushMessageService;
 
 /**
  * 自定义JPush message 接收器,包括操作tag/alias的结果返回(仅仅包含tag/alias新接口部分)
  */
-public class MyJPushMessageReceiver extends JPushMessageReceiver {
+public class MyJPushMessageReceiver extends JPushMessageService {
 
     private String memo;