Merge pull request #467 from LcTerry/master

更新JPush520
This commit is contained in:
LcTerry 2023-09-21 16:46:21 +08:00 committed by GitHub
commit 87808d953a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "jpush-phonegap-plugin", "name": "jpush-phonegap-plugin",
"version": "5.0.3", "version": "5.2.0",
"description": "JPush for cordova plugin", "description": "JPush for cordova plugin",
"cordova": { "cordova": {
"id": "jpush-phonegap-plugin", "id": "jpush-phonegap-plugin",

View File

@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
id="jpush-phonegap-plugin" id="jpush-phonegap-plugin"
version="3.8.6"> version="5.2.0">
<name>JPush</name> <name>JPush</name>
<description>JPush for cordova plugin</description> <description>JPush for cordova plugin</description>
@ -170,13 +170,13 @@
<receiver android:name="cn.jpush.android.service.SchedulerReceiver" android:exported="false"/> <receiver android:name="cn.jpush.android.service.SchedulerReceiver" android:exported="false"/>
<!--since 3.3.0 接收JPush相关事件--> <!--since 3.3.0 接收JPush相关事件-->
<receiver android:name="cn.jiguang.cordova.push.JPushEventReceiver" <service android:name="cn.jiguang.cordova.push.JPushEventReceiver"
android:exported="false"> android:exported="false">
<intent-filter> <intent-filter>
<action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" /> <action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
<category android:name="$PACKAGE_NAME"></category> <category android:name="$PACKAGE_NAME"></category>
</intent-filter> </intent-filter>
</receiver> </service>
<!--since 3.3.0 Required SDK核心功能--> <!--since 3.3.0 Required SDK核心功能-->
@ -242,7 +242,7 @@
android:name="cn.jpush.android.service.InitProvider"></provider> android:name="cn.jpush.android.service.InitProvider"></provider>
</config-file> </config-file>
<lib-file src="src/android/libs/jpush-android-5.0.3.jar" /> <lib-file src="src/android/libs/jpush-android-5.2.0.jar" />
<source-file src="src/android/PushService.java" target-dir="src/cn/jiguang/cordova/push" /> <source-file src="src/android/PushService.java" target-dir="src/cn/jiguang/cordova/push" />
<source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jiguang/cordova/push" /> <source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jiguang/cordova/push" />

View File

@ -15,9 +15,9 @@ import cn.jpush.android.api.CustomMessage;
import cn.jpush.android.api.JPushMessage; import cn.jpush.android.api.JPushMessage;
import cn.jpush.android.api.NotificationMessage; import cn.jpush.android.api.NotificationMessage;
import cn.jpush.android.helper.Logger; import cn.jpush.android.helper.Logger;
import cn.jpush.android.service.JPushMessageReceiver; import cn.jpush.android.service.JPushMessageService;
public class JPushEventReceiver extends JPushMessageReceiver { public class JPushEventReceiver extends JPushMessageService {
private static final String TAG = JPushEventReceiver.class.getSimpleName(); private static final String TAG = JPushEventReceiver.class.getSimpleName();