| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" |
| xmlns:rim="http://www.blackberry.com/ns/widgets" |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| id="org.apache.cordova.core.contacts" |
| version="0.2.1"> |
| |
| <name>Contacts</name> |
| <description>Cordova Contacts Plugin</description> |
| <license>Apache 2.0</license> |
| <keywords>cordova,contacts</keywords> |
| |
| <js-module src="www/contacts.js" name="contacts"> |
| <clobbers target="navigator.contacts" /> |
| </js-module> |
| |
| <js-module src="www/Contact.js" name="Contact"> |
| <clobbers target="Contact" /> |
| </js-module> |
| |
| <js-module src="www/ContactAddress.js" name="ContactAddress"> |
| <clobbers target="ContactAddress" /> |
| </js-module> |
| |
| <js-module src="www/ContactError.js" name="ContactError"> |
| <clobbers target="ContactError" /> |
| </js-module> |
| |
| <js-module src="www/ContactField.js" name="ContactField"> |
| <clobbers target="ContactField" /> |
| </js-module> |
| |
| <js-module src="www/ContactFindOptions.js" name="ContactFindOptions"> |
| <clobbers target="ContactFindOptions" /> |
| </js-module> |
| |
| <js-module src="www/ContactName.js" name="ContactName"> |
| <clobbers target="ContactName" /> |
| </js-module> |
| |
| <js-module src="www/ContactOrganization.js" name="ContactOrganization"> |
| <clobbers target="ContactOrganization" /> |
| </js-module> |
| |
| |
| |
| |
| <!-- android --> |
| <platform name="android"> |
| <config-file target="res/xml/config.xml" parent="/*"> |
| <feature name="Contacts"> |
| <param name="android-package" value="org.apache.cordova.contacts.ContactManager"/> |
| </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" /> |
| <uses-permission android:name="android.permission.GET_ACCOUNTS" /> |
| </config-file> |
| |
| <source-file src="src/android/ContactAccessor.java" target-dir="src/org/apache/cordova/contacts" /> |
| <source-file src="src/android/ContactAccessorSdk5.java" target-dir="src/org/apache/cordova/contacts" /> |
| <source-file src="src/android/ContactManager.java" target-dir="src/org/apache/cordova/contacts" /> |
| </platform> |
| |
| <!-- ios --> |
| <platform name="ios"> |
| <config-file target="config.xml" parent="/*"> |
| <feature name="Contacts"> |
| <param name="ios-package" value="CDVContacts"/> |
| </feature> |
| </config-file> |
| |
| <js-module src="www/ios/contacts.js" name="contacts-ios"> |
| <merges target="navigator.contacts" /> |
| </js-module> |
| |
| <js-module src="www/ios/Contact.js" name="Contact-iOS"> |
| <merges target="Contact" /> |
| </js-module> |
| |
| <header-file src="src/ios/CDVContacts.h" /> |
| <source-file src="src/ios/CDVContacts.m" /> |
| <header-file src="src/ios/CDVContact.h" /> |
| <source-file src="src/ios/CDVContact.m" /> |
| |
| <framework src="AddressBook.framework" weak="true" /> |
| <framework src="AddressBookUI.framework" weak="true" /> |
| <framework src="CoreGraphics.framework" /> |
| </platform> |
| |
| <!-- blackberry10 --> |
| <platform name="blackberry10"> |
| <config-file target="www/config.xml" parent="/widget"> |
| <feature name="Contacts" value="Contacts"/> |
| </config-file> |
| <config-file target="www/config.xml" parent="/widget"> |
| <rim:permissions> |
| </rim:permissions> |
| </config-file> |
| <config-file target="www/config.xml" parent="/widget/rim:permissions"> |
| <rim:permit>access_pimdomain_contacts</rim:permit> |
| </config-file> |
| <source-file src="src/blackberry10/index.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/ContactActivity.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/ContactAddress.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/contactConsts.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/ContactError.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/ContactField.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/ContactFindOptions.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/ContactName.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/ContactNews.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/ContactOrganization.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/ContactPhoto.js" target-dir="Contacts"></source-file> |
| <source-file src="src/blackberry10/contactUtils.js" target-dir="Contacts"></source-file> |
| <dependency id="com.blackberry.utils" url="https://github.com/blackberry/cordova-blackberry-plugins.git" commit="plugins" subdir="plugin/com.blackberry.utils"/> |
| <dependency id="org.apache.cordova.blackberry10.pimlib" url="https://github.com/blackberry/cordova-blackberry-plugins.git" commit="plugins" subdir="/plugin/org.apache.cordova.blackberry10.pimlib/"/> |
| </platform> |
| |
| <!-- wp7 --> |
| <platform name="wp7"> |
| <config-file target="config.xml" parent="/*"> |
| <feature name="Contacts"> |
| <param name="wp-package" value="Contacts"/> |
| </feature> |
| </config-file> |
| |
| <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities"> |
| <Capability Name="ID_CAP_CONTACTS" /> |
| </config-file> |
| |
| <source-file src="src/wp/Contacts.cs" /> |
| </platform> |
| |
| <!-- wp8 --> |
| <platform name="wp8"> |
| <config-file target="config.xml" parent="/*"> |
| <feature name="Contacts"> |
| <param name="wp-package" value="Contacts"/> |
| </feature> |
| </config-file> |
| |
| <config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities"> |
| <Capability Name="ID_CAP_CONTACTS" /> |
| </config-file> |
| |
| <source-file src="src/wp/Contacts.cs" /> |
| </platform> |
| |
| </plugin> |