Skip to content

Commit b1a7766

Browse files
committed
Merge branch 'dev'
2 parents fbfe621 + 1cf537d commit b1a7766

17 files changed

+49
-44
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/jpush/jpush-phonegap-plugin.svg?branch=master)](https://travis-ci.org/jpush/jpush-phonegap-plugin)
44
[![QQ Group](https://img.shields.io/badge/QQ%20Group-413602425-red.svg)]()
5-
[![release](https://img.shields.io/badge/release-3.0.2-blue.svg)](https://github.com/jpush/jpush-phonegap-plugin/releases)
5+
[![release](https://img.shields.io/badge/release-3.0.3-blue.svg)](https://github.com/jpush/jpush-phonegap-plugin/releases)
66
[![platforms](https://img.shields.io/badge/platforms-iOS%7CAndroid-lightgrey.svg)](https://github.com/jpush/jpush-phonegap-plugin)
77
[![weibo](https://img.shields.io/badge/weibo-JPush-blue.svg)](http://weibo.com/jpush?refer_flag=1001030101_&is_all=1)
88

@@ -17,15 +17,15 @@
1717

1818
- 通过 Cordova Plugins 安装,要求 Cordova CLI 5.0+:
1919

20-
cordova plugin add jpush-phonegap-plugin --variable API_KEY=your_jpush_appkey
20+
cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_jpush_appkey
2121

2222
- 或直接通过 url 安装:
2323

24-
cordova plugin add https://github.com/jpush/jpush-phonegap-plugin.git --variable API_KEY=your_jpush_appkey
24+
cordova plugin add https://github.com/jpush/jpush-phonegap-plugin.git --variable APP_KEY=your_jpush_appkey
2525

2626
- 或下载到本地安装:
2727

28-
cordova plugin add Your_Plugin_Path --variable API_KEY=your_jpush_appkey
28+
cordova plugin add Your_Plugin_Path --variable APP_KEY=your_jpush_appkey
2929

3030

3131
## Usage

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jpush-phonegap-plugin",
3-
"version": "3.0.2",
3+
"version": "3.0.3",
44
"description": "JPush for cordova plugin",
55
"cordova": {
66
"id": "jpush-phonegap-plugin",

plugin.xml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
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.0.2">
5+
version="3.0.3">
66

77
<name>JPush Plugin</name>
88
<description>JPush for cordova plugin</description>
99
<author>JPush</author>
1010
<keywords>JPush,push</keywords>
1111
<license>MIT License</license>
1212

13-
<preference name="API_KEY" />
13+
<preference name="APP_KEY" />
1414

1515
<engines>
1616
<engine name="cordova" version=">=3.0" />
@@ -39,7 +39,7 @@
3939
<header-file src="src/ios/lib/JPUSHService.h" />
4040
<source-file src="src/ios/lib/jpush-ios-3.0.0.a" framework="true" />
4141
<source-file src="src/ios/lib/jcore-ios-1.0.0.a" framework="true" />
42-
<resource-file src="src/ios/PushConfig.plist" />
42+
<resource-file src="src/ios/JPushConfig.plist" />
4343

4444
<framework src="CFNetwork.framework" weak="true" />
4545
<framework src="CoreFoundation.framework" weak="true" />
@@ -54,9 +54,8 @@
5454
<framework src="UserNotifications.framework" weak="true" />
5555
<framework src="libresolv.tbd" weak="true" />
5656

57-
58-
<config-file target="*PushConfig.plist" parent="Appkey">
59-
<string>$API_KEY</string>
57+
<config-file target="*JPushConfig.plist" parent="Appkey">
58+
<string>$APP_KEY</string>
6059
</config-file>
6160
</platform>
6261

@@ -81,8 +80,10 @@
8180
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
8281
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
8382
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
84-
<permission android:name="$PACKAGE_NAME.permission.JPUSH_MESSAGE" android:protectionLevel="signature" />
83+
<permission android:name="$PACKAGE_NAME.permission.JPUSH_MESSAGE"
84+
android:protectionLevel="signature" />
8585
</config-file>
86+
8687
<config-file target="AndroidManifest.xml" parent="/manifest/application">
8788
<!-- Required SDK核心功能-->
8889
<activity android:name="cn.jpush.android.ui.PushActivity"
@@ -140,7 +141,9 @@
140141

141142
<!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 -->
142143
<!-- 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 -->
143-
<service android:name="cn.jpush.android.service.DaemonService" android:enabled="true" android:exported="true">
144+
<service android:name="cn.jpush.android.service.DaemonService"
145+
android:enabled="true"
146+
android:exported="true">
144147
<intent-filter>
145148
<action android:name="cn.jpush.android.intent.DaemonService" />
146149
<category android:name="$PACKAGE_NAME" />
@@ -173,16 +176,16 @@
173176
<receiver android:name="cn.jpush.android.service.AlarmReceiver" />
174177
<!-- Required. Enable it you can get statistics data with channel -->
175178
<meta-data android:name="JPUSH_CHANNEL" android:value="developer-default" />
176-
<meta-data android:name="JPUSH_APPKEY" android:value="$API_KEY" />
179+
<meta-data android:name="JPUSH_APPKEY" android:value="$APP_KEY" />
177180
</config-file>
178181

179-
<source-file src="src/android/libs/jpush-android_v3.0.0.jar" target-dir="libs" />
180-
<source-file src="src/android/libs/jcore-android_v1.0.0.jar" target-dir="libs" />
181-
<source-file src="src/android/libs/armeabi/libjcore100.so" target-dir="libs/armeabi" />
182-
<source-file src="src/android/libs/armeabi-v7a/libjcore100.so" target-dir="libs/armeabi-v7a" />
183-
<source-file src="src/android/libs/arm64-v8a/libjcore100.so" target-dir="libs/arm64-v8a" />
184-
<source-file src="src/android/libs/x86/libjcore100.so" target-dir="libs/x86" />
185-
<source-file src="src/android/libs/x86_64/libjcore100.so" target-dir="libs/x86_64" />
182+
<source-file src="src/android/libs/jpush-android_v3.0.1.jar" target-dir="libs" />
183+
<source-file src="src/android/libs/jcore-android_v1.1.0.jar" target-dir="libs" />
184+
<source-file src="src/android/libs/armeabi/libjcore110.so" target-dir="libs/armeabi" />
185+
<source-file src="src/android/libs/armeabi-v7a/libjcore110.so" target-dir="libs/armeabi-v7a" />
186+
<source-file src="src/android/libs/arm64-v8a/libjcore110.so" target-dir="libs/arm64-v8a" />
187+
<source-file src="src/android/libs/x86/libjcore110.so" target-dir="libs/x86" />
188+
<source-file src="src/android/libs/x86_64/libjcore110.so" target-dir="libs/x86_64" />
186189

187190
<source-file src="src/android/MyReceiver.java" target-dir="src/cn/jpush/phonegap" />
188191
<source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jpush/phonegap" />
Binary file not shown.
-286 KB
Binary file not shown.
291 KB
Binary file not shown.
-143 KB
Binary file not shown.
145 KB
Binary file not shown.

0 commit comments

Comments
 (0)