This repository has been archived by the owner on Oct 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 467
/
plugin.xml
203 lines (203 loc) · 16.9 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="cordova-hot-code-push-plugin" version="1.5.3"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>Hot Code Push Plugin</name>
<description>Cordova plugin to perform code updates on the fly</description>
<license>MIT</license>
<keywords>cordova,code,update</keywords>
<repo>https://github.com/nordnet/cordova-hot-code-push</repo>
<issue>https://github.com/nordnet/cordova-hot-code-push/issues</issue>
<engines>
<engine name="cordova-ios" version=">=3.8"></engine>
<engine name="cordova-android" version=">=4"></engine>
<engine name="cordova-plugman" version=">=4.2.0"></engine>
<!-- needed for gradleReference support -->
</engines>
<!-- JavaScrip Library Sources -->
<js-module name="chcp" src="www/chcp.js">
<clobbers target="chcp"/>
</js-module>
<!-- Config.xml preferences -->
<config-file parent="/*" target="config.xml">
<preference name="loadUrlTimeoutValue" value="60000"/>
</config-file>
<!-- Hooks -->
<hook src="scripts/afterPrepareHook.js" type="after_prepare"/>
<hook src="scripts/beforePluginInstallHook.js" type="before_plugin_install"/>
<platform name="ios">
<!-- Plugin inclusion in Cordova config.xml -->
<config-file parent="/*" target="config.xml">
<feature name="HotCodePush">
<param name="ios-package" value="HCPPlugin"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<!-- Plugin source code -->
<source-file src="src/ios/HCPPlugin.m"/>
<header-file src="src/ios/HCPPlugin.h"/>
<!-- sources for Config folder -->
<source-file src="src/ios/Config/HCPApplicationConfig.m" target-dir="Config/"/>
<header-file src="src/ios/Config/HCPApplicationConfig.h" target-dir="Config/"/>
<source-file src="src/ios/Config/HCPContentConfig.m" target-dir="Config/"/>
<header-file src="src/ios/Config/HCPContentConfig.h" target-dir="Config/"/>
<source-file src="src/ios/Config/HCPContentManifest.m" target-dir="Config/"/>
<header-file src="src/ios/Config/HCPContentManifest.h" target-dir="Config/"/>
<source-file src="src/ios/Config/HCPPluginInternalPreferences.m" target-dir="Config/"/>
<header-file src="src/ios/Config/HCPPluginInternalPreferences.h" target-dir="Config/"/>
<source-file src="src/ios/Config/HCPXmlConfig.m" target-dir="Config/"/>
<header-file src="src/ios/Config/HCPXmlConfig.h" target-dir="Config/"/>
<source-file src="src/ios/Config/HCPXmlTags.m" target-dir="Config/"/>
<header-file src="src/ios/Config/HCPXmlTags.h" target-dir="Config/"/>
<source-file src="src/ios/Config/HCPXmlConfigParser.m" target-dir="Config/"/>
<header-file src="src/ios/Config/HCPXmlConfigParser.h" target-dir="Config/"/>
<!-- sources for Events folder -->
<source-file src="src/ios/Events/HCPEvents.m" target-dir="Events/"/>
<header-file src="src/ios/Events/HCPEvents.h" target-dir="Events/"/>
<!-- sources for JS folder -->
<source-file src="src/ios/JS/CDVPluginResult+HCPEvents.m" target-dir="JS/"/>
<header-file src="src/ios/JS/CDVPluginResult+HCPEvents.h" target-dir="JS/"/>
<!-- sources for Model folder -->
<source-file src="src/ios/Model/HCPFilesStructure.m" target-dir="Model/"/>
<header-file src="src/ios/Model/HCPFilesStructure.h" target-dir="Model/"/>
<header-file src="src/ios/Model/HCPJsonConvertable.h" target-dir="Model/"/>
<source-file src="src/ios/Model/HCPManifestDiff.m" target-dir="Model/"/>
<header-file src="src/ios/Model/HCPManifestDiff.h" target-dir="Model/"/>
<source-file src="src/ios/Model/HCPManifestFile.m" target-dir="Model/"/>
<header-file src="src/ios/Model/HCPManifestFile.h" target-dir="Model/"/>
<!-- sources for Network folder -->
<source-file src="src/ios/Network/HCPFileDownloader.m" target-dir="Network/"/>
<header-file src="src/ios/Network/HCPFileDownloader.h" target-dir="Network/"/>
<source-file src="src/ios/Network/HCPDataDownloader.m" target-dir="Network/"/>
<header-file src="src/ios/Network/HCPDataDownloader.h" target-dir="Network/"/>
<!-- sources for Storage folder -->
<source-file src="src/ios/Storage/HCPApplicationConfigStorage.m" target-dir="Storage/"/>
<header-file src="src/ios/Storage/HCPApplicationConfigStorage.h" target-dir="Storage/"/>
<header-file src="src/ios/Storage/HCPConfigFileStorage.h" target-dir="Storage/"/>
<source-file src="src/ios/Storage/HCPConfigStorageImpl.m" target-dir="Storage/"/>
<header-file src="src/ios/Storage/HCPConfigStorageImpl.h" target-dir="Storage/"/>
<source-file src="src/ios/Storage/HCPContentManifestStorage.m" target-dir="Storage/"/>
<header-file src="src/ios/Storage/HCPContentManifestStorage.h" target-dir="Storage/"/>
<source-file src="src/ios/Storage/HCPPluginInternalPreferences+UserDefaults.m" target-dir="Storage/"/>
<header-file src="src/ios/Storage/HCPPluginInternalPreferences+UserDefaults.h" target-dir="Storage/"/>
<!-- sources for Updater folder -->
<source-file src="src/ios/Updater/HCPFetchUpdateOptions.m" target-dir="Updater/"/>
<header-file src="src/ios/Updater/HCPFetchUpdateOptions.h" target-dir="Updater/"/>
<source-file src="src/ios/Updater/HCPInstallationWorker.m" target-dir="Updater/"/>
<header-file src="src/ios/Updater/HCPInstallationWorker.h" target-dir="Updater/"/>
<source-file src="src/ios/Updater/HCPUpdateInstaller.m" target-dir="Updater/"/>
<header-file src="src/ios/Updater/HCPUpdateInstaller.h" target-dir="Updater/"/>
<source-file src="src/ios/Updater/HCPUpdateLoader.m" target-dir="Updater/"/>
<header-file src="src/ios/Updater/HCPUpdateLoader.h" target-dir="Updater/"/>
<source-file src="src/ios/Updater/HCPUpdateLoaderWorker.m" target-dir="Updater/"/>
<header-file src="src/ios/Updater/HCPUpdateLoaderWorker.h" target-dir="Updater/"/>
<source-file src="src/ios/Updater/HCPUpdateRequest.m" target-dir="Updater/"/>
<header-file src="src/ios/Updater/HCPUpdateRequest.h" target-dir="Updater/"/>
<header-file src="src/ios/Updater/HCPWorker.h" target-dir="Updater/"/>
<!-- sources for Utils folder -->
<source-file src="src/ios/Utils/HCPCleanupHelper.m" target-dir="Utils/"/>
<header-file src="src/ios/Utils/HCPCleanupHelper.h" target-dir="Utils/"/>
<source-file src="src/ios/Utils/NSBundle+HCPExtension.m" target-dir="Utils/"/>
<header-file src="src/ios/Utils/NSBundle+HCPExtension.h" target-dir="Utils/"/>
<source-file src="src/ios/Utils/NSData+HCPMD5.m" target-dir="Utils/"/>
<header-file src="src/ios/Utils/NSData+HCPMD5.h" target-dir="Utils/"/>
<source-file src="src/ios/Utils/NSError+HCPExtension.m" target-dir="Utils/"/>
<header-file src="src/ios/Utils/NSError+HCPExtension.h" target-dir="Utils/"/>
<source-file src="src/ios/Utils/NSFileManager+HCPExtension.m" target-dir="Utils/"/>
<header-file src="src/ios/Utils/NSFileManager+HCPExtension.h" target-dir="Utils/"/>
<source-file src="src/ios/Utils/NSJSONSerialization+HCPExtension.m" target-dir="Utils/"/>
<header-file src="src/ios/Utils/NSJSONSerialization+HCPExtension.h" target-dir="Utils/"/>
<source-file src="src/ios/Utils/HCPAppUpdateRequestAlertDialog.m" target-dir="Utils/"/>
<header-file src="src/ios/Utils/HCPAppUpdateRequestAlertDialog.h" target-dir="Utils/"/>
<source-file src="src/ios/Utils/HCPAssetsFolderHelper.m" target-dir="Utils/"/>
<header-file src="src/ios/Utils/HCPAssetsFolderHelper.h" target-dir="Utils/"/>
<!-- sources for WKWebViewFix folder -->
<source-file src="src/ios/WKWebViewFix/CDVWKWebViewEngine+HCPPlugin_ReadAccessURL.m" target-dir="WKWebViewFix/"/>
<header-file src="src/ios/WKWebViewFix/CDVWKWebViewEngine+HCPPlugin_ReadAccessURL.h" target-dir="WKWebViewFix/"/>
</platform>
<platform name="android">
<!-- Plugin inclusion in Cordova config.xml -->
<config-file parent="/*" target="res/xml/config.xml">
<feature name="HotCodePush">
<param name="android-package" value="com.nordnetab.chcp.main.HotCodePushPlugin"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<!-- Gradle config -->
<framework custom="true" src="src/android/chcp.gradle" type="gradleReference"/>
<!-- Manifest changes -->
<config-file parent="/manifest" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
</config-file>
<!-- Java Library Sources -->
<!-- sources for package: com.nordnetab.chcp.config -->
<source-file src="src/android/src/com/nordnetab/chcp/main/config/ApplicationConfig.java" target-dir="src/com/nordnetab/chcp/main/config"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/config/ContentConfig.java" target-dir="src/com/nordnetab/chcp/main/config"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/config/ContentManifest.java" target-dir="src/com/nordnetab/chcp/main/config"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/config/PluginInternalPreferences.java" target-dir="src/com/nordnetab/chcp/main/config"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/config/ChcpXmlConfig.java" target-dir="src/com/nordnetab/chcp/main/config"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/config/ChcpXmlConfigParser.java" target-dir="src/com/nordnetab/chcp/main/config"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/config/XmlTags.java" target-dir="src/com/nordnetab/chcp/main/config"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/config/FetchUpdateOptions.java" target-dir="src/com/nordnetab/chcp/main/config"/>
<!-- sources for package: com.nordnetab.chcp.events -->
<source-file src="src/android/src/com/nordnetab/chcp/main/events/AssetsInstallationErrorEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/AssetsInstalledEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/BeforeAssetsInstalledEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/BeforeInstallEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/IPluginEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/NothingToInstallEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/NothingToUpdateEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/PluginEventImpl.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/UpdateDownloadErrorEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/UpdateInstallationErrorEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/UpdateInstalledEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/UpdateIsReadyToInstallEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/events/WorkerEvent.java" target-dir="src/com/nordnetab/chcp/main/events"/>
<!-- sources for package: com.nordnetab.chcp.network -->
<source-file src="src/android/src/com/nordnetab/chcp/main/network/ApplicationConfigDownloader.java" target-dir="src/com/nordnetab/chcp/main/network"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/network/ContentManifestDownloader.java" target-dir="src/com/nordnetab/chcp/main/network"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/network/FileDownloader.java" target-dir="src/com/nordnetab/chcp/main/network"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/network/JsonDownloader.java" target-dir="src/com/nordnetab/chcp/main/network"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/network/DownloadResult.java" target-dir="src/com/nordnetab/chcp/main/network"/>
<!-- sources for package: com.nordnetab.chcp.storage -->
<source-file src="src/android/src/com/nordnetab/chcp/main/storage/ApplicationConfigStorage.java" target-dir="src/com/nordnetab/chcp/main/storage"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/storage/ContentManifestStorage.java" target-dir="src/com/nordnetab/chcp/main/storage"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/storage/FileStorageAbs.java" target-dir="src/com/nordnetab/chcp/main/storage"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/storage/PluginInternalPreferencesStorage.java" target-dir="src/com/nordnetab/chcp/main/storage"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/storage/IObjectFileStorage.java" target-dir="src/com/nordnetab/chcp/main/storage"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/storage/IObjectPreferenceStorage.java" target-dir="src/com/nordnetab/chcp/main/storage"/>
<!-- sources for package: com.nordnetab.chcp.model -->
<source-file src="src/android/src/com/nordnetab/chcp/main/model/ChcpError.java" target-dir="src/com/nordnetab/chcp/main/model"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/model/PluginFilesStructure.java" target-dir="src/com/nordnetab/chcp/main/model"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/model/ManifestDiff.java" target-dir="src/com/nordnetab/chcp/main/model"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/model/ManifestFile.java" target-dir="src/com/nordnetab/chcp/main/model"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/model/UpdateTime.java" target-dir="src/com/nordnetab/chcp/main/model"/>
<!-- sources for package: com.nordnetab.chcp.utils -->
<source-file src="src/android/src/com/nordnetab/chcp/main/utils/AssetsHelper.java" target-dir="src/com/nordnetab/chcp/main/utils"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/utils/FilesUtility.java" target-dir="src/com/nordnetab/chcp/main/utils"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/utils/MD5.java" target-dir="src/com/nordnetab/chcp/main/utils"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/utils/Paths.java" target-dir="src/com/nordnetab/chcp/main/utils"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/utils/URLUtility.java" target-dir="src/com/nordnetab/chcp/main/utils"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/utils/VersionHelper.java" target-dir="src/com/nordnetab/chcp/main/utils"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/utils/CleanUpHelper.java" target-dir="src/com/nordnetab/chcp/main/utils"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/utils/URLConnectionHelper.java" target-dir="src/com/nordnetab/chcp/main/utils"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/utils/JSONUtils.java" target-dir="src/com/nordnetab/chcp/main/utils"/>
<!-- sources for package: com.nordnetab.chcp.updater -->
<source-file src="src/android/src/com/nordnetab/chcp/main/updater/InstallationWorker.java" target-dir="src/com/nordnetab/chcp/main/updater"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/updater/UpdateLoaderWorker.java" target-dir="src/com/nordnetab/chcp/main/updater"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/updater/UpdatesInstaller.java" target-dir="src/com/nordnetab/chcp/main/updater"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/updater/UpdatesLoader.java" target-dir="src/com/nordnetab/chcp/main/updater"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/updater/WorkerTask.java" target-dir="src/com/nordnetab/chcp/main/updater"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/updater/UpdateDownloadRequest.java" target-dir="src/com/nordnetab/chcp/main/updater"/>
<!-- sources for package: com.nordnetab.chcp.js -->
<source-file src="src/android/src/com/nordnetab/chcp/main/js/PluginResultHelper.java" target-dir="src/com/nordnetab/chcp/main/js"/>
<source-file src="src/android/src/com/nordnetab/chcp/main/js/JSAction.java" target-dir="src/com/nordnetab/chcp/main/js"/>
<!-- sources for package: com.nordnetab.chcp.view -->
<source-file src="src/android/src/com/nordnetab/chcp/main/view/AppUpdateRequestDialog.java" target-dir="src/com/nordnetab/chcp/main/view"/>
<!-- sources for package: com.nordnetab.chcp -->
<source-file src="src/android/src/com/nordnetab/chcp/main/HotCodePushPlugin.java" target-dir="src/com/nordnetab/chcp/main"/>
</platform>
</plugin>