You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

424 lines
17 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. -->
  18. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  19. xmlns:android="http://schemas.android.com/apk/res/android"
  20. id="cordova-plugin-file"
  21. version="4.3.3">
  22. <name>File</name>
  23. <description>Cordova File Plugin</description>
  24. <license>Apache 2.0</license>
  25. <keywords>cordova,file</keywords>
  26. <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git</repo>
  27. <issue>https://issues.apache.org/jira/browse/CB/component/12320651</issue>
  28. <dependency id="cordova-plugin-compat" version="^1.0.0" />
  29. <js-module src="www/DirectoryEntry.js" name="DirectoryEntry">
  30. <clobbers target="window.DirectoryEntry" />
  31. </js-module>
  32. <js-module src="www/DirectoryReader.js" name="DirectoryReader">
  33. <clobbers target="window.DirectoryReader" />
  34. </js-module>
  35. <js-module src="www/Entry.js" name="Entry">
  36. <clobbers target="window.Entry" />
  37. </js-module>
  38. <js-module src="www/File.js" name="File">
  39. <clobbers target="window.File" />
  40. </js-module>
  41. <js-module src="www/FileEntry.js" name="FileEntry">
  42. <clobbers target="window.FileEntry" />
  43. </js-module>
  44. <js-module src="www/FileError.js" name="FileError">
  45. <clobbers target="window.FileError" />
  46. </js-module>
  47. <js-module src="www/FileReader.js" name="FileReader">
  48. <clobbers target="window.FileReader" />
  49. </js-module>
  50. <js-module src="www/FileSystem.js" name="FileSystem">
  51. <clobbers target="window.FileSystem" />
  52. </js-module>
  53. <js-module src="www/FileUploadOptions.js" name="FileUploadOptions">
  54. <clobbers target="window.FileUploadOptions" />
  55. </js-module>
  56. <js-module src="www/FileUploadResult.js" name="FileUploadResult">
  57. <clobbers target="window.FileUploadResult" />
  58. </js-module>
  59. <js-module src="www/FileWriter.js" name="FileWriter">
  60. <clobbers target="window.FileWriter" />
  61. </js-module>
  62. <js-module src="www/Flags.js" name="Flags">
  63. <clobbers target="window.Flags" />
  64. </js-module>
  65. <js-module src="www/LocalFileSystem.js" name="LocalFileSystem">
  66. <!-- Non-standards way -->
  67. <clobbers target="window.LocalFileSystem" />
  68. <!-- Standards-compliant way -->
  69. <merges target="window" />
  70. </js-module>
  71. <js-module src="www/Metadata.js" name="Metadata">
  72. <clobbers target="window.Metadata" />
  73. </js-module>
  74. <js-module src="www/ProgressEvent.js" name="ProgressEvent">
  75. <clobbers target="window.ProgressEvent" />
  76. </js-module>
  77. <js-module src="www/fileSystems.js" name="fileSystems" />
  78. <js-module src="www/requestFileSystem.js" name="requestFileSystem">
  79. <clobbers target="window.requestFileSystem" />
  80. </js-module>
  81. <js-module src="www/resolveLocalFileSystemURI.js" name="resolveLocalFileSystemURI">
  82. <merges target="window" />
  83. </js-module>
  84. <!-- Required for browserify: we always link module below as there is conditional reference
  85. to this module from requestFileSystem and resolveLocalFileSystemURI modules. -->
  86. <js-module src="www/browser/isChrome.js" name="isChrome">
  87. <runs />
  88. </js-module>
  89. <!-- android -->
  90. <platform name="android">
  91. <info>
  92. 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.
  93. If this is a new application no changes are required.
  94. If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
  95. "&lt;preference name="AndroidPersistentFileLocation" value="Compatibility" /&gt;"
  96. to config.xml in order for the application to find previously stored files.
  97. </info>
  98. <config-file target="res/xml/config.xml" parent="/*">
  99. <feature name="File" >
  100. <param name="android-package" value="org.apache.cordova.file.FileUtils"/>
  101. <param name="onload" value="true" />
  102. </feature>
  103. <allow-navigation href="cdvfile:*" />
  104. </config-file>
  105. <config-file target="AndroidManifest.xml" parent="/*">
  106. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  107. </config-file>
  108. <source-file src="src/android/EncodingException.java" target-dir="src/org/apache/cordova/file" />
  109. <source-file src="src/android/FileExistsException.java" target-dir="src/org/apache/cordova/file" />
  110. <source-file src="src/android/InvalidModificationException.java" target-dir="src/org/apache/cordova/file" />
  111. <source-file src="src/android/NoModificationAllowedException.java" target-dir="src/org/apache/cordova/file" />
  112. <source-file src="src/android/TypeMismatchException.java" target-dir="src/org/apache/cordova/file" />
  113. <source-file src="src/android/FileUtils.java" target-dir="src/org/apache/cordova/file" />
  114. <source-file src="src/android/DirectoryManager.java" target-dir="src/org/apache/cordova/file" />
  115. <source-file src="src/android/LocalFilesystemURL.java" target-dir="src/org/apache/cordova/file" />
  116. <source-file src="src/android/Filesystem.java" target-dir="src/org/apache/cordova/file" />
  117. <source-file src="src/android/LocalFilesystem.java" target-dir="src/org/apache/cordova/file" />
  118. <source-file src="src/android/ContentFilesystem.java" target-dir="src/org/apache/cordova/file" />
  119. <source-file src="src/android/AssetFilesystem.java" target-dir="src/org/apache/cordova/file" />
  120. <source-file src="src/android/PendingRequests.java" target-dir="src/org/apache/cordova/file" />
  121. <!-- android specific file apis -->
  122. <js-module src="www/android/FileSystem.js" name="androidFileSystem">
  123. <merges target="FileSystem" />
  124. </js-module>
  125. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  126. <runs/>
  127. </js-module>
  128. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  129. <merges target="cordova" />
  130. <runs/>
  131. </js-module>
  132. </platform>
  133. <!-- amazon-fireos -->
  134. <platform name="amazon-fireos">
  135. <config-file target="res/xml/config.xml" parent="/*">
  136. <feature name="File" >
  137. <param name="android-package" value="org.apache.cordova.file.FileUtils"/>
  138. <param name="onload" value="true" />
  139. </feature>
  140. </config-file>
  141. <config-file target="AndroidManifest.xml" parent="/*">
  142. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  143. </config-file>
  144. <source-file src="src/android/EncodingException.java" target-dir="src/org/apache/cordova/file" />
  145. <source-file src="src/android/FileExistsException.java" target-dir="src/org/apache/cordova/file" />
  146. <source-file src="src/android/InvalidModificationException.java" target-dir="src/org/apache/cordova/file" />
  147. <source-file src="src/android/NoModificationAllowedException.java" target-dir="src/org/apache/cordova/file" />
  148. <source-file src="src/android/TypeMismatchException.java" target-dir="src/org/apache/cordova/file" />
  149. <source-file src="src/android/FileUtils.java" target-dir="src/org/apache/cordova/file" />
  150. <source-file src="src/android/DirectoryManager.java" target-dir="src/org/apache/cordova/file" />
  151. <source-file src="src/android/LocalFilesystemURL.java" target-dir="src/org/apache/cordova/file" />
  152. <source-file src="src/android/Filesystem.java" target-dir="src/org/apache/cordova/file" />
  153. <source-file src="src/android/LocalFilesystem.java" target-dir="src/org/apache/cordova/file" />
  154. <source-file src="src/android/ContentFilesystem.java" target-dir="src/org/apache/cordova/file" />
  155. <source-file src="src/android/AssetFilesystem.java" target-dir="src/org/apache/cordova/file" />
  156. <!-- android specific file apis -->
  157. <js-module src="www/android/FileSystem.js" name="androidFileSystem">
  158. <merges target="window.FileSystem" />
  159. </js-module>
  160. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  161. <runs/>
  162. </js-module>
  163. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  164. <merges target="cordova" />
  165. <runs/>
  166. </js-module>
  167. </platform>
  168. <!-- ubuntu -->
  169. <platform name="ubuntu">
  170. <header-file src="src/ubuntu/file.h" />
  171. <source-file src="src/ubuntu/file.cpp" />
  172. <js-module src="www/ubuntu/FileSystem.js" name="ubuntuFileSystem1">
  173. <merges target="window.FileSystem" />
  174. </js-module>
  175. <js-module src="www/ubuntu/FileWriter.js" name="FileWriter1">
  176. <merges target="window.FileWriter" />
  177. </js-module>
  178. <js-module src="www/ubuntu/fileSystems-roots.js" name="fileSystems-roots">
  179. <runs/>
  180. </js-module>
  181. </platform>
  182. <!-- ios -->
  183. <platform name="ios">
  184. <config-file target="config.xml" parent="/*">
  185. <feature name="File">
  186. <param name="ios-package" value="CDVFile" />
  187. <param name="onload" value="true" />
  188. </feature>
  189. </config-file>
  190. <header-file src="src/ios/CDVFile.h" />
  191. <source-file src="src/ios/CDVFile.m" />
  192. <header-file src="src/ios/CDVLocalFilesystem.h" />
  193. <source-file src="src/ios/CDVLocalFilesystem.m" />
  194. <header-file src="src/ios/CDVAssetLibraryFilesystem.h" />
  195. <source-file src="src/ios/CDVAssetLibraryFilesystem.m" />
  196. <!-- ios specific file apis -->
  197. <js-module src="www/ios/FileSystem.js" name="iosFileSystem">
  198. <merges target="FileSystem" />
  199. </js-module>
  200. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  201. <runs/>
  202. </js-module>
  203. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  204. <merges target="cordova" />
  205. <runs/>
  206. </js-module>
  207. <framework src="AssetsLibrary.framework" />
  208. <framework src="MobileCoreServices.framework" />
  209. </platform>
  210. <!-- osx -->
  211. <platform name="osx">
  212. <config-file target="config.xml" parent="/*">
  213. <feature name="File">
  214. <param name="ios-package" value="CDVFile" />
  215. <param name="onload" value="true" />
  216. </feature>
  217. </config-file>
  218. <header-file src="src/osx/CDVFile.h" />
  219. <source-file src="src/osx/CDVFile.m" />
  220. <header-file src="src/osx/CDVLocalFilesystem.h" />
  221. <source-file src="src/osx/CDVLocalFilesystem.m" />
  222. <!-- osx specific file apis -->
  223. <js-module src="www/osx/FileSystem.js" name="osxFileSystem">
  224. <merges target="FileSystem" />
  225. </js-module>
  226. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  227. <runs/>
  228. </js-module>
  229. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  230. <merges target="cordova" />
  231. <runs/>
  232. </js-module>
  233. </platform>
  234. <!-- wp7 -->
  235. <platform name="wp7">
  236. <config-file target="config.xml" parent="/*">
  237. <feature name="File">
  238. <param name="wp-package" value="File"/>
  239. </feature>
  240. </config-file>
  241. <source-file src="src/wp/File.cs" />
  242. <!-- wp specific file apis -->
  243. <js-module src="www/wp/FileUploadOptions.js" name="FileUploadOptions1">
  244. <merges target="window.FileUploadOptions" />
  245. </js-module>
  246. </platform>
  247. <!-- wp8 -->
  248. <platform name="wp8">
  249. <config-file target="config.xml" parent="/*">
  250. <feature name="File">
  251. <param name="wp-package" value="File"/>
  252. </feature>
  253. </config-file>
  254. <source-file src="src/wp/File.cs" />
  255. <!-- wp specific file apis -->
  256. <js-module src="www/wp/FileUploadOptions.js" name="FileUploadOptions1">
  257. <merges target="window.FileUploadOptions" />
  258. </js-module>
  259. </platform>
  260. <!-- blackberry10 -->
  261. <platform name="blackberry10">
  262. <config-file target="www/config.xml" parent="/widget">
  263. <feature name="File" value="File" />
  264. </config-file>
  265. <js-module src="www/blackberry10/FileProxy.js" name="FileProxy" >
  266. <runs />
  267. </js-module>
  268. <js-module src="www/blackberry10/info.js" name="bb10FileSystemInfo">
  269. <runs />
  270. </js-module>
  271. <js-module src="www/blackberry10/createEntryFromNative.js" name="bb10CreateEntryFromNative">
  272. <runs />
  273. </js-module>
  274. <js-module src="www/blackberry10/requestAnimationFrame.js" name="bb10RequestAnimationFrame">
  275. <runs />
  276. </js-module>
  277. <js-module src="www/blackberry10/FileSystem.js" name="bb10FileSystem">
  278. <merges target="window.FileSystem" />
  279. </js-module>
  280. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  281. <runs/>
  282. </js-module>
  283. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  284. <merges target="cordova" />
  285. </js-module>
  286. <js-module src="www/blackberry10/copyTo.js" name="copyToProxy" />
  287. <js-module src="www/blackberry10/getDirectory.js" name="getDirectoryProxy" />
  288. <js-module src="www/blackberry10/getFile.js" name="getFileProxy" />
  289. <js-module src="www/blackberry10/getFileMetadata.js" name="getFileMetadataProxy" />
  290. <js-module src="www/blackberry10/getMetadata.js" name="getMetadataProxy" />
  291. <js-module src="www/blackberry10/getParent.js" name="getParentProxy" />
  292. <js-module src="www/blackberry10/moveTo.js" name="moveToProxy" />
  293. <js-module src="www/blackberry10/readAsArrayBuffer.js" name="readAsArrayBufferProxy" />
  294. <js-module src="www/blackberry10/readAsBinaryString.js" name="readAsBinaryStringProxy" />
  295. <js-module src="www/blackberry10/readAsDataURL.js" name="readAsDataURLProxy" />
  296. <js-module src="www/blackberry10/readAsText.js" name="readAsTextProxy" />
  297. <js-module src="www/blackberry10/readEntries.js" name="readEntriesProxy" />
  298. <js-module src="www/blackberry10/remove.js" name="removeProxy" />
  299. <js-module src="www/blackberry10/removeRecursively.js" name="removeRecursivelyProxy" />
  300. <js-module src="www/blackberry10/resolveLocalFileSystemURI.js" name="resolveLocalFileSystemURIProxy" />
  301. <js-module src="www/blackberry10/requestAllFileSystems.js" name="requestAllFileSystemsProxy" />
  302. <js-module src="www/blackberry10/requestFileSystem.js" name="requestFileSystemProxy" />
  303. <js-module src="www/blackberry10/setMetadata.js" name="setMetadataProxy" />
  304. <js-module src="www/blackberry10/truncate.js" name="truncateProxy" />
  305. <js-module src="www/blackberry10/write.js" name="writeProxy" />
  306. <source-file src="src/blackberry10/index.js" target-dir="File" />
  307. </platform>
  308. <!-- windows8 -->
  309. <platform name="windows8">
  310. <js-module src="src/windows/FileProxy.js" name="FileProxy">
  311. <runs />
  312. </js-module>
  313. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  314. <merges target="cordova" />
  315. <runs/>
  316. </js-module>
  317. </platform>
  318. <!-- windows -->
  319. <platform name="windows">
  320. <js-module src="src/windows/FileProxy.js" name="FileProxy">
  321. <runs />
  322. </js-module>
  323. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  324. <merges target="cordova" />
  325. <runs/>
  326. </js-module>
  327. </platform>
  328. <!-- firefox os -->
  329. <platform name="firefoxos">
  330. <js-module src="src/firefoxos/FileProxy.js" name="FileProxy">
  331. <runs />
  332. </js-module>
  333. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  334. <merges target="cordova" />
  335. <runs/>
  336. </js-module>
  337. <!-- Firefox OS specific file apis -->
  338. <js-module src="www/firefoxos/FileSystem.js" name="firefoxFileSystem">
  339. <merges target="window.FileSystem" />
  340. </js-module>
  341. </platform>
  342. <platform name="browser">
  343. <!-- File for Chrome -->
  344. <js-module src="www/browser/Preparing.js" name="Preparing">
  345. <runs />
  346. </js-module>
  347. <js-module src="src/browser/FileProxy.js" name="browserFileProxy">
  348. <runs />
  349. </js-module>
  350. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  351. <merges target="cordova" />
  352. <runs />
  353. </js-module>
  354. <js-module src="www/browser/FileSystem.js" name="firefoxFileSystem">
  355. <merges target="window.FileSystem" />
  356. </js-module>
  357. </platform>
  358. </plugin>