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.
 
 
 
 
 
 

54 lines
2.8 KiB

  1. <?xml version='1.0' encoding='utf-8'?>
  2. <plugin id="cordova-plugin-photo-library" version="2.1.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
  3. <name>Photo Library</name>
  4. <js-module src="www/PhotoLibrary.js" name="PhotoLibrary">
  5. <clobbers target="cordova.plugins.photoLibrary" />
  6. </js-module>
  7. <js-module src="www/async/dist/async.min.js" name="async" />
  8. <js-module src="www/async/dist/async.min.map" name="async_map" />
  9. <platform name="android">
  10. <config-file target="res/xml/config.xml" parent="/*">
  11. <feature name="PhotoLibrary" >
  12. <param name="android-package" value="com.terikon.cordova.photolibrary.PhotoLibrary"/>
  13. <param name="onload" value="true" />
  14. </feature>
  15. <allow-navigation href="cdvphotolibrary:*" />
  16. </config-file>
  17. <config-file target="AndroidManifest.xml" parent="/*">
  18. <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
  19. <uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
  20. </config-file>
  21. <source-file src="src/android/PhotoLibrary.java" target-dir="src/com/terikon/cordova/photolibrary" />
  22. <source-file src="src/android/PhotoLibraryService.java" target-dir="src/com/terikon/cordova/photolibrary" />
  23. <source-file src="src/android/PhotoLibraryGetLibraryOptions.java" target-dir="src/com/terikon/cordova/photolibrary" />
  24. </platform>
  25. <platform name="ios">
  26. <config-file target="config.xml" parent="/*">
  27. <feature name="PhotoLibrary">
  28. <param name="ios-package" value="PhotoLibrary" />
  29. <param name="onload" value="true" />
  30. </feature>
  31. </config-file>
  32. <preference name="PHOTO_LIBRARY_USAGE_DESCRIPTION" default=" "/>
  33. <config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
  34. <string>$PHOTO_LIBRARY_USAGE_DESCRIPTION</string>
  35. </config-file>
  36. <source-file src="src/ios/PhotoLibrary.swift" />
  37. <source-file src="src/ios/PhotoLibraryProtocol.swift" />
  38. <source-file src="src/ios/PhotoLibraryService.swift" />
  39. <source-file src="src/ios/PhotoLibraryGetLibraryOptions.swift" />
  40. <dependency id="cordova-plugin-add-swift-support" version="1.6.0"/>
  41. </platform>
  42. <platform name="browser">
  43. <config-file target="config.xml" parent="/*">
  44. <feature name="PhotoLibrary">
  45. <param name="browser-package" value="PhotoLibrary" />
  46. </feature>
  47. </config-file>
  48. <js-module src="src/browser/PhotoLibraryProxy.js" name="PhotoLibraryProxy">
  49. <runs />
  50. </js-module>
  51. </platform>
  52. <dependency id="cordova-plugin-file" version="^5.0.0"/>
  53. </plugin>