1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
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.10">
|
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 |
|
67 |
|
68 |
|
69 |
|
70 | <platform name="android">
|
71 | <config-file target="res/xml/config.xml" parent="/*">
|
72 | <feature name="Contacts">
|
73 | <param name="android-package" value="org.apache.cordova.contacts.ContactManager"/>
|
74 | </feature>
|
75 | </config-file>
|
76 |
|
77 | <config-file target="AndroidManifest.xml" parent="/*">
|
78 | <uses-permission android:name="android.permission.READ_CONTACTS" />
|
79 | <uses-permission android:name="android.permission.WRITE_CONTACTS" />
|
80 | <uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
81 | </config-file>
|
82 |
|
83 | <source-file src="src/android/ContactAccessor.java" target-dir="src/org/apache/cordova/contacts" />
|
84 | <source-file src="src/android/ContactAccessorSdk5.java" target-dir="src/org/apache/cordova/contacts" />
|
85 | <source-file src="src/android/ContactManager.java" target-dir="src/org/apache/cordova/contacts" />
|
86 | </platform>
|
87 |
|
88 |
|
89 | <platform name="amazon-fireos">
|
90 | <config-file target="res/xml/config.xml" parent="/*">
|
91 | <feature name="Contacts">
|
92 | <param name="android-package" value="org.apache.cordova.contacts.ContactManager"/>
|
93 | </feature>
|
94 | </config-file>
|
95 |
|
96 | <config-file target="AndroidManifest.xml" parent="/*">
|
97 | <uses-permission android:name="android.permission.READ_CONTACTS" />
|
98 | <uses-permission android:name="android.permission.WRITE_CONTACTS" />
|
99 | <uses-permission android:name="android.permission.GET_ACCOUNTS" />
|
100 | </config-file>
|
101 |
|
102 | <source-file src="src/android/ContactAccessor.java" target-dir="src/org/apache/cordova/contacts" />
|
103 | <source-file src="src/android/ContactAccessorSdk5.java" target-dir="src/org/apache/cordova/contacts" />
|
104 | <source-file src="src/android/ContactManager.java" target-dir="src/org/apache/cordova/contacts" />
|
105 | </platform>
|
106 |
|
107 |
|
108 | <platform name="ubuntu">
|
109 | <config-file target="config.xml" parent="/*">
|
110 | <feature name="Contacts">
|
111 | <param policy_group="contacts" policy_version="1" />
|
112 | </feature>
|
113 | </config-file>
|
114 | <header-file src="src/ubuntu/contacts.h" />
|
115 | <source-file src="src/ubuntu/contacts.cpp" />
|
116 | </platform>
|
117 |
|
118 |
|
119 | <platform name="ios">
|
120 | <config-file target="config.xml" parent="/*">
|
121 | <feature name="Contacts">
|
122 | <param name="ios-package" value="CDVContacts"/>
|
123 | </feature>
|
124 | </config-file>
|
125 |
|
126 | <js-module src="www/ios/contacts.js" name="contacts-ios">
|
127 | <merges target="navigator.contacts" />
|
128 | </js-module>
|
129 |
|
130 | <js-module src="www/ios/Contact.js" name="Contact-iOS">
|
131 | <merges target="Contact" />
|
132 | </js-module>
|
133 |
|
134 | <header-file src="src/ios/CDVContacts.h" />
|
135 | <source-file src="src/ios/CDVContacts.m" />
|
136 | <header-file src="src/ios/CDVContact.h" />
|
137 | <source-file src="src/ios/CDVContact.m" />
|
138 |
|
139 | <framework src="AddressBook.framework" weak="true" />
|
140 | <framework src="AddressBookUI.framework" weak="true" />
|
141 | <framework src="CoreGraphics.framework" />
|
142 | </platform>
|
143 |
|
144 |
|
145 | <platform name="blackberry10">
|
146 | <config-file target="www/config.xml" parent="/widget">
|
147 | <feature name="Contacts" value="Contacts"/>
|
148 | </config-file>
|
149 | <config-file target="www/config.xml" parent="/widget/rim:permissions">
|
150 | <rim:permit>access_pimdomain_contacts</rim:permit>
|
151 | </config-file>
|
152 | <source-file src="src/blackberry10/index.js" target-dir="Contacts"></source-file>
|
153 | <source-file src="src/blackberry10/ContactActivity.js" target-dir="Contacts"></source-file>
|
154 | <source-file src="src/blackberry10/ContactAddress.js" target-dir="Contacts"></source-file>
|
155 | <source-file src="src/blackberry10/contactConsts.js" target-dir="Contacts"></source-file>
|
156 | <source-file src="src/blackberry10/ContactError.js" target-dir="Contacts"></source-file>
|
157 | <source-file src="src/blackberry10/ContactField.js" target-dir="Contacts"></source-file>
|
158 | <source-file src="src/blackberry10/ContactFindOptions.js" target-dir="Contacts"></source-file>
|
159 | <source-file src="src/blackberry10/ContactName.js" target-dir="Contacts"></source-file>
|
160 | <source-file src="src/blackberry10/ContactNews.js" target-dir="Contacts"></source-file>
|
161 | <source-file src="src/blackberry10/ContactOrganization.js" target-dir="Contacts"></source-file>
|
162 | <source-file src="src/blackberry10/ContactPhoto.js" target-dir="Contacts"></source-file>
|
163 | <source-file src="src/blackberry10/contactUtils.js" target-dir="Contacts"></source-file>
|
164 | <dependency id="com.blackberry.utils" />
|
165 | <dependency id="com.blackberry.pim.lib" />
|
166 | </platform>
|
167 |
|
168 |
|
169 | <platform name="wp7">
|
170 | <config-file target="config.xml" parent="/*">
|
171 | <feature name="Contacts">
|
172 | <param name="wp-package" value="Contacts"/>
|
173 | </feature>
|
174 | </config-file>
|
175 |
|
176 | <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
|
177 | <Capability Name="ID_CAP_CONTACTS" />
|
178 | </config-file>
|
179 |
|
180 | <source-file src="src/wp/Contacts.cs" />
|
181 | </platform>
|
182 |
|
183 |
|
184 | <platform name="wp8">
|
185 | <config-file target="config.xml" parent="/*">
|
186 | <feature name="Contacts">
|
187 | <param name="wp-package" value="Contacts"/>
|
188 | </feature>
|
189 | </config-file>
|
190 |
|
191 | <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
|
192 | <Capability Name="ID_CAP_CONTACTS" />
|
193 | </config-file>
|
194 |
|
195 | <source-file src="src/wp/Contacts.cs" />
|
196 | </platform>
|
197 |
|
198 |
|
199 | <platform name="firefoxos">
|
200 | <config-file target="config.xml" parent="/*">
|
201 | <feature name="Contacts">
|
202 | <param name="firefoxos-package" value="Contacts" />
|
203 | </feature>
|
204 | </config-file>
|
205 | <js-module src="src/firefoxos/ContactsProxy.js" name="ContactsProxy">
|
206 | <runs />
|
207 | </js-module>
|
208 | </platform>
|
209 |
|
210 |
|
211 | <js-module src="src/windows8/ContactProxy.js" name="ContactProxy">
|
212 | <merges target="" />
|
213 | </js-module>
|
214 |
|
215 | </plugin>
|