forked from post2000/androidUpdatePlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
42 lines (34 loc) · 1.63 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="com.plugin.update"
version="1.0.0">
<name>apkUpdate</name>
<description>PhoneGap/Cordova Apk Update Plugin</description>
<license>MIT</license>
<keywords>phonegap,cordova,android,autoupdate</keywords>
<!-- android -->
<platform name="android">
<js-module src="www/updateAppPlugin.js" name="UpdateApp">
<clobbers target="plugins.update" />
</js-module>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="UpdateApp">
<param name="android-package" value="com.plugin.update.UpdateApp" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</config-file>
<config-file target="res/values/strings.xml" parent="/*">
<string name="soft_update_title">新版本</string>
<string name="soft_update_updatebtn">现在更新</string>
<string name="soft_update_later">以后再说</string>
<string name="soft_updating">更新中...</string>
<string name="soft_update_cancel">取消</string>
</config-file>
<source-file src="src/UpdateApp.java" target-dir="src/com/plugin/update" />
<source-file src="res/layout/softupdate_progress.xml" target-dir="res/layout"/>
</platform>
</plugin>