🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cordova-plugin-contacts

Package Overview
Dependencies
Maintainers
6
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-contacts - npm Package Compare versions

Comparing version

to
2.3.0

src/browser/ContactsProxy.js

94

appium-tests/common/common.spec.js

@@ -40,3 +40,3 @@ /*jshint node: true, jasmine: true, browser: true */

describe('Contacts Android', function () {
describe('Contacts UI Automation Tests', function () {
var driver;

@@ -64,3 +64,3 @@ var webviewContext;

driver = wdHelper.getDriver(PLATFORM);
return driver.getWebviewContext()
return wdHelper.getWebviewContext(driver, 2)
.then(function(context) {

@@ -70,4 +70,8 @@ webviewContext = context;

})
.waitForDeviceReady()
.injectLibraries();
.then(function() {
return wdHelper.waitForDeviceReady(driver);
})
.then(function() {
return wdHelper.injectLibraries(driver);
});
}

@@ -114,5 +118,4 @@

return driver
.waitForElementByXPath(UNORM.nfd('//UIAStaticText[@label="' + name + '"]'), 20000)
.elementByXPath(UNORM.nfd('//UIAStaticText[@label="' + name + '"]'))
.elementByXPath(UNORM.nfd('//UIAStaticText[@label="' + name + '"]'));
.waitForElementByAccessibilityId(name, 20000)
.elementByAccessibilityId(name);
case 'android':

@@ -235,3 +238,10 @@ return driver

it('contacts.ui.util configuring driver and starting a session', function (done) {
afterAll(function (done) {
checkSession(done);
driver
.quit()
.done(done);
}, MINUTE);
it('should connect to an appium endpoint properly', function (done) {
getDriver()

@@ -241,4 +251,59 @@ .then(function () {

}, fail)
.then(function () {
// on iOS, first interaction with contacts API will trigger the permission dialog.
// We will attempt to bust it manually here, by triggering the contacts API
// and waiting for the native dialog to show up, then dismissing the alert.
// This only needs to be done once.
// NOTE: in earlier versions of iOS (9.3 and below), using the older UI testing library
// (UIAutomation), Appium's autoAcceptAlerts capability handles this for us. This logic
// is here as a transition between UIAutomation and XCUITest and is compatible with both.
// More details in the comment below.
if (PLATFORM == 'ios') {
var promiseId = getNextPromiseId();
var contactName = contactsHelper.getContactName('Permission', 'Buster');
return driver
.context(webviewContext)
.execute(function (pID, contactname) {
navigator._appiumPromises[pID] = Q.defer();
navigator.contacts.create({
'displayName': contactname.formatted,
'name': contactname,
'note': 'DeleteMe'
}).save(function (contact) {
navigator._appiumPromises[pID].resolve(contact);
}, function (err) {
navigator._appiumPromises[pID].reject(err);
});
}, [promiseId, contactName])
.context('NATIVE_APP')
.acceptAlert()
.then(function alertDismissed() {
// TODO: once we move to only XCUITest-based (which is force on you in either iOS 10+ or Xcode 8+)
// UI tests, we will have to:
// a) remove use of autoAcceptAlerts appium capability since it no longer functions in XCUITest
// b) can remove this entire then() clause, as we do not need to explicitly handle the acceptAlert
// failure callback, since we will be guaranteed to hit the permission dialog on startup.
}, function noAlert() {
// in case the contacts permission alert never showed up: no problem, don't freak out.
// This can happen if:
// a) The application-under-test already had contacts permissions granted to it
// b) Appium's autoAcceptAlerts capability is provided (and functioning)
})
.context(webviewContext)
.executeAsync(function (pID, cb) {
navigator._appiumPromises[pID].promise
.then(cb, function (err) {
cb('ERROR: ' + err);
});
}, [promiseId])
.then(function (result) {
if (typeof result === 'string' && result.indexOf('ERROR:') === 0) {
throw result;
}
return result;
});
}
})
.done(done);
}, 10 * MINUTE);
}, 5 * MINUTE);

@@ -280,6 +345,2 @@ describe('Picking contacts', function () {

})
.then(function (contact) {
expect(contact.name.givenName).toBe('Urist');
expect(contact.name.familyName).toBe('McContact');
})
.then(function () {

@@ -341,9 +402,2 @@ return pickContact('Urist McContact');

});
it('contacts.ui.util Destroy the session', function (done) {
checkSession(done);
driver
.quit()
.done(done);
}, 5 * MINUTE);
});
{
"name": "cordova-plugin-contacts",
"version": "2.2.1",
"version": "2.3.0",
"description": "Cordova Contacts Plugin",
"types": "./types/index.d.ts",
"cordova": {

@@ -6,0 +7,0 @@ "id": "cordova-plugin-contacts",

@@ -24,5 +24,5 @@ ---

|Android|iOS| Windows 8.1 Store | Windows 8.1 Phone | Windows 10 Store | Travis CI |
|Android 4.4|Android 5.1|iOS 9.3|iOS 10.0|Windows 10 Store|Travis CI|
|:-:|:-:|:-:|:-:|:-:|:-:|
|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-contacts/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-contacts/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-contacts/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-contacts/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-contacts/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-contacts.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-contacts)
|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-contacts/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-contacts/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-contacts/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-contacts/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-contacts)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-contacts/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-contacts.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-contacts)

@@ -29,0 +29,0 @@ # cordova-plugin-contacts

@@ -23,3 +23,15 @@ <!--

### 2.3.0 (Feb 28, 2017)
* [CB-12326](https://issues.apache.org/jira/browse/CB-12326) **Android:** `CommonDataKinds.*.LABEL`
* [CB-8076](https://issues.apache.org/jira/browse/CB-8076) Provide error support for **browser** platform
* [CB-12445](https://issues.apache.org/jira/browse/CB-12445) (Appium) Removed double check for contact's name
* [CB-12353](https://issues.apache.org/jira/browse/CB-12353) Corrected merges usage in `plugin.xml`
* [CB-12369](https://issues.apache.org/jira/browse/CB-12369) Add plugin typings from `DefinitelyTyped`
* [CB-12363](https://issues.apache.org/jira/browse/CB-12363) Added build badges for **iOS 9.3** and ** iOS 10.0**
* [CB-12357](https://issues.apache.org/jira/browse/CB-12357) Tests give user some time to accept the permission alert
* [CB-12300](https://issues.apache.org/jira/browse/CB-12300) fix tests failure when running it using `jasmine-node`
* [CB-12230](https://issues.apache.org/jira/browse/CB-12230) Removed **Windows 8.1** build badges
### 2.2.1 (Dec 07, 2016)
* [CB-12224](https://issues.apache.org/jira/browse/CB-12224) Updated version and RELEASENOTES.md for release 2.2.1
* [CB-11541](https://issues.apache.org/jira/browse/CB-11541) Pended one unsupported test on Windows

@@ -32,306 +44,4 @@ * [CB-11541](https://issues.apache.org/jira/browse/CB-11541) iOS: Add extra labels for phone, ims

* [CB-11350](https://issues.apache.org/jira/browse/CB-11350) android: retrieve displayName for contact when specified in desiredFields
* Closing outdated pull request: close #129
* [CB-11864](https://issues.apache.org/jira/browse/CB-11864) Fixed tests for the new Jasmine version
* [CB-11832](https://issues.apache.org/jira/browse/CB-11832) Incremented plugin version.
* [CB-11832](https://issues.apache.org/jira/browse/CB-11832) Updated version and RELEASENOTES.md for release 2.2.0
* [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies
* Added variable to set the usage
* Plugin uses Android Log class and not Cordova LOG class
* [CB-11695](https://issues.apache.org/jira/browse/CB-11695) Increased session creation timeout for Appium tests
* [CB-11667](https://issues.apache.org/jira/browse/CB-11667) - Memory leak in CDVContact for CoreFoundation ABRecordRef
* [CB-11574](https://issues.apache.org/jira/browse/CB-11574) Appium tests now use new injected promise chain methods
* Add badges for paramedic builds on Jenkins
* [CB-11296](https://issues.apache.org/jira/browse/CB-11296) Appium: Better element clicking and session error handling
* Add pull request template.
* Add fenced code blocks - with language hints
* handle 'Invalid Date' error
* [CB-11166](https://issues.apache.org/jira/browse/CB-11166) Appium tests: Added a check for contact's birthday
* [CB-11033](https://issues.apache.org/jira/browse/CB-11033) Appium tests: more timeout tweaks
* [CB-10996](https://issues.apache.org/jira/browse/CB-10996) Adding front matter to README.md
* [CB-11128](https://issues.apache.org/jira/browse/CB-11128) Appium tests: Increased session destruction timeout
* [CB-11091](https://issues.apache.org/jira/browse/CB-11091) Incremented plugin version.
* Updated version and RELEASENOTES.md for release 2.1.0
* [CB-11043](https://issues.apache.org/jira/browse/CB-11043) Android App crashes while trying to save contact with phone numbers array with deleted values
* [CB-10985](https://issues.apache.org/jira/browse/CB-10985) Android sets type to -1 for ims Added a corresponding test
* [CB-11048](https://issues.apache.org/jira/browse/CB-11048) Fix spec27's inadvertant breakage that happened during logging rollback
* [CB-11041](https://issues.apache.org/jira/browse/CB-11041) cordova-plugin-contacts readme must be updated to include instructions on removing phone number from a contact
* [CB-11033](https://issues.apache.org/jira/browse/CB-11033) Appium tests: Increased the timeout for updating the contact
* Revert "CB-10881 Add extra logging to gather more information about tests behavior"
* [CB-10399](https://issues.apache.org/jira/browse/CB-10399) Added Appium tests
* Replace PermissionHelper.java with cordova-plugin-compat
* [CB-8115](https://issues.apache.org/jira/browse/CB-8115) incorrect birthday saved to phonebook using Contacts Plugin
* Changes to stop using global object - remove all created contacts from the emulator
* [CB-10881](https://issues.apache.org/jira/browse/CB-10881) Increase timeout for Spec22
* Fix for the specs 26&27 to use the newly created contacts for removal test
* [CB-10881](https://issues.apache.org/jira/browse/CB-10881) Add extra logging to gather more information about tests behavior
* [CB-10881](https://issues.apache.org/jira/browse/CB-10881) Remove test dependency on global object Maybe this could fix CI issues on [CB-10881](https://issues.apache.org/jira/browse/CB-10881)
* [CB-10632](https://issues.apache.org/jira/browse/CB-10632) Fixing jasmine test contact removal
* Minor changes to readme
* [CB-10636](https://issues.apache.org/jira/browse/CB-10636) Add JSHint for plugins
* chore: edit package.json license to match SPDX id
* [CB-10368](https://issues.apache.org/jira/browse/CB-10368) Incremented plugin version.
* [CB-10368](https://issues.apache.org/jira/browse/CB-10368) Updated version and RELEASENOTES.md for release 2.0.1
* [CB-10159](https://issues.apache.org/jira/browse/CB-10159) android: Adding restore callback to handle Activity destruction
* [CB-10319](https://issues.apache.org/jira/browse/CB-10319) android: Adding reflective helper methods for permission requests
* [CB-10117](https://issues.apache.org/jira/browse/CB-10117) Added new tests
* [CB-10131](https://issues.apache.org/jira/browse/CB-10131) Fixed null contact creation. This closes #98
* [CB-10053](https://issues.apache.org/jira/browse/CB-10053) Documents ContactFieldType enumeration. This closes #93
* [CB-10148](https://issues.apache.org/jira/browse/CB-10148) android: Added READ_CONTACTS permission request when picking a contact
* [CB-10053](https://issues.apache.org/jira/browse/CB-10053) Accept assets URIs for contact photos
* [CB-8115](https://issues.apache.org/jira/browse/CB-8115) Save contact birthday properly
* [CB-6979](https://issues.apache.org/jira/browse/CB-6979) Don't create duplicates for extracted contacts photos
* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Incremented plugin version.
* [CB-5308](https://issues.apache.org/jira/browse/CB-5308) Makes contacts save specs passing
* [CB-5308](https://issues.apache.org/jira/browse/CB-5308) Return rawId instead of id when modifying existing contact
* [CB-4921](https://issues.apache.org/jira/browse/CB-4921) Corrects examples by adding missing `multiple` option where multiple contacts are expected
* [CB-10094](https://issues.apache.org/jira/browse/CB-10094) Android: Fixed empty string comparison
* [CB-3950](https://issues.apache.org/jira/browse/CB-3950) Adds support for custom labels
* [CB-9770](https://issues.apache.org/jira/browse/CB-9770) Request user permissions before picking a contact
* [CB-8156](https://issues.apache.org/jira/browse/CB-8156) Call error callback on pickContact cancellation
* [CB-7906](https://issues.apache.org/jira/browse/CB-7906) Prevent app crash when desiredFields option has undefined items
* [CB-7021](https://issues.apache.org/jira/browse/CB-7021) Adds missing button for pickContact test
* [CB-7021](https://issues.apache.org/jira/browse/CB-7021) Adds manual test for pickContact
* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) linked issues in RELEASENOTES.md
* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated version and RELEASENOTES.md for release 2.0.0
* removed r prefix from tags
* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated RELEASENOTES to be newest to oldest
* Fix whitespace, tab size
* [CB-9728](https://issues.apache.org/jira/browse/CB-9728) Solving memory leak issues due to opened cursor objects
* [CB-9940](https://issues.apache.org/jira/browse/CB-9940) Adding namespace declarations for m3 and uap to plugin.xml. This closes #82
* mark tests as pending if iOS permission is blocked. [CB-9905](https://issues.apache.org/jira/browse/CB-9905)
* Didn't actually add all the handlers that we need for the permissions to work properly
* Refactored ContactManager after feedback
* Adding engine tag
* Fixed error with permission checking. We should exit the method after the permission is denied.
* Commit of Contacts Plugin with new API
* Actually fixing the contribute link.
* Fixing contribute link.
* [CB-9823](https://issues.apache.org/jira/browse/CB-9823) Making sure the photoCursor is always closed.
* Close #67
* Shortened multiple references to use CommonDataKinds directly
* removed mulitple calls toLowerCase(Locale.getDefault()) for the same string, use type Phone enum directly.
* [CB-8537](https://issues.apache.org/jira/browse/CB-8537) Updated source to pass Fortify scan.
* Update ContactProxy.js
* Do not return absolute path for contact images.
* add JIRA issue tracker link
* [CB-9579](https://issues.apache.org/jira/browse/CB-9579) Fixed failed tests when "DeleteMe" contact already exists
* remove travis-ci integration
* [CB-9054](https://issues.apache.org/jira/browse/CB-9054) Can't fully reproduce, but we should probably wrap this in an exception anyway.
* remove wp7 because 2015
* This closes #64
* c
* defaultValue
* hasPhoneNumber
* phoneNumbersInformedOnly
* [CB-9192](https://issues.apache.org/jira/browse/CB-9192) Incremented plugin version.
* [CB-9202](https://issues.apache.org/jira/browse/CB-9202) updated repo url to github mirror in package.json
* [CB-9192](https://issues.apache.org/jira/browse/CB-9192) Updated version and RELEASENOTES.md for release 1.1.0
* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) cordova-plugin-contacts documentation translation: cordova-plugin-contacts
* fix npm md issue
* Add more install text for legacy versions of cordova tools. This closes #60
* [CB-9056](https://issues.apache.org/jira/browse/CB-9056) Increased timeout of failing tests
* [CB-8987](https://issues.apache.org/jira/browse/CB-8987) Support for save and remove for Windows 10
* [CB-5278](https://issues.apache.org/jira/browse/CB-5278) We must close the cursor or we take down the whole app, and the debugger doesn't catch it.
* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Incremented plugin version.
* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Updated version in package.json for release 1.0.0
* Revert "CB-8858 Incremented plugin version."
* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Incremented plugin version.
* [CB-8858](https://issues.apache.org/jira/browse/CB-8858) Updated version and RELEASENOTES.md for release 1.0.0
* [CB-8746](https://issues.apache.org/jira/browse/CB-8746) gave plugin major version bump
* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) updated wp specific references of old id to new id
* [CB-8683](https://issues.apache.org/jira/browse/CB-8683) changed plugin-id to pacakge-name
* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) properly updated translated docs to use new id
* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) updated translated docs to use new id
* Use TRAVIS_BUILD_DIR, install paramedic by npm
* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) Updated Readme
* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) ios: 4.0.x Compatibility: Remove use of initWebView method
* [CB-8659](https://issues.apache.org/jira/browse/CB-8659) ios: 4.0.x Compatibility: Remove use of deprecated headers
* [CB-8604](https://issues.apache.org/jira/browse/CB-8604) Pended unsupported test for wp8, updated documentation
* [CB-8561](https://issues.apache.org/jira/browse/CB-8561) Integrate TravisCI
* [CB-8438](https://issues.apache.org/jira/browse/CB-8438) cordova-plugin-contacts documentation translation: cordova-plugin-contacts
* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added package.json file
* windows: pended .remove test as it is not supported on windows
* [CB-8395](https://issues.apache.org/jira/browse/CB-8395) marked unsupported tests pending on wp8
* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Incremented plugin version.
* [CB-8429](https://issues.apache.org/jira/browse/CB-8429) Updated version and RELEASENOTES.md for release 0.2.16
* [CB-8351](https://issues.apache.org/jira/browse/CB-8351) ios: Stop using (newly) deprecated CordovaLib functions
* [CB-8351](https://issues.apache.org/jira/browse/CB-8351) Use argumentForIndex rather than NSArray extension
* Update ContactName support on Android
* Updated the comments for ContactOrganization constructor.
* [CB-8110](https://issues.apache.org/jira/browse/CB-8110) Incremented plugin version.
* [CB-8110](https://issues.apache.org/jira/browse/CB-8110) Updated version and RELEASENOTES.md for release 0.2.15
* [CB-7131](https://issues.apache.org/jira/browse/CB-7131) Check for profile photo existance
* [CB-7896](https://issues.apache.org/jira/browse/CB-7896) Better way to detect Windows and WidnowsPhone81
* [CB-7896](https://issues.apache.org/jira/browse/CB-7896) Pending tests for Save and Find methods for windows cause they are not supported yet
* [CB-7977](https://issues.apache.org/jira/browse/CB-7977) Mention deviceready in plugin docs
* Dropping trailing whitespace
* [CB-7772](https://issues.apache.org/jira/browse/CB-7772) - [Contacts] Cancelling pickContact should call the error callback, not the success callback
* [CB-7761](https://issues.apache.org/jira/browse/CB-7761) - Misleading text in documentation
* [CB-7762](https://issues.apache.org/jira/browse/CB-7762) - Parameter list is incorrect for contacts.find
* [CB-7700](https://issues.apache.org/jira/browse/CB-7700) cordova-plugin-contacts documentation translation: cordova-plugin-contacts
* Incremented plugin version.
* Updated version and RELEASENOTES.md for release 0.2.14
* [CB-7373](https://issues.apache.org/jira/browse/CB-7373) Removes unnecessary Error object creation
* [CB-7373](https://issues.apache.org/jira/browse/CB-7373) Adds additional output if method is not supported.
* [CB-7357](https://issues.apache.org/jira/browse/CB-7357) Adds missing 'capability' element to phone's appxmanifest.
* [CB-7571](https://issues.apache.org/jira/browse/CB-7571) Bump version of nested plugin to match parent plugin
* [CB-7571](https://issues.apache.org/jira/browse/CB-7571) Incremented plugin version.
* [CB-7571](https://issues.apache.org/jira/browse/CB-7571) Updated version and RELEASENOTES.md for release 0.2.13
* [CB-7546](https://issues.apache.org/jira/browse/CB-7546) - [Contacts][iOS] pickContact shows exception in the console log
* [CB-6374](https://issues.apache.org/jira/browse/CB-6374) - Fix iOS 6 deprecation warnings in Contacts
* [CB-7544](https://issues.apache.org/jira/browse/CB-7544) - [Contacts][iOS 8] Contact picker is read-only in iOS 8
* [CB-7523](https://issues.apache.org/jira/browse/CB-7523) Fixing "ContactFieldType" error in the config.xml
* [CB-6724](https://issues.apache.org/jira/browse/CB-6724) Empty may be expected.
* CB-7249cordova-plugin-contacts documentation translation: cordova-plugin-contacts
* Add missing test, skip some specs on wp
* rm old test folder and merged with renamed tests folder
* [CB-7290](https://issues.apache.org/jira/browse/CB-7290) Adds support for universal Windows platform.
* Oops, not sure how I removed those tags ... This closes #33
* Renamed test dir, added nested plugin.xml
* [CB-7148](https://issues.apache.org/jira/browse/CB-7148) Added manual tests
* Removed js-module for tests from plugin.xml
* Changing cdvtest format to use module exports
* register tests using new style
* convert test to new style
* [CB-7244](https://issues.apache.org/jira/browse/CB-7244) Incremented plugin version.
* [CB-7244](https://issues.apache.org/jira/browse/CB-7244) Updated version and RELEASENOTES.md for release 0.2.12
* fixes .find method when 'options' param is not passed
* CB-7249cordova-plugin-contacts documentation translation: cordova-plugin-contacts
* update ContactsProxy.js
* added documentation for manual tests
* merged changes for test framework plugin
* Removing a stray unicode character
* CB-6127lisa7cordova-plugin-consolecordova-plugin-contacts documentation translation: cordova-plugin-contacts
* Updated RELEASENOTES.md for release 0.2.11
* [CB-7003](https://issues.apache.org/jira/browse/CB-7003) Make pickContact pick correct contact on Android 4.3 and 4.4.3
* Updated RELEASENOTES.md for release 0.2.11
* Revert change to argument order in navigator.contacts.find
* [CB-5698](https://issues.apache.org/jira/browse/CB-5698) Fix non-compiling code in previous commit
* [CB-5698](https://issues.apache.org/jira/browse/CB-5698) ios: Check to see if photoData exists before using
* [CB-5698](https://issues.apache.org/jira/browse/CB-5698) Fix non-compiling code in previous commit
* [CB-5698](https://issues.apache.org/jira/browse/CB-5698) ios: Check to see if photoData exists before using
* [CB-6877](https://issues.apache.org/jira/browse/CB-6877) Incremented plugin version.
* [CB-6877](https://issues.apache.org/jira/browse/CB-6877) Updated version and RELEASENOTES.md for release 0.2.11
* [CB-6127](https://issues.apache.org/jira/browse/CB-6127) Spanish and French Translations added. Github close #25
* Remove deprecated symbols for iOS < 6
* [CB-6797](https://issues.apache.org/jira/browse/CB-6797) Add license
* documentation translation: cordova-plugin-contacts
* Lisa testing pulling in plugins for plugin: cordova-plugin-contacts
* [wp8] now pupulates contact photos
* Update license headers format
* Add pickContact functionality to cordova contacts plugin
* Lisa testing pulling in plugins for plugin: cordova-plugin-contacts
* [CB-5416](https://issues.apache.org/jira/browse/CB-5416) - Adding support for auto-managing permissions
* [CB-6682](https://issues.apache.org/jira/browse/CB-6682) move windows8 command proxy into it's missing platform tag. This closes #30
* Add ContactError codes to index.md doc (closes #28)
* [CB-6491](https://issues.apache.org/jira/browse/CB-6491) add CONTRIBUTING.md
* Docs typo: navigator.contacts.length -> contacts.length
* [CB-6452](https://issues.apache.org/jira/browse/CB-6452) Incremented plugin version on dev branch.
* [CB-6452](https://issues.apache.org/jira/browse/CB-6452) Updated version and RELEASENOTES.md for release 0.2.10
* [CB-6460](https://issues.apache.org/jira/browse/CB-6460) Update license headers
* [CB-6126](https://issues.apache.org/jira/browse/CB-6126) [BlackBerry10] Update docs quirks section for fields which are supported
* [CB-6212](https://issues.apache.org/jira/browse/CB-6212) iOS: fix warnings compiled under arm64 64-bit
* [CB-6212](https://issues.apache.org/jira/browse/CB-6212) iOS: fix warnings compiled under arm64 64-bit
* manually merging [CB-3208](https://issues.apache.org/jira/browse/CB-3208)
* Add NOTICE file
* [CB-6114](https://issues.apache.org/jira/browse/CB-6114) Incremented plugin version on dev branch.
* Windows 8 - added some more #Quirks info
* Update docs with Windows 8 support info, fix contacts.find example error
* [CB-1291](https://issues.apache.org/jira/browse/CB-1291) Windows8 supports multiple, added some error checking, converts Windows8 Contact to Cordova Contact
* [CB-1291](https://issues.apache.org/jira/browse/CB-1291) Windows8 added some contact conversion, console.error on save because it is not supported
* [CB-1291](https://issues.apache.org/jira/browse/CB-1291) Windows8 Adding contact picker apis
* Add NOTICE file
* [CB-6114](https://issues.apache.org/jira/browse/CB-6114) Updated version and RELEASENOTES.md for release 0.2.9
* [CB-6086](https://issues.apache.org/jira/browse/CB-6086) Fix typo in ffos part of plugin.xml: Camera -> Contacts
* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Incremented plugin version on dev branch.
* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Updated version and RELEASENOTES.md for release 0.2.8
* [CB-5994](https://issues.apache.org/jira/browse/CB-5994) Switch Contact ID lookup to use Raw contact id.
* Lisa testing pulling in plugins for plugin: cordova-plugin-contacts
* Lisa testing pulling in plugins for plugin: cordova-plugin-contacts
* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Updated version and RELEASENOTES.md for release 0.2.8
* [CB-3208](https://issues.apache.org/jira/browse/CB-3208) FFOS docs updated
* [CB-4590](https://issues.apache.org/jira/browse/CB-4590) - chooseContact in CDVContacts crashes app
* Delete stale test/ directory
* [CB-5719](https://issues.apache.org/jira/browse/CB-5719) Incremented plugin version on dev branch.
* * FirefoxOS quirks updated * name.formatted constructed with respect to honorific pre- and suffix
* [CB-5719](https://issues.apache.org/jira/browse/CB-5719) Updated version and RELEASENOTES.md for release 0.2.7
* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Update license comment formatting of doc/index.md
* B-5658 Add doc.index.md for Contacts plugin
* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Delete stale snapshot of plugin docs
* [CB-5565](https://issues.apache.org/jira/browse/CB-5565) Incremented plugin version on dev branch.
* [CB-5565](https://issues.apache.org/jira/browse/CB-5565) Updated version and RELEASENOTES.md for release 0.2.6
* Fix bad commit/merge
* [CB-3035](https://issues.apache.org/jira/browse/CB-3035) Fix issue with windows new line char \n\r
* wrong example given
* docs added
* FxOS name fields are arrays hackedSearch refactored search based on find commented out
* search hacked via getAll
* search added - no idea if this is working
* createMozillaFromCordova and vice versa are used to translate contact objects from one API to another.
* add/remove working
* save is working
* attempt to save is failing trying to limit the translated contact fields to name and familyName, but still failing
* save is linked with the proxy contact.name doesn't exist www/Contact.js#Contact.prototype.save check on which side is the error
* [CB-5214](https://issues.apache.org/jira/browse/CB-5214) Make mobile spec tests on WP8 to run w/o user interaction + Sync with cordova-mobile-spec
* [CB-5525](https://issues.apache.org/jira/browse/CB-5525) WP8. Contacts Api fails in case of there is special character in contact field
* fixed ubuntu policy error
* [ubuntu] specify policy_group
* add ubuntu platform
* [CB-3035](https://issues.apache.org/jira/browse/CB-3035) Fix issue with windows new line char \n\r
* 1. Added amazon-fireos platform. 2. Change to use amazon-fireos as the platform if user agent string contains 'cordova-amazon-fireos'.
* [CB-5198](https://issues.apache.org/jira/browse/CB-5198) [BlackBerry10] Update dependencies to point to registry
* [CB-5188](https://issues.apache.org/jira/browse/CB-5188)
* handle null filter when fields are specified. ( long standing pull-req from @kevfromireland )
* added readOnly formatted field
* explanation about organizations added
* added organizations and categories
* addresses added to the Proxy
* refactoring * update from Mozilla moved to Contact prototype * some comments added/modified
* search if contact does exist before remove
* check for id in the right way
* fixed update contacts (if id is provided one needs to search for the contact) updateFromCordova moved to prototype of mozContact fields are fixed the right search is used
* wrong example given
* docs added
* FxOS name fields are arrays hackedSearch refactored search based on find commented out
* search added - no idea if this is working
* search hacked via getAll
* createMozillaFromCordova and vice versa are used to translate contact objects from one API to another.
* add/remove working
* save is working
* attempt to save is failing trying to limit the translated contact fields to name and familyName, but still failing
* save is linked with the proxy contact.name doesn't exist www/Contact.js#Contact.prototype.save check on which side is the error
* [CB-5188](https://issues.apache.org/jira/browse/CB-5188) Updated version and RELEASENOTES.md for release 0.2.5
* [CB-5128](https://issues.apache.org/jira/browse/CB-5128) added repo + issue tags for contacts
* [CB-5010](https://issues.apache.org/jira/browse/CB-5010) Incremented plugin version on dev branch.
* [CB-5010](https://issues.apache.org/jira/browse/CB-5010) Updated version and RELEASENOTES.md for release 0.2.4
* [CB-4950](https://issues.apache.org/jira/browse/CB-4950) Remove the dependence on concrete component android.webkit.WebView.
* [CB-4915](https://issues.apache.org/jira/browse/CB-4915) Incremented plugin version on dev branch.
* [CB-4915](https://issues.apache.org/jira/browse/CB-4915) Updated version and RELEASENOTES.md for release 0.2.3
* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) bumping&resetting version
* [BlackBerry10] removed uneeded permission tags in plugin.xml
* [BlackBerry10] removed uneeded permission tags in plugin.xml
* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) renaming blackberry10 reference in plugin.xml
* [CB-4888](https://issues.apache.org/jira/browse/CB-4888) renaming org.apache.cordova.core.contacts to org.apache.cordova.contacts
* added contacts api for firefoxos
* Rename CHANGELOG.md -> RELEASENOTES.md
* [CB-4824](https://issues.apache.org/jira/browse/CB-4824) Fix XCode 5 contacts plugin warnings
* [CB-4752](https://issues.apache.org/jira/browse/CB-4752) Incremented plugin version on dev branch.
* [BlackBerry10] removed uneeded permission tags in plugin.xml
* [CB-4752](https://issues.apache.org/jira/browse/CB-4752) Updated version and changelog
* [CB-4580](https://issues.apache.org/jira/browse/CB-4580) fixed up duplicate definitions of module id
* [CB-4432](https://issues.apache.org/jira/browse/CB-4432) copyright notice change
* [CB-4432](https://issues.apache.org/jira/browse/CB-4432) copyright notice change
* [CB-4595](https://issues.apache.org/jira/browse/CB-4595) updated version
* reverted name element to be human readable
* [CB-4417](https://issues.apache.org/jira/browse/CB-4417) Move cordova-plugin-contacts to its own Java package.
* updated namespace
* updated name tag and readme
* [plugin.xml] adding rim namespace
* [plugin.xml] adding android namespace
* [plugin.xml] standardizing license + meta
* [license] adding apache license file
* updating plugin.xml with registry data
* [wp] fixed search by name and made searching case insensitive
* [CB-4368](https://issues.apache.org/jira/browse/CB-4368) Explicit CoreGraphics.framework dependency should be specified for some core plugins
* [CB-4362](https://issues.apache.org/jira/browse/CB-4362) Contacts plugin needs to specify AddressBook.framework and AddressBookUI.framework dependency in plugin.xml

@@ -338,0 +48,0 @@ ### 2.2.0 (Sep 08, 2016)

@@ -153,3 +153,3 @@ /*

navigator.contacts.find(["displayName", "name", "phoneNumbers", "emails"], win, failed, obj);
});
}, HIGH_TIMEOUT); // give permission buster or a user a chance to accept the permission alert

@@ -696,3 +696,5 @@ it("contacts.spec.4 success callback should be called with an array, even if partial ContactFindOptions specified", function(done) {

contact.note = "DeleteMe";
saveAndFindBy(contact, ["displayName", "name"], contactName, done, this);
saveAndFindBy(contact, ["displayName", "name"], contactName, function() {
done();
}, this);
}, MEDIUM_TIMEOUT);

@@ -762,3 +764,5 @@

contact.name.familyName = contactName;
saveAndFindBy(contact, ["displayName", "name"], contactName, done, this);
saveAndFindBy(contact, ["displayName", "name"], contactName, function() {
done();
}, this);
}, MEDIUM_TIMEOUT);

@@ -777,3 +781,5 @@

saveAndFindBy(contact, ["phoneNumbers"], "555-555-1234", done, this);
saveAndFindBy(contact, ["phoneNumbers"], "555-555-1234", function() {
done();
}, this);

@@ -780,0 +786,0 @@ }, MEDIUM_TIMEOUT);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet