-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.xml
35 lines (31 loc) · 1.49 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.claudetech.medialister" version="0.2.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>MediaLister</name>
<description>List media files present on the device</description>
<js-module name="MediaLister" src="www/MediaLister.js">
<clobbers target="mediaLister" />
</js-module>
<!--Android-->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MediaLister">
<param name="android-package" value="com.claudetech.medialister.MediaLister"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
</config-file>
<source-file src="src/android/com/claudetech/medialister/MediaLister.java" target-dir="src/com/claudetech/medialister" />
</platform>
<!--ios-->
<platform name="ios">
<hook type="after_plugin_install" src="hooks/add_swift_support.js" />
<config-file target="config.xml" parent="/*">
<feature name="MediaLister">
<param name="ios-package" value="HWPMediaLister"/>
</feature>
</config-file>
<header-file src="src/ios/MediaLister-Bridging-Header.h" />
<source-file src="src/ios/MediaLister.swift" />
</platform>
</plugin>