From fc4cdeb1c75899a0556dd05ead6c372f4d8aa3ae Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Wed, 7 Dec 2016 16:55:08 -0800 Subject: [PATCH 01/11] CB-12224 Incremented plugin version. --- package.json | 2 +- plugin.xml | 2 +- tests/plugin.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c7e0ada..3457a51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-network-information", - "version": "1.3.1", + "version": "1.3.2-dev", "description": "Cordova Network Information Plugin", "cordova": { "id": "cordova-plugin-network-information", diff --git a/plugin.xml b/plugin.xml index 51e1f6b..7d97832 100644 --- a/plugin.xml +++ b/plugin.xml @@ -21,7 +21,7 @@ + version="1.3.2-dev"> Network Information Cordova Network Information Plugin diff --git a/tests/plugin.xml b/tests/plugin.xml index c37d952..9cf4b49 100644 --- a/tests/plugin.xml +++ b/tests/plugin.xml @@ -21,7 +21,7 @@ + version="1.3.2-dev"> Cordova Network Information Plugin Tests Apache 2.0 From 4ab07501721529ef6d3fd796244a370549095163 Mon Sep 17 00:00:00 2001 From: Alexander Sorokin Date: Fri, 9 Dec 2016 13:41:36 +0300 Subject: [PATCH 02/11] CB-12230 Removed Windows 8.1 build badges --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 394058c..b15a838 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ description: Get information about wireless connectivity. # under the License. --> -|Android|iOS| Windows 8.1 Store | Windows 8.1 Phone | Windows 10 Store | Travis CI | -|:-:|:-:|:-:|:-:|:-:|:-:| -|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-network-information.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-network-information)| +|Android 4.4|Android 5.1|iOS|Windows 10 Store|Travis CI| +|:-:|:-:|:-:|:-:|:-:| +|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-network-information.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-network-information)| # cordova-plugin-network-information From ee0cb16e585bda6cfa5e382544b9ef4ef01080b0 Mon Sep 17 00:00:00 2001 From: Shazron Abdullah Date: Sun, 11 Dec 2016 12:57:16 -0800 Subject: [PATCH 03/11] CB-12236 - Fixed RELEASENOTES for cordova-plugin-network-information --- RELEASENOTES.md | 173 +----------------------------------------------- 1 file changed, 1 insertion(+), 172 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index dfa0890..ed9b83f 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -21,181 +21,10 @@ # Release Notes ### 1.3.1 (Dec 07, 2016) +* [CB-12224](https://issues.apache.org/jira/browse/CB-12224) Updated version and RELEASENOTES.md for release 1.3.1 * [CB-11230](https://issues.apache.org/jira/browse/CB-11230) [CB-11505](https://issues.apache.org/jira/browse/CB-11505) iOS: Add compatibility with IPv6 * [CB-11917](https://issues.apache.org/jira/browse/CB-11917) - Remove pull request template checklist item: "iCLA has been submitted…" * [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 1.3.0 -* [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies -* [CB-11734](https://issues.apache.org/jira/browse/CB-11734) Network Plugin uses Android Log class and not Cordova LOG class -* [CB-11300](https://issues.apache.org/jira/browse/CB-11300) (android) Recognize "2G", "3G" and "4G" network connection subtype names -* Merge branch 'master' of https://github.com/NickyYo/cordova-plugin-network-information -* Update NetworkManager.java -* Detection of Ethernet Network Type on Android -* Cleanup pull requests. This closes #41. This closes #43 -* fixed two potential memory leaks when doing Analyze on iOS 9 -* [CB-11384](https://issues.apache.org/jira/browse/CB-11384) android: Does not pass sonarqube scan -* Add badges for paramedic builds on Jenkins -* Add pull request template. -* Readme: Add fenced code blocks with langauage hints -* Add code examples. This closes #40. -* [CB-10996](https://issues.apache.org/jira/browse/CB-10996) Adding front matter to README.md -* [CB-11091](https://issues.apache.org/jira/browse/CB-11091) Incremented plugin version. -* Updated version and RELEASENOTES.md for release 1.2.1 -* [CB-10763](https://issues.apache.org/jira/browse/CB-10763) Remove emoji in cordova-plugin-network-information -* [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 1.2.0 -* Updating readme.md -* Adding CoreTelephony to plugin.xml -* Adding notification for CT radio information -* Adding CT radio information -* [CB-10160](https://issues.apache.org/jira/browse/CB-10160) Fixed the case mismatch issue -* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Incremented plugin version. -* [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 1.1.0 -* removed r prefix from tags -* [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated RELEASENOTES to be newest to oldest -* Actually fixing the contribute link. -* Fixing contribute link. -* These notifications are objects so their address always evaluates to true. -* add JIRA issue tracker link -* Update NetworkManager.java -* Update NetworkManager.java -* Moved browser proxy to src/., This closes #18, closes #22, closes #23, closes #26 -* [CB-9542](https://issues.apache.org/jira/browse/CB-9542) Browser Proxy not defined correctly -* Performance-related fix -* This closes #16 -* Solved toLowerCase issue with Locale.US -* remove travis-ci integration -* [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.0.1 -* Adding .ratignore file. -* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) cordova-plugin-network-information documentation translation: cordova-plugin-network-information -* fix npm md issue -* [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) 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 -* [CB-8185](https://issues.apache.org/jira/browse/CB-8185) Fixes typo in `cordova.platformId` -* Use TRAVIS_BUILD_DIR, install paramedic by npm -* [CB-8185](https://issues.apache.org/jira/browse/CB-8185) Use `navigator.onLine` as connection information source on browser platform -* [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-8573](https://issues.apache.org/jira/browse/CB-8573) Integrate TravisCI -* [CB-8438](https://issues.apache.org/jira/browse/CB-8438) cordova-plugin-network-information documentation translation: cordova-plugin-network-information -* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added package.json file -* [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.15 -* [CB-8384](https://issues.apache.org/jira/browse/CB-8384) Network status change support on Windows -* [CB-8384](https://issues.apache.org/jira/browse/CB-8384) Fixes the way we detect online status on Windows -* [CB-8384](https://issues.apache.org/jira/browse/CB-8384) Add Windows platform quirks -* [CB-8384](https://issues.apache.org/jira/browse/CB-8384) Add Windows section to Network Information plugin -* [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.14 -* [CB-7976](https://issues.apache.org/jira/browse/CB-7976) Android: Use webView's context rather than Activity's context for intent receiver -* [CB-7700](https://issues.apache.org/jira/browse/CB-7700) cordova-plugin-network-information documentation translation: cordova-plugin-network-information -* [CB-7700](https://issues.apache.org/jira/browse/CB-7700) cordova-plugin-network-information documentation translation: cordova-plugin-network-information -* Incremented plugin version. -* Updated version and RELEASENOTES.md for release 0.2.13 -* [CB-7595](https://issues.apache.org/jira/browse/CB-7595) Android L changes the type from Mobile to Cellular, I'm pretty sure this isn't documented -* [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.12 -* [CB-7471](https://issues.apache.org/jira/browse/CB-7471) cordova-plugin-network-information documentation translation: cordova-plugin-network-information -* Fix network information type exception on fxos 2 -* Added support for the browser -* [CB-6724](https://issues.apache.org/jira/browse/CB-6724) added documentation for manual tests -* remove reference to test assets, they are optional -* Renamed test dir and added nested plugin.xml -* [CB-6964](https://issues.apache.org/jira/browse/CB-6964) ported manual tests -* Port network tests to plugin-test-framework -* Fix naviagtor typo -* [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.11 -* CB-7249cordova-plugin-network-information documentation translation: cordova-plugin-network-information -* update NetworkProxy.js -* CB-6127lisa7cordova-plugin-consolecordova-plugin-network-information documentation translation: cordova-plugin-network-information -* CB-6773cordova-plugin-network-information documentation translation: cordova-plugin-network-information -* [CB-7019](https://issues.apache.org/jira/browse/CB-7019) Incremented plugin version. -* [CB-7019](https://issues.apache.org/jira/browse/CB-7019) Updated version and RELEASENOTES.md for release 0.2.10 -* documentation translation: cordova-plugin-network-information -* Lisa testing pulling in plugins for plugin: cordova-plugin-network-information -* Lisa testing pulling in plugins for plugin: cordova-plugin-network-information -* Lisa testing pulling in plugins for plugin: cordova-plugin-network-information -* Lisa testing pulling in plugins for plugin: cordova-plugin-network-information -* Fixed docs for online/offline event being backwards -* CB-6773cordova-plugin-network-information documentation translation: cordova-plugin-network-information -* documentation translation: cordova-plugin-network-information -* Lisa testing pulling in plugins for plugin: cordova-plugin-network-information -* Lisa testing pulling in plugins for plugin: cordova-plugin-network-information -* Lisa testing pulling in plugins for plugin: cordova-plugin-network-information -* Lisa testing pulling in plugins for plugin: cordova-plugin-network-information -* [CB-7019](https://issues.apache.org/jira/browse/CB-7019) Incremented plugin version. -* [CB-7019](https://issues.apache.org/jira/browse/CB-7019) Updated version and RELEASENOTES.md for release 0.2.10 -* [CB-6907](https://issues.apache.org/jira/browse/CB-6907) android: Don't crash on startup if no networks available -* [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.9 -* updated notice file to include missing license -* Cached extra info to better detect changes. -* [CB-6809](https://issues.apache.org/jira/browse/CB-6809) Add license to CONTRIBUTING.md -* [CB-6491](https://issues.apache.org/jira/browse/CB-6491) add CONTRIBUTING.md -* [CB-6350](https://issues.apache.org/jira/browse/CB-6350) - Fix networkStatusForFlags return value type to work with 64-bit iOS (closes #8) -* [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.8 -* [CB-6465](https://issues.apache.org/jira/browse/CB-6465) Add license headers to Tizen code -* [CB-6460](https://issues.apache.org/jira/browse/CB-6460) Update license headers -* [CB-6422](https://issues.apache.org/jira/browse/CB-6422) [windows8] use cordova/exec/proxy -* [CB-6342](https://issues.apache.org/jira/browse/CB-6342) - iOS reports a cellular connection even when in Airplane mode -* Initial version of firefox os network information plugin -* there was an error in the object definition -* Add NOTICE file -* [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.7 -* Initial implementation of Tizen plugin. -* Delete stale test/ directory -* [CB-5719](https://issues.apache.org/jira/browse/CB-5719) Incremented plugin version on dev branch. -* [CB-5719](https://issues.apache.org/jira/browse/CB-5719) Updated version and RELEASENOTES.md for release 0.2.6 -* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Update license comment formatting of doc/index.md -* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Add doc.index.md for netinfo 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.5 -* [ubuntu] specify policy_group -* add ubuntu platform -* Added amazon-fireos platform. Change to use amazon-fireos as the platform if user agent string contains 'cordova-amazon-fireos' -* [CB-5188](https://issues.apache.org/jira/browse/CB-5188) -* [CB-5188](https://issues.apache.org/jira/browse/CB-5188) Updated version and RELEASENOTES.md for release 0.2.4 -* [CB-5128](https://issues.apache.org/jira/browse/CB-5128) add repo + issue tag to plugin.xml for network information plugin -* [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 -* [windows8] commandProxy was moved -* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) renaming org.apache.cordova.core.network-information to org.apache.cordova.network-information -* removed duplicate comment line from plugin.xml -* added Network APIs for FirefoxOS -* Rename CHANGELOG.md -> RELEASENOTES.md -* [CB-4432](https://issues.apache.org/jira/browse/CB-4432) copyright notice change -* [CB-4752](https://issues.apache.org/jira/browse/CB-4752) Incremented plugin version on dev branch. -* [CB-4752](https://issues.apache.org/jira/browse/CB-4752) Updated version and changelog -* [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 -* [CB-4417](https://issues.apache.org/jira/browse/CB-4417) Move cordova-plugin-network-information to its own Java package. -* updated readme, name tag and namespace -* [plugin.xml] standardizing license + meta -* [license] adding apache license file -* [xml] correcting invalid xml, adding namespace -* fixing malformed plugin.xml -* added firefoxos network apis -* updating plugin.xml with registry data -* [Windows8] Added support for Windows8 -* [CB-4363](https://issues.apache.org/jira/browse/CB-4363) Network Info plugin needs to specify SystemConfiguration.framework dependency in plugin.xml ### 1.3.0 (Sep 08, 2016) * [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies From f4f1abec3a0f5e5efd1ec8bc8312c97ad92deefa Mon Sep 17 00:00:00 2001 From: Ken'ichi Fukushima Date: Mon, 12 Sep 2016 18:28:49 +0900 Subject: [PATCH 04/11] CB-11838 ios: Unregister callback function at the right timing. We at LINE observed about 40K crashes a day that were suspected to be caused by the reacahability callback function invoked on an already-deallocated object. We couldn't reproduced the crash locally but this patch did reduce the number of crash reports to zero. This closes #49 --- src/ios/CDVReachability.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ios/CDVReachability.m b/src/ios/CDVReachability.m index 70177a7..b43a62d 100644 --- a/src/ios/CDVReachability.m +++ b/src/ios/CDVReachability.m @@ -120,6 +120,7 @@ static void CDVReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkRe - (void)stopNotifier { if (reachabilityRef != NULL) { + SCNetworkReachabilitySetCallback(reachabilityRef, NULL, NULL); SCNetworkReachabilityUnscheduleFromRunLoop(reachabilityRef, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode); } } From 30e219aa959a6968f6404404c8ccf684a8c6e6a5 Mon Sep 17 00:00:00 2001 From: Alexander Sorokin Date: Wed, 18 Jan 2017 13:37:33 +0300 Subject: [PATCH 05/11] CB-12363 Added build badges for iOS 9.3 and 10.0 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b15a838..c27e409 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ description: Get information about wireless connectivity. # under the License. --> -|Android 4.4|Android 5.1|iOS|Windows 10 Store|Travis CI| -|:-:|:-:|:-:|:-:|:-:| -|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-network-information.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-network-information)| +|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-4.4,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-network-information.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-network-information)| # cordova-plugin-network-information From d8c1b0b503e349b61274dab39fae14241d40f14e Mon Sep 17 00:00:00 2001 From: Nikita Matrosov Date: Thu, 19 Jan 2017 16:10:44 +0300 Subject: [PATCH 06/11] CB-12369: Add plugin typings from DefinitelyTyped This closes #53 --- package.json | 1 + types/index.d.ts | 62 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 types/index.d.ts diff --git a/package.json b/package.json index 3457a51..a87f6cd 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "cordova-plugin-network-information", "version": "1.3.2-dev", "description": "Cordova Network Information Plugin", + "types": "./types/index.d.ts", "cordova": { "id": "cordova-plugin-network-information", "platforms": [ diff --git a/types/index.d.ts b/types/index.d.ts new file mode 100644 index 0000000..60b6c26 --- /dev/null +++ b/types/index.d.ts @@ -0,0 +1,62 @@ +// Type definitions for Apache Cordova Network Information plugin +// Project: https://github.com/apache/cordova-plugin-network-information +// Definitions by: Microsoft Open Technologies Inc +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// +// Copyright (c) Microsoft Open Technologies Inc +// Licensed under the MIT license + +interface Navigator { + /** + * This plugin provides an implementation of an old version of the Network Information API. + * It provides information about the device's cellular and wifi connection, and whether the device has an internet connection. + */ + connection: Connection; + // see https://github.com/apache/cordova-plugin-network-information/blob/dev/doc/index.md#api-change + // for + network: { + /** + * This plugin provides an implementation of an old version of the Network Information API. + * It provides information about the device's cellular and wifi connection, and whether the device has an internet connection. + */ + connection: Connection + } +} + +interface Document { + addEventListener(type: "online", connectionStateCallback: () => any, useCapture?: boolean): void; + addEventListener(type: "offline", connectionStateCallback: () => any, useCapture?: boolean): void; +} + +/** + * The connection object, exposed via navigator.connection, provides information + * about the device's cellular and wifi connection. + */ +interface Connection { + /** + * This property offers a fast way to determine the device's network connection state, and type of connection. + * One of: + * Connection.UNKNOWN + * Connection.ETHERNET + * Connection.WIFI + * Connection.CELL_2G + * Connection.CELL_3G + * Connection.CELL_4G + * Connection.CELL + * Connection.NONE + */ + type: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; + removeEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; +} + +declare var Connection: { + UNKNOWN: string; + ETHERNET: string; + WIFI: string; + CELL_2G: string; + CELL_3G: string; + CELL_4G: string; + CELL: string; + NONE: string; +} \ No newline at end of file From a3194f20df02bf684c51e47c57de03225fa54412 Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Tue, 28 Feb 2017 17:41:27 -0800 Subject: [PATCH 07/11] CB-12519 Updated version and RELEASENOTES.md for release 1.3.2 --- RELEASENOTES.md | 6 + package.json | 2 +- plugin.xml | 281 +++++++++++++++++++---------------------------- tests/plugin.xml | 34 +----- 4 files changed, 122 insertions(+), 201 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index ed9b83f..d94f53d 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -20,6 +20,12 @@ --> # Release Notes +### 1.3.2 (Feb 28, 2017) +* [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-11838](https://issues.apache.org/jira/browse/CB-11838) **iOS:** Unregister callback function at the right timing. +* [CB-12230](https://issues.apache.org/jira/browse/CB-12230) Removed **Windows 8.1** build badges + ### 1.3.1 (Dec 07, 2016) * [CB-12224](https://issues.apache.org/jira/browse/CB-12224) Updated version and RELEASENOTES.md for release 1.3.1 * [CB-11230](https://issues.apache.org/jira/browse/CB-11230) [CB-11505](https://issues.apache.org/jira/browse/CB-11505) iOS: Add compatibility with IPv6 diff --git a/package.json b/package.json index a87f6cd..e74b359 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-network-information", - "version": "1.3.2-dev", + "version": "1.3.2", "description": "Cordova Network Information Plugin", "types": "./types/index.d.ts", "cordova": { diff --git a/plugin.xml b/plugin.xml index 7d97832..b936b0e 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,174 +1,113 @@ - - - - - - Network Information - Cordova Network Information Plugin - Apache 2.0 - cordova,network,information - https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git - https://issues.apache.org/jira/browse/CB/component/12320640 - - - - + + + Network Information + Cordova Network Information Plugin + Apache 2.0 + cordova,network,information + https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git + https://issues.apache.org/jira/browse/CB/component/12320640 + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/tests/plugin.xml b/tests/plugin.xml index 9cf4b49..30bd393 100644 --- a/tests/plugin.xml +++ b/tests/plugin.xml @@ -1,30 +1,6 @@ - - - - - Cordova Network Information Plugin Tests - Apache 2.0 - - - + + + Cordova Network Information Plugin Tests + Apache 2.0 + From 9374041557ea643c72b6bfb145859b2be73eeeaf Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Tue, 28 Feb 2017 17:56:01 -0800 Subject: [PATCH 08/11] Set VERSION to 1.3.3-dev (via coho) --- package.json | 2 +- plugin.xml | 281 ++++++++++++++++++++++++++++------------------- tests/plugin.xml | 34 +++++- 3 files changed, 201 insertions(+), 116 deletions(-) diff --git a/package.json b/package.json index e74b359..c2daff0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-network-information", - "version": "1.3.2", + "version": "1.3.3-dev", "description": "Cordova Network Information Plugin", "types": "./types/index.d.ts", "cordova": { diff --git a/plugin.xml b/plugin.xml index b936b0e..b8d3c63 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,113 +1,174 @@ - - - Network Information - Cordova Network Information Plugin - Apache 2.0 - cordova,network,information - https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git - https://issues.apache.org/jira/browse/CB/component/12320640 - - - - - - - - - - + + + + + + Network Information + Cordova Network Information Plugin + Apache 2.0 + cordova,network,information + https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git + https://issues.apache.org/jira/browse/CB/component/12320640 + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/plugin.xml b/tests/plugin.xml index 30bd393..49f4ad0 100644 --- a/tests/plugin.xml +++ b/tests/plugin.xml @@ -1,6 +1,30 @@ - - - Cordova Network Information Plugin Tests - Apache 2.0 - + + + + + Cordova Network Information Plugin Tests + Apache 2.0 + + + From 4ae38aa1822394a1c42c61a56010187b3b0a85d7 Mon Sep 17 00:00:00 2001 From: Steve Gill Date: Fri, 21 Apr 2017 19:24:12 -0700 Subject: [PATCH 09/11] CB-12685: added package.json to tests folder --- tests/package.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/package.json diff --git a/tests/package.json b/tests/package.json new file mode 100644 index 0000000..59b1005 --- /dev/null +++ b/tests/package.json @@ -0,0 +1,14 @@ +{ + "name": "cordova-plugin-network-information-tests", + "version": "1.3.3-dev", + "description": "", + "cordova": { + "id": "cordova-plugin-network-information-tests", + "platforms": [] + }, + "keywords": [ + "ecosystem:cordova" + ], + "author": "", + "license": "Apache 2.0" +} From e288eadd208afc8b1d2c6b733fc003e61c815d76 Mon Sep 17 00:00:00 2001 From: Alexander Sorokin Date: Wed, 26 Apr 2017 16:22:10 +0300 Subject: [PATCH 10/11] CB-12622 Add Android 6.0 build badge to README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c27e409..d112a10 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ description: Get information about wireless connectivity. # under the License. --> -|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-4.4,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-network-information.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-network-information)| +|Android 4.4|Android 5.1|Android 6.0|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-4.4,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-6.0,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-6.0,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-9.3,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios-10.0,PLUGIN=cordova-plugin-network-information/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-network-information/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-network-information.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-network-information)| # cordova-plugin-network-information From 710b53d24b360597646da8d353e1031fbfe7b4b9 Mon Sep 17 00:00:00 2001 From: filmaj Date: Thu, 27 Apr 2017 13:04:08 -0700 Subject: [PATCH 11/11] CB-12736 Updated version and RELEASENOTES.md for release 1.3.3 (via coho) --- RELEASENOTES.md | 4 ++++ package.json | 2 +- plugin.xml | 2 +- tests/plugin.xml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/RELEASENOTES.md b/RELEASENOTES.md index d94f53d..a974304 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -20,6 +20,10 @@ --> # Release Notes +### 1.3.3 (Apr 27, 2017) +* [CB-12622](https://issues.apache.org/jira/browse/CB-12622) Add **Android 6.0** build badge to `README` +* [CB-12685](https://issues.apache.org/jira/browse/CB-12685) added `package.json` to tests folder + ### 1.3.2 (Feb 28, 2017) * [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** diff --git a/package.json b/package.json index c2daff0..541afcc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-network-information", - "version": "1.3.3-dev", + "version": "1.3.3", "description": "Cordova Network Information Plugin", "types": "./types/index.d.ts", "cordova": { diff --git a/plugin.xml b/plugin.xml index b8d3c63..8b56f47 100644 --- a/plugin.xml +++ b/plugin.xml @@ -21,7 +21,7 @@ + version="1.3.3"> Network Information Cordova Network Information Plugin diff --git a/tests/plugin.xml b/tests/plugin.xml index 49f4ad0..b847895 100644 --- a/tests/plugin.xml +++ b/tests/plugin.xml @@ -21,7 +21,7 @@ + version="1.3.3"> Cordova Network Information Plugin Tests Apache 2.0