Skip to content

Commit 0342947

Browse files
committed
升级JPush到Android410,iOS352
1 parent e56a05c commit 0342947

26 files changed

+1795
-154
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jpush-phonegap-plugin",
3-
"version": "3.7.6",
3+
"version": "3.8.0",
44
"description": "JPush for cordova plugin",
55
"cordova": {
66
"id": "jpush-phonegap-plugin",
@@ -23,7 +23,7 @@
2323
],
2424
"devDependencies": {
2525
"cordova-plugin-device": "*",
26-
"cordova-plugin-jcore": ">=1.3.0"
26+
"cordova-plugin-jcore": ">=1.4.0"
2727
},
2828
"author": "JiGuang",
2929
"license": "MIT",

plugin.xml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
id="jpush-phonegap-plugin"
5-
version="3.7.6">
5+
version="3.8.0">
66

77
<name>JPush</name>
88
<description>JPush for cordova plugin</description>
@@ -49,7 +49,7 @@
4949
<source-file src="src/ios/Plugins/AppDelegate+JPush.m" />
5050

5151
<header-file src="src/ios/lib/JPUSHService.h" />
52-
<source-file src="src/ios/lib/jpush-ios-3.3.3.a" framework="true" />
52+
<source-file src="src/ios/lib/jpush-ios-3.5.2.a" framework="true" />
5353
<resource-file src="src/ios/JPushConfig.plist" />
5454

5555
<framework src="CFNetwork.framework" weak="true" />
@@ -64,6 +64,7 @@
6464
<framework src="AdSupport.framework" weak="true" />
6565
<framework src="UserNotifications.framework" weak="true" />
6666
<framework src="libresolv.tbd" weak="true" />
67+
<framework src="StoreKit.framework" weak="true" />
6768

6869
<config-file target="*JPushConfig.plist" parent="Appkey">
6970
<string>$APP_KEY</string>
@@ -105,6 +106,7 @@
105106
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
106107
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
107108
<uses-permission android:name="android.permission.GET_TASKS" />
109+
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
108110

109111
<!--华为角标-->
110112
<uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE "/>
@@ -204,7 +206,8 @@
204206
<receiver android:name="cn.jpush.android.service.SchedulerReceiver" android:exported="false"/>
205207

206208
<!--since 3.3.0 接收JPush相关事件-->
207-
<receiver android:name="cn.jiguang.cordova.push.JPushEventReceiver">
209+
<receiver android:name="cn.jiguang.cordova.push.JPushEventReceiver"
210+
android:exported="false">
208211
<intent-filter>
209212
<action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
210213
<category android:name="$PACKAGE_NAME"></category>
@@ -227,7 +230,8 @@
227230
<!-- 可配置android:process参数将PushService放在其他进程中 -->
228231
<!--User defined. For test only 继承自cn.jpush.android.service.JCommonService-->
229232
<service android:name="cn.jiguang.cordova.push.PushService"
230-
android:process=":pushcore">
233+
android:process=":pushcore"
234+
android:exported="false">
231235
<intent-filter>
232236
<action android:name="cn.jiguang.user.service.action" />
233237
</intent-filter>
@@ -255,7 +259,7 @@
255259

256260
</config-file>
257261

258-
<lib-file src="src/android/libs/jpush-android-3.6.6.jar" />
262+
<lib-file src="src/android/libs/jpush-android-4.1.0.jar" />
259263

260264
<source-file src="src/android/PushService.java" target-dir="src/cn/jiguang/cordova/push" />
261265
<source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jiguang/cordova/push" />
@@ -266,20 +270,36 @@
266270
target="res/drawable/jpush_richpush_btn_selector.xml" />
267271
<resource-file src="src/android/res/drawable-hdpi/jpush_richpush_progressbar.xml"
268272
target="res/drawable/jpush_richpush_progressbar.xml" />
269-
270273
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png"
271274
target="res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png" />
272275
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png"
273276
target="res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png" />
277+
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_action_cancle.png"
278+
target="res/drawable-hdpi/jpush_ic_action_cancle.png" />
279+
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_action_close.png"
280+
target="res/drawable-hdpi/jpush_ic_action_close.png" />
281+
<resource-file src="src/android/res/drawable-hdpi/jpush_ic_action_close2.png"
282+
target="res/drawable-hdpi/jpush_ic_action_close2.png" />
274283

275284
<resource-file src="src/android/res/layout/jpush_popwin_layout.xml"
276285
target="res/layout/jpush_popwin_layout.xml" />
277286
<resource-file src="src/android/res/layout/jpush_webview_layout.xml"
278287
target="res/layout/jpush_webview_layout.xml" />
279288
<resource-file src="src/android/res/layout/push_notification.xml"
280289
target="res/layout/push_notification.xml" />
290+
<resource-file src="src/android/res/layout/push_notification_large.xml"
291+
target="res/layout/push_notification_large.xml" />
292+
<resource-file src="src/android/res/layout/push_notification_middle.xml"
293+
target="res/layout/push_notification_middle.xml" />
294+
<resource-file src="src/android/res/layout/jpush_inapp_banner.xml"
295+
target="res/layout/jpush_inapp_banner.xml" />
296+
281297
<resource-file src="src/android/res/layout-v21/push_notification.xml"
282298
target="res/layout-v21/push_notification.xml" />
299+
<resource-file src="src/android/res/layout-v21/push_notification_middle.xml"
300+
target="res/layout-v21/push_notification_middle.xml" />
301+
<resource-file src="src/android/res/layout-v21/push_notification_large.xml"
302+
target="res/layout-v21/push_notification_large.xml" />
283303

284304
<resource-file src="src/android/res/values/jpush_style.xml"
285305
target="res/values/jpush_style.xml" />
-279 KB
Binary file not shown.
516 KB
Binary file not shown.
551 Bytes
Loading
591 Bytes
Loading
759 Bytes
Loading

src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png

100755100644
File mode changed.

src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png

100755100644
File mode changed.

src/android/res/drawable-hdpi/jpush_richpush_btn_selector.xml

100755100644
File mode changed.

0 commit comments

Comments
 (0)