forked from AndreasGassmann/cordova-plugin-photo-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
53 lines (53 loc) · 2.8 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-photo-library" version="2.0.4" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Photo Library</name>
<js-module src="www/PhotoLibrary.js" name="PhotoLibrary">
<clobbers target="cordova.plugins.photoLibrary" />
</js-module>
<js-module src="www/async/dist/async.min.js" name="async" />
<js-module src="www/async/dist/async.min.map" name="async_map" />
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PhotoLibrary" >
<param name="android-package" value="com.terikon.cordova.photolibrary.PhotoLibrary"/>
<param name="onload" value="true" />
</feature>
<allow-navigation href="cdvphotolibrary:*" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
</config-file>
<source-file src="src/android/PhotoLibrary.java" target-dir="src/com/terikon/cordova/photolibrary" />
<source-file src="src/android/PhotoLibraryService.java" target-dir="src/com/terikon/cordova/photolibrary" />
<source-file src="src/android/PhotoLibraryGetLibraryOptions.java" target-dir="src/com/terikon/cordova/photolibrary" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="PhotoLibrary">
<param name="ios-package" value="PhotoLibrary" />
<param name="onload" value="true" />
</feature>
</config-file>
<preference name="PHOTO_LIBRARY_USAGE_DESCRIPTION" default=" "/>
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>$PHOTO_LIBRARY_USAGE_DESCRIPTION</string>
</config-file>
<source-file src="src/ios/PhotoLibrary.swift" />
<source-file src="src/ios/PhotoLibraryProtocol.swift" />
<source-file src="src/ios/PhotoLibraryService.swift" />
<source-file src="src/ios/PhotoLibraryGetLibraryOptions.swift" />
<dependency id="cordova-plugin-add-swift-support" version="1.6.0"/>
</platform>
<platform name="browser">
<config-file target="config.xml" parent="/*">
<feature name="PhotoLibrary">
<param name="browser-package" value="PhotoLibrary" />
</feature>
</config-file>
<js-module src="src/browser/PhotoLibraryProxy.js" name="PhotoLibraryProxy">
<runs />
</js-module>
</platform>
<dependency id="cordova-plugin-file" version="4.3.2"/>
</plugin>