-
Notifications
You must be signed in to change notification settings - Fork 18
/
plugin.xml
49 lines (40 loc) · 1.74 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com-badrit-contactpicker"
version="0.3.0">
<author>Hazem Hagrass</author>
<name>ContactPicker</name>
<description>Cordova ContactPicker Plugin</description>
<license>Apache 2.0</license>
<keywords>cordova,contactpicker</keywords>
<dependency id="cordova-plugin-device" version=">=1.0.0" />
<js-module src="www/ContactPicker.js" name="ContactPicker">
<clobbers target="navigator.ContactPicker" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="ContactPicker">
<param name="android-package" value="com.badrit.ContactPicker.ContactPickerPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.WRITE_CONTACTS"/>
</config-file>
<source-file src="src/android/ContactPickerPlugin.java" target-dir="src/com/badrit/ContactPicker/" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="ContactPicker">
<param name="ios-package" value="ContactPicker" />
</feature>
</config-file>
<header-file src="src/ios/ContactPicker.h" />
<source-file src="src/ios/ContactPicker.m" />
<framework src="AddressBook.framework" />
<framework src="AddressBookUI.framework" />
</platform>
</plugin>