forked from apache/cordova-plugin-file
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
262 lines (215 loc) · 9.97 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-file"
version="8.0.1-dev">
<name>File</name>
<description>Cordova File Plugin</description>
<license>Apache 2.0</license>
<keywords>cordova,file</keywords>
<repo>https://github.com/apache/cordova-plugin-file</repo>
<issue>https://github.com/apache/cordova-plugin-file/issues</issue>
<engines>
<engine name="cordova-android" version=">=12.0.0" />
</engines>
<js-module src="www/DirectoryEntry.js" name="DirectoryEntry">
<clobbers target="window.DirectoryEntry" />
</js-module>
<js-module src="www/DirectoryReader.js" name="DirectoryReader">
<clobbers target="window.DirectoryReader" />
</js-module>
<js-module src="www/Entry.js" name="Entry">
<clobbers target="window.Entry" />
</js-module>
<js-module src="www/File.js" name="File">
<clobbers target="window.File" />
</js-module>
<js-module src="www/FileEntry.js" name="FileEntry">
<clobbers target="window.FileEntry" />
</js-module>
<js-module src="www/FileError.js" name="FileError">
<clobbers target="window.FileError" />
</js-module>
<js-module src="www/FileReader.js" name="FileReader">
<clobbers target="window.FileReader" />
</js-module>
<js-module src="www/FileSystem.js" name="FileSystem">
<clobbers target="window.FileSystem" />
</js-module>
<js-module src="www/FileUploadOptions.js" name="FileUploadOptions">
<clobbers target="window.FileUploadOptions" />
</js-module>
<js-module src="www/FileUploadResult.js" name="FileUploadResult">
<clobbers target="window.FileUploadResult" />
</js-module>
<js-module src="www/FileWriter.js" name="FileWriter">
<clobbers target="window.FileWriter" />
</js-module>
<js-module src="www/Flags.js" name="Flags">
<clobbers target="window.Flags" />
</js-module>
<js-module src="www/LocalFileSystem.js" name="LocalFileSystem">
<!-- Non-standards way -->
<clobbers target="window.LocalFileSystem" />
<!-- Standards-compliant way -->
<merges target="window" />
</js-module>
<js-module src="www/Metadata.js" name="Metadata">
<clobbers target="window.Metadata" />
</js-module>
<js-module src="www/ProgressEvent.js" name="ProgressEvent">
<clobbers target="window.ProgressEvent" />
</js-module>
<js-module src="www/fileSystems.js" name="fileSystems" />
<js-module src="www/requestFileSystem.js" name="requestFileSystem">
<clobbers target="window.requestFileSystem" />
</js-module>
<js-module src="www/resolveLocalFileSystemURI.js" name="resolveLocalFileSystemURI">
<merges target="window" />
</js-module>
<!-- Required for browserify: we always link module below as there is conditional reference
to this module from requestFileSystem and resolveLocalFileSystemURI modules. -->
<js-module src="www/browser/isChrome.js" name="isChrome">
<runs />
</js-module>
<!-- android -->
<platform name="android">
<info>
The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
If this is a new application no changes are required.
If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
"<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
to config.xml in order for the application to find previously stored files.
</info>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="File" >
<param name="android-package" value="org.apache.cordova.file.FileUtils"/>
<param name="onload" value="true" />
</feature>
<allow-navigation href="cdvfile:*" />
</config-file>
<source-file src="src/android/EncodingException.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/FileExistsException.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/InvalidModificationException.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/NoModificationAllowedException.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/TypeMismatchException.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/FileUtils.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/DirectoryManager.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/LocalFilesystemURL.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/Filesystem.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/LocalFilesystem.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/ContentFilesystem.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/AssetFilesystem.java" target-dir="src/org/apache/cordova/file" />
<source-file src="src/android/PendingRequests.java" target-dir="src/org/apache/cordova/file" />
<preference name="ANDROIDX_WEBKIT_VERSION" default="1.4.0"/>
<framework src="androidx.webkit:webkit:$ANDROIDX_WEBKIT_VERSION" />
<!-- android specific file apis -->
<js-module src="www/android/Entry.js" name="androidEntry">
<merges target="Entry" />
</js-module>
<js-module src="www/android/FileSystem.js" name="androidFileSystem">
<merges target="FileSystem" />
</js-module>
<js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
<runs/>
</js-module>
<js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
<merges target="cordova" />
<runs/>
</js-module>
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="File">
<param name="ios-package" value="CDVFile" />
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/CDVFile.h" />
<source-file src="src/ios/CDVFile.m" />
<header-file src="src/ios/CDVLocalFilesystem.h" />
<source-file src="src/ios/CDVLocalFilesystem.m" />
<header-file src="src/ios/CDVAssetLibraryFilesystem.h" />
<source-file src="src/ios/CDVAssetLibraryFilesystem.m" />
<!-- ios specific file apis -->
<js-module src="www/ios/FileSystem.js" name="iosFileSystem">
<merges target="FileSystem" />
</js-module>
<js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
<runs/>
</js-module>
<js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
<merges target="cordova" />
<runs/>
</js-module>
<framework src="AssetsLibrary.framework" />
<framework src="MobileCoreServices.framework" />
</platform>
<!-- osx -->
<platform name="osx">
<config-file target="config.xml" parent="/*">
<feature name="File">
<param name="ios-package" value="CDVFile" />
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/osx/CDVFile.h" />
<source-file src="src/osx/CDVFile.m" />
<header-file src="src/osx/CDVLocalFilesystem.h" />
<source-file src="src/osx/CDVLocalFilesystem.m" />
<!-- osx specific file apis -->
<js-module src="www/osx/FileSystem.js" name="osxFileSystem">
<merges target="FileSystem" />
</js-module>
<js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
<runs/>
</js-module>
<js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
<merges target="cordova" />
<runs/>
</js-module>
</platform>
<!-- windows -->
<platform name="windows">
<js-module src="src/windows/FileProxy.js" name="FileProxy">
<runs />
</js-module>
<js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
<merges target="cordova" />
<runs/>
</js-module>
</platform>
<platform name="browser">
<!-- File for Chrome -->
<js-module src="www/browser/Preparing.js" name="Preparing">
<runs />
</js-module>
<js-module src="src/browser/FileProxy.js" name="browserFileProxy">
<runs />
</js-module>
<js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
<merges target="cordova" />
<runs />
</js-module>
<js-module src="www/browser/FileSystem.js" name="firefoxFileSystem">
<merges target="window.FileSystem" />
</js-module>
</platform>
</plugin>