UNPKG

9.41 kBXMLView Raw
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19-->
20
21<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
22 xmlns:rim="http://www.blackberry.com/ns/widgets"
23 xmlns:android="http://schemas.android.com/apk/res/android"
24 id="org.apache.cordova.contacts"
25 version="0.2.11">
26
27 <name>Contacts</name>
28 <description>Cordova Contacts Plugin</description>
29 <license>Apache 2.0</license>
30 <keywords>cordova,contacts</keywords>
31 <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts.git</repo>
32 <issue>https://issues.apache.org/jira/browse/CB/component/12320652</issue>
33
34 <js-module src="www/contacts.js" name="contacts">
35 <clobbers target="navigator.contacts" />
36 </js-module>
37
38 <js-module src="www/Contact.js" name="Contact">
39 <clobbers target="Contact" />
40 </js-module>
41
42 <js-module src="www/ContactAddress.js" name="ContactAddress">
43 <clobbers target="ContactAddress" />
44 </js-module>
45
46 <js-module src="www/ContactError.js" name="ContactError">
47 <clobbers target="ContactError" />
48 </js-module>
49
50 <js-module src="www/ContactField.js" name="ContactField">
51 <clobbers target="ContactField" />
52 </js-module>
53
54 <js-module src="www/ContactFindOptions.js" name="ContactFindOptions">
55 <clobbers target="ContactFindOptions" />
56 </js-module>
57
58 <js-module src="www/ContactName.js" name="ContactName">
59 <clobbers target="ContactName" />
60 </js-module>
61
62 <js-module src="www/ContactOrganization.js" name="ContactOrganization">
63 <clobbers target="ContactOrganization" />
64 </js-module>
65
66 <js-module src="www/ContactFieldType.js" name="ContactFieldType">
67 <merge target="" />
68 </js-module>
69
70 <!-- android -->
71 <platform name="android">
72 <config-file target="res/xml/config.xml" parent="/*">
73 <feature name="Contacts">
74 <param name="android-package" value="org.apache.cordova.contacts.ContactManager"/>
75 </feature>
76 </config-file>
77
78 <config-file target="AndroidManifest.xml" parent="/*">
79 <uses-permission android:name="android.permission.READ_CONTACTS" />
80 <uses-permission android:name="android.permission.WRITE_CONTACTS" />
81 <uses-permission android:name="android.permission.GET_ACCOUNTS" />
82 </config-file>
83
84 <source-file src="src/android/ContactAccessor.java" target-dir="src/org/apache/cordova/contacts" />
85 <source-file src="src/android/ContactAccessorSdk5.java" target-dir="src/org/apache/cordova/contacts" />
86 <source-file src="src/android/ContactManager.java" target-dir="src/org/apache/cordova/contacts" />
87 <source-file src="src/android/ContactInfoDTO.java" target-dir="src/org/apache/cordova/contacts" />
88 </platform>
89
90 <!-- amazon-fireos -->
91 <platform name="amazon-fireos">
92 <config-file target="res/xml/config.xml" parent="/*">
93 <feature name="Contacts">
94 <param name="android-package" value="org.apache.cordova.contacts.ContactManager"/>
95 </feature>
96 </config-file>
97
98 <config-file target="AndroidManifest.xml" parent="/*">
99 <uses-permission android:name="android.permission.READ_CONTACTS" />
100 <uses-permission android:name="android.permission.WRITE_CONTACTS" />
101 <uses-permission android:name="android.permission.GET_ACCOUNTS" />
102 </config-file>
103
104 <source-file src="src/android/ContactAccessor.java" target-dir="src/org/apache/cordova/contacts" />
105 <source-file src="src/android/ContactAccessorSdk5.java" target-dir="src/org/apache/cordova/contacts" />
106 <source-file src="src/android/ContactManager.java" target-dir="src/org/apache/cordova/contacts" />
107 </platform>
108
109 <!-- ubuntu -->
110 <platform name="ubuntu">
111 <config-file target="config.xml" parent="/*">
112 <feature name="Contacts">
113 <param policy_group="contacts" policy_version="1" />
114 </feature>
115 </config-file>
116 <header-file src="src/ubuntu/contacts.h" />
117 <source-file src="src/ubuntu/contacts.cpp" />
118 </platform>
119
120 <!-- ios -->
121 <platform name="ios">
122 <config-file target="config.xml" parent="/*">
123 <feature name="Contacts">
124 <param name="ios-package" value="CDVContacts"/>
125 </feature>
126 </config-file>
127
128 <js-module src="www/ios/contacts.js" name="contacts-ios">
129 <merges target="navigator.contacts" />
130 </js-module>
131
132 <js-module src="www/ios/Contact.js" name="Contact-iOS">
133 <merges target="Contact" />
134 </js-module>
135
136 <header-file src="src/ios/CDVContacts.h" />
137 <source-file src="src/ios/CDVContacts.m" />
138 <header-file src="src/ios/CDVContact.h" />
139 <source-file src="src/ios/CDVContact.m" />
140
141 <framework src="AddressBook.framework" weak="true" />
142 <framework src="AddressBookUI.framework" weak="true" />
143 <framework src="CoreGraphics.framework" />
144 </platform>
145
146 <!-- blackberry10 -->
147 <platform name="blackberry10">
148 <config-file target="www/config.xml" parent="/widget">
149 <feature name="Contacts" value="Contacts"/>
150 </config-file>
151 <config-file target="www/config.xml" parent="/widget/rim:permissions">
152 <rim:permit>access_pimdomain_contacts</rim:permit>
153 </config-file>
154 <source-file src="src/blackberry10/index.js" target-dir="Contacts"></source-file>
155 <source-file src="src/blackberry10/ContactActivity.js" target-dir="Contacts"></source-file>
156 <source-file src="src/blackberry10/ContactAddress.js" target-dir="Contacts"></source-file>
157 <source-file src="src/blackberry10/contactConsts.js" target-dir="Contacts"></source-file>
158 <source-file src="src/blackberry10/ContactError.js" target-dir="Contacts"></source-file>
159 <source-file src="src/blackberry10/ContactField.js" target-dir="Contacts"></source-file>
160 <source-file src="src/blackberry10/ContactFindOptions.js" target-dir="Contacts"></source-file>
161 <source-file src="src/blackberry10/ContactName.js" target-dir="Contacts"></source-file>
162 <source-file src="src/blackberry10/ContactNews.js" target-dir="Contacts"></source-file>
163 <source-file src="src/blackberry10/ContactOrganization.js" target-dir="Contacts"></source-file>
164 <source-file src="src/blackberry10/ContactPhoto.js" target-dir="Contacts"></source-file>
165 <source-file src="src/blackberry10/contactUtils.js" target-dir="Contacts"></source-file>
166 <dependency id="com.blackberry.utils" />
167 <dependency id="com.blackberry.pim.lib" />
168 </platform>
169
170 <!-- wp7 -->
171 <platform name="wp7">
172 <config-file target="config.xml" parent="/*">
173 <feature name="Contacts">
174 <param name="wp-package" value="Contacts"/>
175 </feature>
176 </config-file>
177
178 <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
179 <Capability Name="ID_CAP_CONTACTS" />
180 </config-file>
181
182 <source-file src="src/wp/Contacts.cs" />
183 <source-file src="src/wp/ContactsHelper.cs" />
184 </platform>
185
186 <!-- wp8 -->
187 <platform name="wp8">
188 <config-file target="config.xml" parent="/*">
189 <feature name="Contacts">
190 <param name="wp-package" value="Contacts"/>
191 </feature>
192 </config-file>
193
194 <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
195 <Capability Name="ID_CAP_CONTACTS" />
196 </config-file>
197
198 <source-file src="src/wp/Contacts.cs" />
199 <source-file src="src/wp/ContactsHelper.cs" />
200 <source-file src="src/wp/ContactPicker.xaml" />
201 <source-file src="src/wp/ContactPicker.xaml.cs" />
202 <source-file src="src/wp/ContactPickerTask.cs" />
203 </platform>
204
205 <!-- firefoxos -->
206 <platform name="firefoxos">
207 <config-file target="config.xml" parent="/*">
208 <permission name="contacts" access="readwrite" description="Required for accessing address book."
209 privileged="true"/>
210 </config-file>
211 <js-module src="src/firefoxos/ContactsProxy.js" name="ContactsProxy">
212 <runs />
213 </js-module>
214 </platform>
215
216 <!-- Windows 8 -->
217 <platform name="windows8">
218 <js-module src="src/windows8/ContactProxy.js" name="ContactProxy">
219 <merges target="" />
220 </js-module>
221 </platform>
222
223</plugin>