plugin.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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.2.0">
  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. <info>
  90. The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml.
  91. If this is a new application no changes are required.
  92. If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
  93. "&lt;preference name="AndroidPersistentFileLocation" value="Compatibility" /&gt;"
  94. to config.xml in order for the application to find previously stored files.
  95. </info>
  96. <!-- android -->
  97. <platform name="android">
  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. </config-file>
  104. <config-file target="AndroidManifest.xml" parent="/*">
  105. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  106. </config-file>
  107. <source-file src="src/android/EncodingException.java" target-dir="src/org/apache/cordova/file" />
  108. <source-file src="src/android/FileExistsException.java" target-dir="src/org/apache/cordova/file" />
  109. <source-file src="src/android/InvalidModificationException.java" target-dir="src/org/apache/cordova/file" />
  110. <source-file src="src/android/NoModificationAllowedException.java" target-dir="src/org/apache/cordova/file" />
  111. <source-file src="src/android/TypeMismatchException.java" target-dir="src/org/apache/cordova/file" />
  112. <source-file src="src/android/FileUtils.java" target-dir="src/org/apache/cordova/file" />
  113. <source-file src="src/android/DirectoryManager.java" target-dir="src/org/apache/cordova/file" />
  114. <source-file src="src/android/LocalFilesystemURL.java" target-dir="src/org/apache/cordova/file" />
  115. <source-file src="src/android/Filesystem.java" target-dir="src/org/apache/cordova/file" />
  116. <source-file src="src/android/LocalFilesystem.java" target-dir="src/org/apache/cordova/file" />
  117. <source-file src="src/android/ContentFilesystem.java" target-dir="src/org/apache/cordova/file" />
  118. <source-file src="src/android/AssetFilesystem.java" target-dir="src/org/apache/cordova/file" />
  119. <source-file src="src/android/PendingRequests.java" target-dir="src/org/apache/cordova/file" />
  120. <!-- android specific file apis -->
  121. <js-module src="www/android/FileSystem.js" name="androidFileSystem">
  122. <merges target="FileSystem" />
  123. </js-module>
  124. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  125. <runs/>
  126. </js-module>
  127. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  128. <merges target="cordova" />
  129. <runs/>
  130. </js-module>
  131. </platform>
  132. <!-- amazon-fireos -->
  133. <platform name="amazon-fireos">
  134. <config-file target="res/xml/config.xml" parent="/*">
  135. <feature name="File" >
  136. <param name="android-package" value="org.apache.cordova.file.FileUtils"/>
  137. <param name="onload" value="true" />
  138. </feature>
  139. </config-file>
  140. <config-file target="AndroidManifest.xml" parent="/*">
  141. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  142. </config-file>
  143. <source-file src="src/android/EncodingException.java" target-dir="src/org/apache/cordova/file" />
  144. <source-file src="src/android/FileExistsException.java" target-dir="src/org/apache/cordova/file" />
  145. <source-file src="src/android/InvalidModificationException.java" target-dir="src/org/apache/cordova/file" />
  146. <source-file src="src/android/NoModificationAllowedException.java" target-dir="src/org/apache/cordova/file" />
  147. <source-file src="src/android/TypeMismatchException.java" target-dir="src/org/apache/cordova/file" />
  148. <source-file src="src/android/FileUtils.java" target-dir="src/org/apache/cordova/file" />
  149. <source-file src="src/android/DirectoryManager.java" target-dir="src/org/apache/cordova/file" />
  150. <source-file src="src/android/LocalFilesystemURL.java" target-dir="src/org/apache/cordova/file" />
  151. <source-file src="src/android/Filesystem.java" target-dir="src/org/apache/cordova/file" />
  152. <source-file src="src/android/LocalFilesystem.java" target-dir="src/org/apache/cordova/file" />
  153. <source-file src="src/android/ContentFilesystem.java" target-dir="src/org/apache/cordova/file" />
  154. <source-file src="src/android/AssetFilesystem.java" target-dir="src/org/apache/cordova/file" />
  155. <!-- android specific file apis -->
  156. <js-module src="www/android/FileSystem.js" name="androidFileSystem">
  157. <merges target="window.FileSystem" />
  158. </js-module>
  159. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  160. <runs/>
  161. </js-module>
  162. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  163. <merges target="cordova" />
  164. <runs/>
  165. </js-module>
  166. </platform>
  167. <!-- ubuntu -->
  168. <platform name="ubuntu">
  169. <header-file src="src/ubuntu/file.h" />
  170. <source-file src="src/ubuntu/file.cpp" />
  171. <js-module src="www/ubuntu/FileSystem.js" name="ubuntuFileSystem1">
  172. <merges target="window.FileSystem" />
  173. </js-module>
  174. <js-module src="www/ubuntu/FileWriter.js" name="FileWriter1">
  175. <merges target="window.FileWriter" />
  176. </js-module>
  177. <js-module src="www/ubuntu/fileSystems-roots.js" name="fileSystems-roots">
  178. <runs/>
  179. </js-module>
  180. </platform>
  181. <!-- ios -->
  182. <platform name="ios">
  183. <config-file target="config.xml" parent="/*">
  184. <feature name="File">
  185. <param name="ios-package" value="CDVFile" />
  186. <param name="onload" value="true" />
  187. </feature>
  188. </config-file>
  189. <header-file src="src/ios/CDVFile.h" />
  190. <source-file src="src/ios/CDVFile.m" />
  191. <header-file src="src/ios/CDVLocalFilesystem.h" />
  192. <source-file src="src/ios/CDVLocalFilesystem.m" />
  193. <header-file src="src/ios/CDVAssetLibraryFilesystem.h" />
  194. <source-file src="src/ios/CDVAssetLibraryFilesystem.m" />
  195. <!-- ios specific file apis -->
  196. <js-module src="www/ios/FileSystem.js" name="iosFileSystem">
  197. <merges target="FileSystem" />
  198. </js-module>
  199. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  200. <runs/>
  201. </js-module>
  202. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  203. <merges target="cordova" />
  204. <runs/>
  205. </js-module>
  206. <framework src="AssetsLibrary.framework" />
  207. <framework src="MobileCoreServices.framework" />
  208. </platform>
  209. <!-- osx -->
  210. <platform name="osx">
  211. <config-file target="config.xml" parent="/*">
  212. <feature name="File">
  213. <param name="ios-package" value="CDVFile" />
  214. <param name="onload" value="true" />
  215. </feature>
  216. </config-file>
  217. <header-file src="src/osx/CDVFile.h" />
  218. <source-file src="src/osx/CDVFile.m" />
  219. <header-file src="src/osx/CDVLocalFilesystem.h" />
  220. <source-file src="src/osx/CDVLocalFilesystem.m" />
  221. <!-- osx specific file apis -->
  222. <js-module src="www/osx/FileSystem.js" name="osxFileSystem">
  223. <merges target="FileSystem" />
  224. </js-module>
  225. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  226. <runs/>
  227. </js-module>
  228. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  229. <merges target="cordova" />
  230. <runs/>
  231. </js-module>
  232. </platform>
  233. <!-- wp7 -->
  234. <platform name="wp7">
  235. <config-file target="config.xml" parent="/*">
  236. <feature name="File">
  237. <param name="wp-package" value="File"/>
  238. </feature>
  239. </config-file>
  240. <source-file src="src/wp/File.cs" />
  241. <!-- wp specific file apis -->
  242. <js-module src="www/wp/FileUploadOptions.js" name="FileUploadOptions1">
  243. <merges target="window.FileUploadOptions" />
  244. </js-module>
  245. </platform>
  246. <!-- wp8 -->
  247. <platform name="wp8">
  248. <config-file target="config.xml" parent="/*">
  249. <feature name="File">
  250. <param name="wp-package" value="File"/>
  251. </feature>
  252. </config-file>
  253. <source-file src="src/wp/File.cs" />
  254. <!-- wp specific file apis -->
  255. <js-module src="www/wp/FileUploadOptions.js" name="FileUploadOptions1">
  256. <merges target="window.FileUploadOptions" />
  257. </js-module>
  258. </platform>
  259. <!-- blackberry10 -->
  260. <platform name="blackberry10">
  261. <config-file target="www/config.xml" parent="/widget">
  262. <feature name="File" value="File" />
  263. </config-file>
  264. <js-module src="www/blackberry10/FileProxy.js" name="FileProxy" >
  265. <runs />
  266. </js-module>
  267. <js-module src="www/blackberry10/info.js" name="bb10FileSystemInfo">
  268. <runs />
  269. </js-module>
  270. <js-module src="www/blackberry10/createEntryFromNative.js" name="bb10CreateEntryFromNative">
  271. <runs />
  272. </js-module>
  273. <js-module src="www/blackberry10/requestAnimationFrame.js" name="bb10RequestAnimationFrame">
  274. <runs />
  275. </js-module>
  276. <js-module src="www/blackberry10/FileSystem.js" name="bb10FileSystem">
  277. <merges target="window.FileSystem" />
  278. </js-module>
  279. <js-module src="www/fileSystems-roots.js" name="fileSystems-roots">
  280. <runs/>
  281. </js-module>
  282. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  283. <merges target="cordova" />
  284. </js-module>
  285. <js-module src="www/blackberry10/copyTo.js" name="copyToProxy" />
  286. <js-module src="www/blackberry10/getDirectory.js" name="getDirectoryProxy" />
  287. <js-module src="www/blackberry10/getFile.js" name="getFileProxy" />
  288. <js-module src="www/blackberry10/getFileMetadata.js" name="getFileMetadataProxy" />
  289. <js-module src="www/blackberry10/getMetadata.js" name="getMetadataProxy" />
  290. <js-module src="www/blackberry10/getParent.js" name="getParentProxy" />
  291. <js-module src="www/blackberry10/moveTo.js" name="moveToProxy" />
  292. <js-module src="www/blackberry10/readAsArrayBuffer.js" name="readAsArrayBufferProxy" />
  293. <js-module src="www/blackberry10/readAsBinaryString.js" name="readAsBinaryStringProxy" />
  294. <js-module src="www/blackberry10/readAsDataURL.js" name="readAsDataURLProxy" />
  295. <js-module src="www/blackberry10/readAsText.js" name="readAsTextProxy" />
  296. <js-module src="www/blackberry10/readEntries.js" name="readEntriesProxy" />
  297. <js-module src="www/blackberry10/remove.js" name="removeProxy" />
  298. <js-module src="www/blackberry10/removeRecursively.js" name="removeRecursivelyProxy" />
  299. <js-module src="www/blackberry10/resolveLocalFileSystemURI.js" name="resolveLocalFileSystemURIProxy" />
  300. <js-module src="www/blackberry10/requestAllFileSystems.js" name="requestAllFileSystemsProxy" />
  301. <js-module src="www/blackberry10/requestFileSystem.js" name="requestFileSystemProxy" />
  302. <js-module src="www/blackberry10/setMetadata.js" name="setMetadataProxy" />
  303. <js-module src="www/blackberry10/truncate.js" name="truncateProxy" />
  304. <js-module src="www/blackberry10/write.js" name="writeProxy" />
  305. <source-file src="src/blackberry10/index.js" target-dir="File" />
  306. </platform>
  307. <!-- windows8 -->
  308. <platform name="windows8">
  309. <js-module src="src/windows/FileProxy.js" name="FileProxy">
  310. <merges target="" />
  311. </js-module>
  312. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  313. <merges target="cordova" />
  314. <runs/>
  315. </js-module>
  316. </platform>
  317. <!-- windows -->
  318. <platform name="windows">
  319. <js-module src="src/windows/FileProxy.js" name="FileProxy">
  320. <merges target="" />
  321. </js-module>
  322. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  323. <merges target="cordova" />
  324. <runs/>
  325. </js-module>
  326. </platform>
  327. <!-- firefox os -->
  328. <platform name="firefoxos">
  329. <js-module src="src/firefoxos/FileProxy.js" name="FileProxy">
  330. <runs />
  331. </js-module>
  332. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  333. <merges target="cordova" />
  334. <runs/>
  335. </js-module>
  336. <!-- Firefox OS specific file apis -->
  337. <js-module src="www/firefoxos/FileSystem.js" name="firefoxFileSystem">
  338. <merges target="window.FileSystem" />
  339. </js-module>
  340. </platform>
  341. <platform name="browser">
  342. <!-- File for Chrome -->
  343. <js-module src="www/browser/Preparing.js" name="Preparing">
  344. <runs />
  345. </js-module>
  346. <js-module src="src/browser/FileProxy.js" name="browserFileProxy">
  347. <runs />
  348. </js-module>
  349. <js-module src="www/fileSystemPaths.js" name="fileSystemPaths">
  350. <merges target="cordova" />
  351. <runs />
  352. </js-module>
  353. <js-module src="www/browser/FileSystem.js" name="firefoxFileSystem">
  354. <merges target="window.FileSystem" />
  355. </js-module>
  356. </platform>
  357. </plugin>