You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2016/12/14 20:29:16 UTC
[1/6] cordova-plugin-battery-status git commit: CB-12224 Incremented
plugin version.
Repository: cordova-plugin-battery-status
Updated Branches:
refs/heads/1.2.x 3cbba5383 -> 8325e6c79
CB-12224 Incremented plugin version.
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/6c2a4fa9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/6c2a4fa9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/6c2a4fa9
Branch: refs/heads/1.2.x
Commit: 6c2a4fa97dd4c005e71f5892aea28b38dbe1a5b5
Parents: 5918928
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Dec 7 16:55:06 2016 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Dec 7 16:55:06 2016 -0800
----------------------------------------------------------------------
package.json | 2 +-
plugin.xml | 2 +-
tests/plugin.xml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/6c2a4fa9/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 839c086..2a50a0e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-battery-status",
- "version": "1.2.1",
+ "version": "1.2.2-dev",
"description": "Cordova Battery Plugin",
"cordova": {
"id": "cordova-plugin-battery-status",
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/6c2a4fa9/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 2b122e6..0fbc72c 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -20,7 +20,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-battery-status"
- version="1.2.1">
+ version="1.2.2-dev">
<name>Battery</name>
<description>Cordova Battery Plugin</description>
<license>Apache 2.0</license>
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/6c2a4fa9/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index 5cbd9da..5603b6c 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -22,7 +22,7 @@
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-battery-status-tests"
- version="1.2.1">
+ version="1.2.2-dev">
<name>Cordova Battery Plugin Tests</name>
<license>Apache 2.0</license>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[5/6] cordova-plugin-battery-status git commit: CB-12237 Updated
version and RELEASENOTES.md for release 1.2.2
Posted by sh...@apache.org.
CB-12237 Updated version and RELEASENOTES.md for release 1.2.2
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/ee238871
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/ee238871
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/ee238871
Branch: refs/heads/1.2.x
Commit: ee2388710d2c2bffe1e0dc1491c9f7c29b90a23b
Parents: 1d82186
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Dec 14 12:21:39 2016 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Dec 14 12:21:39 2016 -0800
----------------------------------------------------------------------
RELEASENOTES.md | 6 ++++++
package.json | 2 +-
plugin.xml | 2 +-
tests/plugin.xml | 2 +-
4 files changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/ee238871/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 7ab08ef..5cb7886 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -21,6 +21,12 @@
# Release Notes
+### 1.2.2 (Dec 12, 2016)
+* [CB-12227](https://issues.apache.org/jira/browse/CB-12227) (windows) Fixed Browserify error
+* [CB-12236](https://issues.apache.org/jira/browse/CB-12236) - Fix RELEASENOTES.md for cordova-plugin-battery-status
+* [CB-12230](https://issues.apache.org/jira/browse/CB-12230) Removed Windows 8.1 build badges
+* [CB-12224](https://issues.apache.org/jira/browse/CB-12224) Incremented plugin version.
+
### 1.2.1 (Dec 07, 2016)
* [CB-12224](https://issues.apache.org/jira/browse/CB-12224) Updated version and RELEASENOTES.md for release 1.2.1
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/ee238871/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 2a50a0e..971ad09 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-battery-status",
- "version": "1.2.2-dev",
+ "version": "1.2.2",
"description": "Cordova Battery Plugin",
"cordova": {
"id": "cordova-plugin-battery-status",
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/ee238871/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 0fbc72c..7134cde 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -20,7 +20,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-battery-status"
- version="1.2.2-dev">
+ version="1.2.2">
<name>Battery</name>
<description>Cordova Battery Plugin</description>
<license>Apache 2.0</license>
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/ee238871/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index 5603b6c..a20dc93 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -22,7 +22,7 @@
xmlns:rim="http://www.blackberry.com/ns/widgets"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-battery-status-tests"
- version="1.2.2-dev">
+ version="1.2.2">
<name>Cordova Battery Plugin Tests</name>
<license>Apache 2.0</license>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[6/6] cordova-plugin-battery-status git commit: Merge branch 'master'
into 1.2.x
Posted by sh...@apache.org.
Merge branch 'master' into 1.2.x
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/8325e6c7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/8325e6c7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/8325e6c7
Branch: refs/heads/1.2.x
Commit: 8325e6c79bd8e7f975d2b96f8cc2ee068bd9c059
Parents: 3cbba53 ee23887
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed Dec 14 12:26:53 2016 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed Dec 14 12:26:53 2016 -0800
----------------------------------------------------------------------
README.md | 6 +--
RELEASENOTES.md | 6 +++
package.json | 2 +-
plugin.xml | 2 +-
src/windows/BatteryProxy.js | 104 +++++++++++++++++++--------------------
tests/plugin.xml | 2 +-
6 files changed, 64 insertions(+), 58 deletions(-)
----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[2/6] cordova-plugin-battery-status git commit: CB-12230 Removed
Windows 8.1 build badges
Posted by sh...@apache.org.
CB-12230 Removed Windows 8.1 build badges
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/3c7cfffa
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/3c7cfffa
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/3c7cfffa
Branch: refs/heads/1.2.x
Commit: 3c7cfffa552b65992910cc98188cbaffa17c66fa
Parents: 6c2a4fa
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Fri Dec 9 11:54:08 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Fri Dec 9 14:22:29 2016 +0300
----------------------------------------------------------------------
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/3c7cfffa/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 30ace99..c25ad73 100644
--- a/README.md
+++ b/README.md
@@ -21,9 +21,9 @@ description: Get events for device battery level.
# 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-battery-status)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-battery-status/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-battery-status)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-battery-status/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-battery-status)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-battery-status/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-battery-status)](http:
//cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-battery-status/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-battery-status)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-battery-status/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-battery-status.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-battery-status)|
+|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-battery-status)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-4.4,PLUGIN=cordova-plugin-battery-status/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-battery-status)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android-5.1,PLUGIN=cordova-plugin-battery-status/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-battery-status)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-battery-status/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-battery-status)](http://cor
dova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-battery-status/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-battery-status.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-battery-status)|
# cordova-plugin-battery-status
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[3/6] cordova-plugin-battery-status git commit: CB-12236 - Fix
RELEASENOTES.md for cordova-plugin-battery-status
Posted by sh...@apache.org.
CB-12236 - Fix RELEASENOTES.md for cordova-plugin-battery-status
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/76d388a4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/76d388a4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/76d388a4
Branch: refs/heads/1.2.x
Commit: 76d388a488ba7e344e593fb46f257be74289c246
Parents: 3c7cfff
Author: Shazron Abdullah <sh...@apache.org>
Authored: Sun Dec 11 12:04:17 2016 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Sun Dec 11 12:04:17 2016 -0800
----------------------------------------------------------------------
RELEASENOTES.md | 128 ++-------------------------------------------------
1 file changed, 3 insertions(+), 125 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/76d388a4/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 7f627cf..7ab08ef 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -20,136 +20,14 @@
-->
# Release Notes
+
### 1.2.1 (Dec 07, 2016)
+
+* [CB-12224](https://issues.apache.org/jira/browse/CB-12224) Updated version and RELEASENOTES.md for release 1.2.1
* [CB-8929](https://issues.apache.org/jira/browse/CB-8929) Fix failing tests on iOS
* [CB-8929](https://issues.apache.org/jira/browse/CB-8929) Use PowerManager to get battery state on Win 10
* [CB-11917](https://issues.apache.org/jira/browse/CB-11917) - Remove pull request template checklist item: "iCLA has been submitted\u2026"
* [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.2.0
-* [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies
-* Plugin uses Android Log class and not Cordova LOG class
-* Add badges for paramedic builds on Jenkins
-* Add pull request template.
-* [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.1.2
-* [CB-10720](https://issues.apache.org/jira/browse/CB-10720) Reorganizing and rewording docs.
-* [CB-10636](https://issues.apache.org/jira/browse/CB-10636) Add JSHint for plugins
-* chore: edit package.json license to match SPDX id
-* [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.1
-* 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.
-* 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.1.0
-* added missing license headers
-* [CB-7953](https://issues.apache.org/jira/browse/CB-7953) Add cordova-plugin-battery-status support for browser platform
-* [CB-9128](https://issues.apache.org/jira/browse/CB-9128) cordova-plugin-battery-status documentation translation: cordova-plugin-battery-status
-* attempt to fix npm 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-8808](https://issues.apache.org/jira/browse/CB-8808) Fixed tests to pass on Windows Phone 8.1
-* [CB-8831](https://issues.apache.org/jira/browse/CB-8831) Adds extra check for available API on Windows
-* [CB-8653](https://issues.apache.org/jira/browse/CB-8653) properly updated translated docs to use 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) updated translated docs to use new id
-* Use TRAVIS_BUILD_DIR, install paramedic by npm
-* Doc correction, Use the apostrophe to show possession
-* Fix travis+paramedic pathing issue
-* add Android+FireOS warning to tell devs that prolonged use will drain the battery.
-* [CB-7971](https://issues.apache.org/jira/browse/CB-7971) Add cordova-plugin-battery-status support for Windows Phone 8.1
-* [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 initWithWebView method
-* added apache/travis badge - will not show until INFRA updates the github integration
-* add travis.yml for CI with paramedic
-* [CB-8538](https://issues.apache.org/jira/browse/CB-8538) Added package.json file
-* [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.12
-* [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-battery-status documentation translation: cordova-plugin-battery-status
-* [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.11
-* CB-7249cordova-plugin-battery-status documentation translation: cordova-plugin-battery-status
-* cb6724re-add accidental removed of var keyword
-* [CB-6957](https://issues.apache.org/jira/browse/CB-6957) renamed folder to tests + added nested plugin.xml
-* [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.10
-* CB-7249cordova-plugin-battery-status documentation translation: cordova-plugin-battery-status
-* added documentation for manual tests
-* [CB-6957](https://issues.apache.org/jira/browse/CB-6957) Style improvements on Manual tests
-* [CB-6957](https://issues.apache.org/jira/browse/CB-6957) Ported Battery-status manual & automated
-* CB-6127lisa7cordova-plugin-consolecordova-plugin-battery-status documentation translation: cordova-plugin-battery-status
-* Minor doc corrections
-* [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
-* [CB-6794](https://issues.apache.org/jira/browse/CB-6794) Add license for CONTRIBUTING.md
-* documentation translation: cordova-plugin-battery-status
-* Lisa testing pulling in plugins for plugin: cordova-plugin-battery-status
-* Lisa testing pulling in plugins for plugin: cordova-plugin-battery-status
-* [CB-6721](https://issues.apache.org/jira/browse/CB-6721) ignore null values if previous value was not null
-* [CB-6721](https://issues.apache.org/jira/browse/CB-6721) Test for batterycritical change before batterylow change
-* Updated documentation. Added support for mozBattery.
-* [CB-5611](https://issues.apache.org/jira/browse/CB-5611) firefoxos: battery-status plugin
-* CB-4519, [CB-4520](https://issues.apache.org/jira/browse/CB-4520) low+critical weren't firing when level went from 21->19, and were when level went 19->20
-* [CB-6491](https://issues.apache.org/jira/browse/CB-6491) add CONTRIBUTING.md
-* Lisa testing pulling in plugins for plugin: cordova-plugin-battery-status
-* Lisa testing pulling in plugins for plugin: cordova-plugin-battery-status
-* [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
-* Add NOTICE file
-* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Incremented plugin version on dev branch.
-* Lisa testing pulling in plugins for plugin: cordova-plugin-battery-status
-* Lisa testing pulling in plugins for plugin: cordova-plugin-battery-status
-* [CB-5980](https://issues.apache.org/jira/browse/CB-5980) Updated version and RELEASENOTES.md for release 0.2.7
-* Add 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
-* Fix typo in docs H2 -> H3
-* [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) Remove Apache license comment from README.md.
-* Fix up Markdown license to actually be in comments.
-* [CB-5658](https://issues.apache.org/jira/browse/CB-5658) Add doc/index.md for Battery Status.
-* [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
-* Merged WP8 support for level, but #def'd it out so the same code runs on wp7. Updated docs to reflect WP8 support for battery level, and low+critical events
-* wp8 add support in level
-* add ubuntu platform
-* 1. Updated platform name amazon->amazon-fireos. Deleted src files. 2. 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:Updated version and RELEASENOTES.md for release 0.2.4
-* [CB-5128](https://issues.apache.org/jira/browse/CB-5128) added repo + issue tag to plugin.xml for battery status 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
-* [CB-4752](https://issues.apache.org/jira/browse/CB-4752) Incremented plugin version on dev branch.
-* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) renaming org.apache.cordova.core.battery-status to org.apache.cordova.battery-status
-* reverting on master
-* [CB-4889](https://issues.apache.org/jira/browse/CB-4889) renaming org.apache.cordova.core.battery-status to org.apache.cordova.battery-status
-* [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-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-battery-status to its own Java package.
-* updated namespace
-* updated name tag and readme
-* [plugin.xml] standardizing license + meta
-* [license] adding apache license file
-* updating plugin.xml with registry data
### 1.2.0 (Sep 08, 2016)
* [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[4/6] cordova-plugin-battery-status git commit: CB-12227 (windows)
Fixed Browserify error
Posted by sh...@apache.org.
CB-12227 (windows) Fixed Browserify error
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/commit/1d821862
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/tree/1d821862
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/diff/1d821862
Branch: refs/heads/1.2.x
Commit: 1d8218621645e45c25898d04f5e87d41e90b3e6a
Parents: 76d388a
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Mon Dec 12 14:29:54 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Mon Dec 12 14:39:30 2016 +0300
----------------------------------------------------------------------
src/windows/BatteryProxy.js | 104 +++++++++++++++++++--------------------
1 file changed, 52 insertions(+), 52 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status/blob/1d821862/src/windows/BatteryProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/BatteryProxy.js b/src/windows/BatteryProxy.js
index 9f5ac66..52a5c2c 100644
--- a/src/windows/BatteryProxy.js
+++ b/src/windows/BatteryProxy.js
@@ -57,69 +57,69 @@ if (PowerManager) {
};
require("cordova/exec/proxy").add("Battery", BatteryWin10);
- return;
-}
+} else {
+
+ var stopped;
-var stopped;
+ var handleResponse = function(successCb, errorCb, jsonResponse) {
+ var info = JSON.parse(jsonResponse);
-function handleResponse(successCb, errorCb, jsonResponse) {
- var info = JSON.parse(jsonResponse);
+ if (info.hasOwnProperty("exceptionMessage")) {
+ errorCb(info.exceptionMessage);
+ return;
+ }
- if (info.hasOwnProperty("exceptionMessage")) {
- errorCb(info.exceptionMessage);
- return;
- }
+ successCb(info, { keepCallback: true });
+ };
- successCb(info, { keepCallback: true });
-}
+ var Battery = {
+ start: function (win, fail, args, env) {
+ function getBatteryStatus(success, error) {
+ handleResponse(success, error, BatteryStatus.BatteryStatus.start());
+ }
-var Battery = {
- start: function (win, fail, args, env) {
- function getBatteryStatus(success, error) {
- handleResponse(success, error, BatteryStatus.BatteryStatus.start());
- }
+ function getBatteryStatusLevelChangeEvent(success, error) {
+ return BatteryStatus.BatteryStatus.getBatteryStatusChangeEvent().done(function (result) {
+ if (stopped) {
+ return;
+ }
- function getBatteryStatusLevelChangeEvent(success, error) {
- return BatteryStatus.BatteryStatus.getBatteryStatusChangeEvent().done(function (result) {
- if (stopped) {
- return;
- }
+ handleResponse(success, error, result);
- handleResponse(success, error, result);
+ setTimeout(function() { getBatteryStatusLevelChangeEvent(success, error); }, 0);
+ }, function(err) {
+ fail(err);
+ });
+ }
- setTimeout(function() { getBatteryStatusLevelChangeEvent(success, error); }, 0);
- }, function(err) {
- fail(err);
- });
- }
+ // Battery API supported on Phone devices only so in case of
+ // desktop/tablet the only one choice is to fail with appropriate message.
+ if (!WinJS.Utilities.isPhone) {
+ fail("The operation is not supported on Windows Desktop devices.");
+ return;
+ }
- // Battery API supported on Phone devices only so in case of
- // desktop/tablet the only one choice is to fail with appropriate message.
- if (!WinJS.Utilities.isPhone) {
- fail("The operation is not supported on Windows Desktop devices.");
- return;
- }
+ stopped = false;
+ try {
+ getBatteryStatus(win, fail);
+ getBatteryStatusLevelChangeEvent(win, fail);
+ } catch(e) {
+ fail(e);
+ }
+ },
- stopped = false;
- try {
- getBatteryStatus(win, fail);
- getBatteryStatusLevelChangeEvent(win, fail);
- } catch(e) {
- fail(e);
- }
- },
+ stop: function () {
+ // Battery API supported on Phone devices only so in case of
+ // desktop/tablet device we don't need for any actions.
+ if (!WinJS.Utilities.isPhone) {
+ return;
+ }
- stop: function () {
- // Battery API supported on Phone devices only so in case of
- // desktop/tablet device we don't need for any actions.
- if (!WinJS.Utilities.isPhone) {
- return;
+ stopped = true;
+ BatteryStatus.BatteryStatus.stop();
}
+ };
- stopped = true;
- BatteryStatus.BatteryStatus.stop();
- }
-};
-
-require("cordova/exec/proxy").add("Battery", Battery);
+ require("cordova/exec/proxy").add("Battery", Battery);
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org