Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-contacts

Package Overview
Dependencies
Maintainers
3
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 2.2.0 to 2.2.1

1

.github/PULL_REQUEST_TEMPLATE.md

@@ -20,5 +20,4 @@ <!--

### Checklist
- [ ] [ICLA](http://www.apache.org/licenses/icla.txt) has been signed and submitted to secretary@apache.org.
- [ ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
- [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
- [ ] Added automated test coverage as appropriate for this change.

2

package.json
{
"name": "cordova-plugin-contacts",
"version": "2.2.0",
"version": "2.2.1",
"description": "Cordova Contacts Plugin",

@@ -5,0 +5,0 @@ "cordova": {

@@ -23,2 +23,315 @@ <!--

### 2.2.1 (Dec 07, 2016)
* [CB-11541](https://issues.apache.org/jira/browse/CB-11541) Pended one unsupported test on Windows
* [CB-11541](https://issues.apache.org/jira/browse/CB-11541) iOS: Add extra labels for phone, ims
* [CB-11028](https://issues.apache.org/jira/browse/CB-11028) android: Allow to set custom labels for contacts' fields
* [CB-11975](https://issues.apache.org/jira/browse/CB-11975) iOS: Allow to use numeric values in search filter
* [CB-11206](https://issues.apache.org/jira/browse/CB-11206) (android) Fixed custom IM protocol parsing close #128
* [CB-11917](https://issues.apache.org/jira/browse/CB-11917) - Remove pull request template checklist item: "iCLA has been signed and submitted to secretary@apache.org."
* [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
### 2.2.0 (Sep 08, 2016)

@@ -25,0 +338,0 @@ * [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies

@@ -255,2 +255,118 @@ /*

});
it("contacts.spec.7.1 should contain displayName if specified in desiredFields", function(done) {
if (isWindows || isWindowsPhone8 || isIOSPermissionBlocked) {
pending();
}
var testDisplayName = "testContact";
var specContext = this;
specContext.contactObj = new Contact();
specContext.contactObj.displayName = testDisplayName;
var win = function(contactResult) {
expect(contactResult.length > 0).toBe(true);
var namesDisplayed = contactResult.every(function(contact, index) {
return contact.displayName !== null;
});
expect(namesDisplayed).toBe(true);
done();
};
var onSuccessSave = function(savedContact) {
specContext.contactObj = savedContact;
var options = new ContactFindOptions();
options.filter = testDisplayName;
options.multiple = true;
options.desiredFields = [navigator.contacts.fieldType.displayName];
navigator.contacts.find(["displayName", "nickname"], win, fail.bind(null, done), options);
};
specContext.contactObj.save(onSuccessSave, fail.bind(null, done));
});
it("contacts.spec.7.2 should find contact despite id isn't string ", function(done) {
if (isWindows || isWindowsPhone8 || isIOSPermissionBlocked) {
pending();
}
var testDisplayName = "testContact";
var specContext = this;
specContext.contactObj = new Contact();
specContext.contactObj.displayName = testDisplayName;
var win = function(contactResult) {
expect(contactResult.length > 0).toBe(true);
done();
};
var onSuccessSave = function(savedContact) {
specContext.contactObj = savedContact;
var options = new ContactFindOptions();
options.filter = savedContact.id;
options.multiple = true;
navigator.contacts.find(["id"], win, fail.bind(null, done), options);
};
specContext.contactObj.save(onSuccessSave, fail.bind(null, done));
});
it("contacts.spec.7.3 should contain custom label in type", function(done) {
if (isWindows || isWindowsPhone8 || isIOSPermissionBlocked) {
pending();
}
var testDisplayName = "testContact";
var customLabel = "myType";
var testContactDetail = new ContactField(customLabel, "a", true);
var contactFields = ["phoneNumbers", "emails", "urls", "ims"];
var specContext = this;
specContext.contactObj = new Contact();
specContext.contactObj.nickname = testDisplayName;
specContext.contactObj.displayName = testDisplayName;
contactFields.forEach(function(contactField) {
specContext.contactObj[contactField] = [];
specContext.contactObj[contactField][0] = testContactDetail;
});
specContext.contactObj.addresses = [];
specContext.contactObj.addresses[0] = new ContactAddress(true, customLabel, "a", "b", "c", "d", "e", "f");
var checkTypes = function(contact) {
var allFieldsWithCustomLabel = contactFields.concat(["addresses"]);
return allFieldsWithCustomLabel.every(function(contactField) {
return contact[contactField] && contact[contactField][0].type === customLabel;
});
};
var win = function(contactResult) {
expect(contactResult.length > 0).toBe(true);
var typesCustomized = contactResult.every(function(contact) {
return checkTypes(contact);
});
expect(typesCustomized).toBe(true);
done();
};
var onSuccessSave = function(savedContact) {
expect(checkTypes(savedContact)).toBe(true);
specContext.contactObj = savedContact;
var options = new ContactFindOptions();
options.filter = testDisplayName;
options.multiple = true;
navigator.contacts.find(["displayName", "nickname"], win, fail.bind(null, done), options);
};
specContext.contactObj.save(onSuccessSave, fail.bind(null, done));
});
it('spec 7.4 contact detail type should equal default label', function(done) {
if (isWindows || isWindowsPhone8 || isIOSPermissionBlocked) {
pending();
}
var specContext = this;
specContext.contactObj = navigator.contacts.create({
"displayName": "test name",
"ims": [{
"type": "SKYPE",
"value": "000"
}]
});
specContext.contactObj.save(onSuccessSave, fail.bind(null, done));
function onSuccessSave(savedContact) {
specContext.contactObj = savedContact;
var imsType = savedContact.ims[0].type;
var expectedType = (cordova.platformId == 'android') ? "Skype" : "skype";
expect(imsType).toBe(expectedType);
done();
}
});
});

@@ -515,3 +631,3 @@ });

describe('Contact.remove method', function(done) {
describe('Contact.remove method', function() {
afterEach(function (done) {

@@ -680,3 +796,3 @@ removeContact(done, this.contactObj);

done();
}, done, this);
}, this);
}, MEDIUM_TIMEOUT);

@@ -703,7 +819,7 @@

if (found.ims[0]) {
expect(found.ims[0].type).toEqual(ims[0].type);
expect(found.ims[0].type).toEqual(cordova.platformId == 'android' ? ims[0].type : ims[0].type.toLowerCase());
expect(found.ims[0].value).toEqual(ims[0].value);
}
done();
}, done, this);
}, this);
}, MEDIUM_TIMEOUT);

@@ -710,0 +826,0 @@ });

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc