|
2 | 2 | <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" |
3 | 3 | xmlns:android="http://schemas.android.com/apk/res/android" |
4 | 4 | id="jpush-phonegap-plugin" |
5 | | - version="3.3.0"> |
| 5 | + version="3.4.0"> |
6 | 6 |
|
7 | 7 | <name>JPush</name> |
8 | 8 | <description>JPush for cordova plugin</description> |
|
57 | 57 | <config-file target="*JPushConfig.plist" parent="Appkey"> |
58 | 58 | <string>$APP_KEY</string> |
59 | 59 | </config-file> |
60 | | - |
61 | | - <!-- <hook type="after_platform_add" src="hooks/iosEnablePush.js" /> |
62 | | - <hook type="after_plugin_install" src="hooks/iosEnablePush.js" /> |
63 | | - <hook type="before_plugin_uninstall" src="hooks/iosDisablePush.js" /> --> |
64 | 60 | </platform> |
65 | 61 |
|
66 | 62 | <platform name="android"> |
|
70 | 66 | </feature> |
71 | 67 | </config-file> |
72 | 68 |
|
73 | | - <config-file target="AndroidManifest.xml" parent="/manifest"> |
74 | | - <!-- Required 一些系统要求的权限,如访问网络等--> |
| 69 | + <config-file target="AndroidManifest.xml" parent="/manifest" mode="merge"> |
| 70 | + <!-- Required 一些系统要求的权限,如访问网络等 --> |
75 | 71 | <permission android:name="$PACKAGE_NAME.permission.JPUSH_MESSAGE" |
76 | 72 | android:protectionLevel="signature" /> |
77 | 73 |
|
|
90 | 86 | <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> |
91 | 87 | </config-file> |
92 | 88 |
|
93 | | - <config-file target="AndroidManifest.xml" parent="/manifest/application"> |
94 | | - <!-- Required SDK核心功能--> |
| 89 | + <config-file target="AndroidManifest.xml" parent="/manifest/application" mode="merge"> |
| 90 | + <!-- Required SDK核心功能 --> |
95 | 91 | <activity android:name="cn.jpush.android.ui.PushActivity" |
96 | 92 | android:theme="@android:style/Theme.Translucent.NoTitleBar" |
97 | 93 | android:configChanges="orientation|keyboardHidden"> |
|
102 | 98 | </intent-filter> |
103 | 99 | </activity> |
104 | 100 |
|
105 | | - <!-- Rich push 核心功能 since 2.0.6--> |
| 101 | + <!-- Rich push 核心功能 since 2.0.6 --> |
106 | 102 | <activity android:name="cn.jpush.android.ui.PopWinActivity" |
107 | 103 | android:theme="@style/MyDialogStyle" |
108 | 104 | android:exported="false"> |
109 | 105 | </activity> |
110 | 106 |
|
111 | | - <!-- Required SDK核心功能--> |
| 107 | + <!-- Required SDK 核心功能 --> |
112 | 108 | <service android:name="cn.jpush.android.service.DownloadService" |
113 | 109 | android:enabled="true" |
114 | 110 | android:exported="false"> |
|
148 | 144 | </intent-filter> |
149 | 145 | </receiver> |
150 | 146 |
|
151 | | - <!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 --> |
| 147 | + <!-- since 1.8.0 option 可选项。用于同一设备中不同应用的 JPush 服务相互拉起的功能。 --> |
152 | 148 | <!-- 若不启用该功能可删除该组件,将不拉起其他应用也不能被其他应用拉起 --> |
153 | 149 | <service android:name="cn.jpush.android.service.DaemonService" |
154 | 150 | android:enabled="true" |
|
159 | 155 | </intent-filter> |
160 | 156 | </service> |
161 | 157 |
|
162 | | - <!-- User defined. For test only 用户自定义的广播接收器 --> |
| 158 | + <!-- 通知广播接收器 --> |
163 | 159 | <receiver |
164 | 160 | android:name="cn.jiguang.cordova.push.JPushReceiver" |
165 | 161 | android:enabled="true"> |
|
196 | 192 | <meta-data android:name="JPUSH_APPKEY" android:value="$APP_KEY" /> |
197 | 193 | </config-file> |
198 | 194 |
|
199 | | - <source-file src="src/android/libs/jpush-android-3.1.1.jar" target-dir="libs" /> |
| 195 | + <lib-file src="src/android/libs/jpush-android-3.1.1.jar" /> |
200 | 196 |
|
201 | | - <source-file src="src/android/JPushReceiver.java" target-dir="src/cn/jiguang/cordova/push" /> |
202 | | - <source-file src="src/android/JPushPlugin.java" target-dir="src/cn/jiguang/cordova/push" /> |
203 | | - <source-file src="src/android/JPushEventReceiver.java" target-dir="src/cn/jiguang/cordova/push" /> |
| 197 | + <source-file src="src/android/JPushReceiver.java" target-dir="app/src/main/java/cn/jiguang/cordova/push" /> |
| 198 | + <source-file src="src/android/JPushPlugin.java" target-dir="app/src/main/java/cn/jiguang/cordova/push" /> |
| 199 | + <source-file src="src/android/JPushEventReceiver.java" target-dir="app/src/main/java/cn/jiguang/cordova/push" /> |
204 | 200 |
|
205 | | - <source-file src="src/android/res/drawable-hdpi/jpush_richpush_btn_selector.xml" |
206 | | - target-dir="res/drawable" /> |
207 | | - <source-file src="src/android/res/drawable-hdpi/jpush_richpush_progressbar.xml" |
208 | | - target-dir="res/drawable" /> |
| 201 | + <resource-file src="src/android/res/drawable-hdpi/jpush_richpush_btn_selector.xml" |
| 202 | + target="res/drawable/jpush_richpush_btn_selector.xml" /> |
| 203 | + <resource-file src="src/android/res/drawable-hdpi/jpush_richpush_progressbar.xml" |
| 204 | + target="res/drawable/jpush_richpush_progressbar.xml" /> |
209 | 205 |
|
210 | | - <source-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png" |
211 | | - target-dir="res/drawable-hdpi" /> |
212 | | - <source-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png" |
213 | | - target-dir="res/drawable-hdpi" /> |
| 206 | + <resource-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png" |
| 207 | + target="res/drawable-hdpi/jpush_ic_richpush_actionbar_back.png" /> |
| 208 | + <resource-file src="src/android/res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png" |
| 209 | + target="res/drawable-hdpi/jpush_ic_richpush_actionbar_divider.png" /> |
214 | 210 |
|
215 | | - <source-file src="src/android/res/layout/jpush_popwin_layout.xml" target-dir="res/layout" /> |
216 | | - <source-file src="src/android/res/layout/jpush_webview_layout.xml" target-dir="res/layout" /> |
217 | | - <source-file src="src/android/res/layout/test_notification_layout.xml" target-dir="res/layout" /> |
| 211 | + <resource-file src="src/android/res/layout/jpush_popwin_layout.xml" |
| 212 | + target="res/layout/jpush_popwin_layout.xml" /> |
| 213 | + <resource-file src="src/android/res/layout/jpush_webview_layout.xml" |
| 214 | + target="res/layout/jpush_webview_layout.xml" /> |
| 215 | + <resource-file src="src/android/res/layout/test_notification_layout.xml" |
| 216 | + target="res/layout/test_notification_layout.xml" /> |
218 | 217 |
|
219 | | - <source-file src="src/android/res/values/jpush_style.xml" target-dir="res/values" /> |
| 218 | + <resource-file src="src/android/res/values/jpush_style.xml" |
| 219 | + target="res/values/jpush_style.xml" /> |
220 | 220 | </platform> |
221 | 221 | </plugin> |
0 commit comments