forked from south-pacific/cordova-plugin-updateapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
66 lines (56 loc) · 2.67 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.qinsilk.updateapp"
version="1.1.0">
<name>UpdateApp</name>
<description>
应用内提示更新APP
</description>
<license>MIT</license>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/updateAppPlugin.js">
<clobbers target="window.plugins.updateApp" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="UpdateApp">
<param name="android-package" value="com.phonegap.plugins.updateapp.UpdateApp"/>
</feature>
</config-file>
<source-file src="src/android/UpdateApp.java" target-dir="src/com/phonegap/plugins/updateapp" />
<source-file src="src/android/softupdate_progress.xml" target-dir="res/layout"/>
<!-- copy from
https://github.com/shougao/cordova-plugin-apkinstaller/blob/master/plugin.xml
-->
<source-file src="src/android/res/xml/updateapp_file_paths.xml" target-dir="res/xml" />
<config-file target="AndroidManifest.xml" parent="application">
<provider android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true" android:name="androidx.core.content.FileProvider">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/updateapp_file_paths" />
</provider>
</config-file>
<config-file target="res/values/strings.xml" parent="/resources">
<string name="soft_update_no">已经是最新版本</string>
<string name="soft_update_title">软件更新</string>
<string name="soft_update_info">检测到新版本,立即更新吗?</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>
</platform>
<!-- ios -->
<platform name="ios">
<plugins-plist key="UpdateApp" string="UpdateApp" />
<config-file target="config.xml" parent="/*">
<feature name="UpdateApp">
<param name="ios-package" value="CDVUpdateApp" />
</feature>
</config-file>
<header-file src="src/ios/CDVUpdateApp.h" />
<source-file src="src/ios/CDVUpdateApp.m" />
</platform>
</plugin>