forked from terikon/cordova-plugin-photo-library
-
Notifications
You must be signed in to change notification settings - Fork 28
/
plugin.xml
64 lines (64 loc) · 3.44 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-photo-library-wkwebview"
version="3.0.3" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Photo Library</name>
<platform name="android">
<js-module src="www/PhotoLibrary.android.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" />
<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">
<js-module src="www/PhotoLibrary.ios.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" /> -->
<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="^2.0.2"/>
</platform>
<platform name="browser">
<js-module src="www/PhotoLibrary.android.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" />
<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="^6.0.1"/>
</plugin>