You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2016/09/09 23:22:01 UTC

[01/11] cordova-plugin-device-motion git commit: Update README.md

Repository: cordova-plugin-device-motion
Updated Branches:
  refs/heads/1.2.x 6e6cb6ad3 -> bf41b516c


Update README.md

Changed 'period' to 'frequency' in options.

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/d7e97335
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/d7e97335
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/d7e97335

Branch: refs/heads/1.2.x
Commit: d7e97335b12883ef7f741c110961b70fca61fc4b
Parents: 57d2e17
Author: Raymond Camden <ra...@gmail.com>
Authored: Tue Mar 22 10:10:28 2016 -0500
Committer: Raymond Camden <ra...@gmail.com>
Committed: Tue Mar 22 10:10:28 2016 -0500

----------------------------------------------------------------------
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/d7e97335/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 1b6c9bf..7dc7044 100644
--- a/README.md
+++ b/README.md
@@ -120,7 +120,7 @@ accelerometer.
                                                            accelerometerOptions);
 
 - __accelerometerOptions__: An object with the following optional keys:
-  - __period__: requested period of calls to accelerometerSuccess with acceleration data in Milliseconds. _(Number)_ (Default: 10000)
+  - __frequency__: requested frequency of calls to accelerometerSuccess with acceleration data in Milliseconds. _(Number)_ (Default: 10000)
 
 
 ###  Example


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[08/11] cordova-plugin-device-motion git commit: CB-11531 Restart Accelerometer on CyanogenMod 13

Posted by st...@apache.org.
CB-11531 Restart Accelerometer on CyanogenMod 13

Reset sensor accuracy after setting it to SENSOR_STATUS_UNRELIABLE in stop


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/293dcb92
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/293dcb92
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/293dcb92

Branch: refs/heads/1.2.x
Commit: 293dcb9220ac379a9e4cd7776d02969367df6dca
Parents: 57dfb5f
Author: daserge <v-...@microsoft.com>
Authored: Wed Jul 6 11:17:17 2016 +0300
Committer: daserge <v-...@microsoft.com>
Committed: Wed Jul 6 11:17:17 2016 +0300

----------------------------------------------------------------------
 src/android/AccelListener.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/293dcb92/src/android/AccelListener.java
----------------------------------------------------------------------
diff --git a/src/android/AccelListener.java b/src/android/AccelListener.java
index e36f0db..3932c0f 100755
--- a/src/android/AccelListener.java
+++ b/src/android/AccelListener.java
@@ -148,6 +148,9 @@ public class AccelListener extends CordovaPlugin implements SensorEventListener
 
         this.setStatus(AccelListener.STARTING);
 
+        // CB-11531: Reset accuracy to the default level
+        this.accuracy = SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM;
+
         // Get accelerometer from sensor manager
         List<Sensor> list = this.sensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[09/11] cordova-plugin-device-motion git commit: CB-11482 Fix unreliable tests on Android

Posted by st...@apache.org.
CB-11482 Fix unreliable tests on Android

 This closes #46


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/fe7b2139
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/fe7b2139
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/fe7b2139

Branch: refs/heads/1.2.x
Commit: fe7b2139966740af7852ca403dbdb9c724059f72
Parents: 293dcb9
Author: Vladimir Kotikov <ko...@gmail.com>
Authored: Thu Jul 7 11:08:42 2016 +0300
Committer: Steve Gill <st...@gmail.com>
Committed: Thu Aug 25 15:54:25 2016 -0700

----------------------------------------------------------------------
 src/android/AccelListener.java | 10 ++++++----
 tests/tests.js                 | 24 ++++++++++++++----------
 2 files changed, 20 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/fe7b2139/src/android/AccelListener.java
----------------------------------------------------------------------
diff --git a/src/android/AccelListener.java b/src/android/AccelListener.java
index 3932c0f..61856fb 100755
--- a/src/android/AccelListener.java
+++ b/src/android/AccelListener.java
@@ -148,9 +148,6 @@ public class AccelListener extends CordovaPlugin implements SensorEventListener
 
         this.setStatus(AccelListener.STARTING);
 
-        // CB-11531: Reset accuracy to the default level
-        this.accuracy = SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM;
-
         // Get accelerometer from sensor manager
         List<Sensor> list = this.sensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER);
 
@@ -159,6 +156,9 @@ public class AccelListener extends CordovaPlugin implements SensorEventListener
           this.mSensor = list.get(0);
           if (this.sensorManager.registerListener(this, this.mSensor, SensorManager.SENSOR_DELAY_UI)) {
               this.setStatus(AccelListener.STARTING);
+              // CB-11531: Mark accuracy as 'reliable' - this is complementary to
+              // setting it to 'unreliable' 'stop' method
+              this.accuracy = SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM;
           } else {
               this.setStatus(AccelListener.ERROR_FAILED_TO_START);
               this.fail(AccelListener.ERROR_FAILED_TO_START, "Device sensor returned an error.");
@@ -204,8 +204,10 @@ public class AccelListener extends CordovaPlugin implements SensorEventListener
      * Called two seconds after starting the listener.
      */
     private void timeout() {
-        if (this.status == AccelListener.STARTING) {
+        if (this.status == AccelListener.STARTING &&
+            this.accuracy >= SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM) {
             // call win with latest cached position
+            // but first check if cached position is reliable
             this.timestamp = System.currentTimeMillis();
             this.win();
         }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/fe7b2139/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index b782629..5deec41 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -123,8 +123,13 @@ exports.defineAutoTests = function () {
     describe("watchAcceleration", function() {
       var id;
 
-      afterEach(function() {
-          navigator.accelerometer.clearWatch(id);
+      afterEach(function(done) {
+          if (id) {
+            navigator.accelerometer.clearWatch(id);
+          }
+          // clearWatch implementation is async but doesn't accept a cllback
+          // so let's give it some time before starting next spec
+          setTimeout(done, 100);
       });
 
       it("accelerometer.spec.6 should exist", function() {
@@ -178,15 +183,11 @@ exports.defineAutoTests = function () {
             pending();
           }
           var veryRecently = (new Date()).getTime();
-          var ACCEPTABLE_PERCENT_RANGE = 95;
           // Need to check that dates returned are not vastly greater than a recent time stamp.
           // In case the timestamps returned are ridiculously high
           var reasonableTimeLimit = veryRecently + 5000; // 5 seconds from now
           var win = function(a) {
-            // Checking if the returned timestamp is atleast 95% of the veryRecently timestamp
-            // If it is greater than very recently (for eg: 125%) it is fine and we do not want
-            // a positive delta comparison in this assert
-            expect((a.timestamp * 100) / veryRecently).toBeGreaterThan(ACCEPTABLE_PERCENT_RANGE);
+            expect(a.timestamp).toBeGreaterThan(veryRecently);
             expect(a.timestamp).toBeLessThan(reasonableTimeLimit);
             done();
           };
@@ -291,6 +292,7 @@ exports.defineManualTests = function (contentEl, createActionButton) {
             document.getElementById('x').innerHTML = roundNumber(a.x);
             document.getElementById('y').innerHTML = roundNumber(a.y);
             document.getElementById('z').innerHTML = roundNumber(a.z);
+            document.getElementById('t').innerHTML = a.timestamp;
         };
 
         // Fail callback
@@ -322,6 +324,7 @@ exports.defineManualTests = function (contentEl, createActionButton) {
             document.getElementById('x').innerHTML = roundNumber(a.x);
             document.getElementById('y').innerHTML = roundNumber(a.y);
             document.getElementById('z').innerHTML = roundNumber(a.z);
+            document.getElementById('t').innerHTML = a.timestamp;
             console.log("getAccel success callback");
         };
 
@@ -348,9 +351,10 @@ exports.defineManualTests = function (contentEl, createActionButton) {
     contentEl.innerHTML = '<div id="info">' +
         'Status: <span id="accel_status">Stopped</span>' +
         '<table width="100%">' +
-        '<tr><td width="20%">X:</td><td id="x"> </td></tr>' +
-        '<tr><td width="20%">Y:</td><td id="y"> </td></tr>' +
-        '<tr><td width="20%">Z:</td><td id="z"> </td></tr>' +
+        '<tr><td width="30%">X:</td><td id="x"> </td></tr>' +
+        '<tr><td width="30%">Y:</td><td id="y"> </td></tr>' +
+        '<tr><td width="30%">Z:</td><td id="z"> </td></tr>' +
+        '<tr><td width="30%">Timestamp:</td><td id="t"> </td></tr>' +
         '</table></div>' +
         accelerometer_tests;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[06/11] cordova-plugin-device-motion git commit: Add pull request template.

Posted by st...@apache.org.
Add pull request template.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/8aff422e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/8aff422e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/8aff422e

Branch: refs/heads/1.2.x
Commit: 8aff422efe502f43d7aae5529d848891938a79c1
Parents: 7a6259d
Author: Nikhil Khandelwal <ni...@microsoft.com>
Authored: Mon May 23 13:53:59 2016 -0700
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Mon May 23 13:53:59 2016 -0700

----------------------------------------------------------------------
 .github/PULL_REQUEST_TEMPLATE.md | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/8aff422e/.github/PULL_REQUEST_TEMPLATE.md
----------------------------------------------------------------------
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..4bd6da9
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,23 @@
+<!--
+Please make sure the checklist boxes are all checked before submitting the PR. The checklist
+is intended as a quick reference, for complete details please see our Contributor Guidelines:
+
+http://cordova.apache.org/contribute/contribute_guidelines.html
+
+Thanks!
+-->
+
+### Platforms affected
+
+
+### What does this PR do?
+
+
+### What testing has been done on this change?
+
+
+### 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.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[07/11] cordova-plugin-device-motion git commit: Add badges for paramedic builds on Jenkins

Posted by st...@apache.org.
Add badges for paramedic builds on Jenkins


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/57dfb5f9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/57dfb5f9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/57dfb5f9

Branch: refs/heads/1.2.x
Commit: 57dfb5f9012c59a8f7f00ffb1c621073196b6a3b
Parents: 8aff422
Author: Vladimir Kotikov <ko...@gmail.com>
Authored: Fri Jun 10 11:47:40 2016 +0300
Committer: Vladimir Kotikov <ko...@gmail.com>
Committed: Fri Jun 10 11:47:40 2016 +0300

----------------------------------------------------------------------
 README.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/57dfb5f9/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index c119126..2d82667 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,9 @@ description: Access accelerometer data.
 #         under the License.
 -->
 
-[![Build Status](https://travis-ci.org/apache/cordova-plugin-device-motion.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-device-motion)
+|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-device-motion)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=android,PLUGIN=cordova-plugin-device-motion/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-device-motion)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=ios,PLUGIN=cordova-plugin-device-motion/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-device-motion)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-store,PLUGIN=cordova-plugin-device-motion/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-device-motion)](http://cordo
 va-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-8.1-phone,PLUGIN=cordova-plugin-device-motion/)|[![Build Status](http://cordova-ci.cloudapp.net:8080/buildStatus/icon?job=cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-device-motion)](http://cordova-ci.cloudapp.net:8080/job/cordova-periodic-build/PLATFORM=windows-10-store,PLUGIN=cordova-plugin-device-motion/)|[![Build Status](https://travis-ci.org/apache/cordova-plugin-device-motion.svg?branch=master)](https://travis-ci.org/apache/cordova-plugin-device-motion)|
 
 # cordova-plugin-device-motion
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[03/11] cordova-plugin-device-motion git commit: Merge branch 'patch-1' of https://github.com/cfjedimaster/cordova-plugin-device-motion

Posted by st...@apache.org.
Merge branch 'patch-1' of https://github.com/cfjedimaster/cordova-plugin-device-motion


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/95b16f27
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/95b16f27
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/95b16f27

Branch: refs/heads/1.2.x
Commit: 95b16f27f56f14b99ebcee3c205981945e4c84e0
Parents: 59a7f5e d7e9733
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Apr 22 14:01:57 2016 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Fri Apr 22 14:01:57 2016 -0700

----------------------------------------------------------------------
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[11/11] cordova-plugin-device-motion git commit: CB-11832 Updated version and RELEASENOTES.md for release 1.2.2

Posted by st...@apache.org.
CB-11832 Updated version and RELEASENOTES.md for release 1.2.2


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/bf41b516
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/bf41b516
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/bf41b516

Branch: refs/heads/1.2.x
Commit: bf41b516cb85c44b69fba658c4abca423c7c6469
Parents: 76b1319
Author: Steve Gill <st...@gmail.com>
Authored: Thu Sep 8 23:38:54 2016 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Thu Sep 8 23:38:54 2016 -0700

----------------------------------------------------------------------
 RELEASENOTES.md  | 11 ++++++++++-
 package.json     |  2 +-
 plugin.xml       |  2 +-
 tests/plugin.xml |  2 +-
 4 files changed, 13 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/bf41b516/RELEASENOTES.md
----------------------------------------------------------------------
diff --git a/RELEASENOTES.md b/RELEASENOTES.md
index 34dc077..9c20672 100644
--- a/RELEASENOTES.md
+++ b/RELEASENOTES.md
@@ -20,8 +20,17 @@
 -->
 # Release Notes
 
+### 1.2.2 (Sep 08, 2016)
+* [CB-11795](https://issues.apache.org/jira/browse/CB-11795) Add 'protective' entry to cordovaDependencies
+* [CB-11482](https://issues.apache.org/jira/browse/CB-11482) Fix unreliable tests on **Android**
+* [CB-11531](https://issues.apache.org/jira/browse/CB-11531) Restart `Accelerometer` on `CyanogenMod 13`
+* Add badges for paramedic builds on Jenkins
+* Add pull request template.
+* [CB-11188](https://issues.apache.org/jira/browse/CB-11188) `cordova-plugin-device-motion-tests` are failing in CI
+* [CB-10996](https://issues.apache.org/jira/browse/CB-10996) Adding front matter to README.md
+
 ### 1.2.1 (Apr 15, 2016)
-* CB-10636 Add `JSHint` for plugins
+* [CB-10636](https://issues.apache.org/jira/browse/CB-10636) Add `JSHint` for plugins
 
 ### 1.2.0 (Nov 18, 2015)
 * [CB-10035](https://issues.apache.org/jira/browse/CB-10035) Updated `RELEASENOTES` to be newest to oldest

http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/bf41b516/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 358c60c..7fbf01f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cordova-plugin-device-motion",
-  "version": "1.2.2-dev",
+  "version": "1.2.2",
   "description": "Cordova Device Motion Plugin",
   "cordova": {
     "id": "cordova-plugin-device-motion",

http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/bf41b516/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 9e46d75..1f3dfc3 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -20,7 +20,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
            id="cordova-plugin-device-motion"
-      version="1.2.2-dev">
+      version="1.2.2">
 	
     <name>Device Motion</name>
     <description>Cordova Device Motion Plugin</description>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/bf41b516/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index d93e5ff..cce2b45 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -20,7 +20,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     id="cordova-plugin-device-motion-tests"
-    version="1.2.2-dev">
+    version="1.2.2">
     <name>Cordova Device Motion 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


[04/11] cordova-plugin-device-motion git commit: CB-10996 Adding front matter to README.md

Posted by st...@apache.org.
CB-10996 Adding front matter to README.md


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/ab56547d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/ab56547d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/ab56547d

Branch: refs/heads/1.2.x
Commit: ab56547d368a9dbeccf088fffb1fdebbd65b3abd
Parents: 95b16f2
Author: Dmitry Blotsky <dm...@gmail.com>
Authored: Fri Apr 22 19:35:50 2016 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Fri Apr 22 19:35:50 2016 -0700

----------------------------------------------------------------------
 README.md | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/ab56547d/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 7dc7044..c119126 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,7 @@
+---
+title: Device Motion
+description: Access accelerometer data.
+---
 <!---
 # license: Licensed to the Apache Software Foundation (ASF) under one
 #         or more contributor license agreements.  See the NOTICE file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[05/11] cordova-plugin-device-motion git commit: CB-11188: cordova-plugin-device-motion-tests are failing in CI

Posted by st...@apache.org.
CB-11188: cordova-plugin-device-motion-tests are failing in CI

 This closes #43


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/7a6259db
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/7a6259db
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/7a6259db

Branch: refs/heads/1.2.x
Commit: 7a6259db32c7d3cbfc9f78d193bba07fdcffc78a
Parents: ab56547
Author: Sarangan Rajamanickam <sa...@microsoft.com>
Authored: Thu May 5 11:11:05 2016 -0700
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Thu May 5 13:11:54 2016 -0700

----------------------------------------------------------------------
 tests/tests.js | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/7a6259db/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 73587e7..b782629 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -24,8 +24,8 @@
 
 exports.defineAutoTests = function () {
     var isWindows = (cordova.platformId === "windows") || (cordova.platformId === "windows8"),
-     // Checking existence of accelerometer for windows platform 
-     // Assumed that accelerometer always exists on other platforms. Extend 
+     // Checking existence of accelerometer for windows platform
+     // Assumed that accelerometer always exists on other platforms. Extend
      // condition to support accelerometer check on other platforms
      isAccelExist = isWindows ? Windows.Devices.Sensors.Accelerometer.getDefault() !== null : true;
 
@@ -178,11 +178,15 @@ exports.defineAutoTests = function () {
             pending();
           }
           var veryRecently = (new Date()).getTime();
+          var ACCEPTABLE_PERCENT_RANGE = 95;
           // Need to check that dates returned are not vastly greater than a recent time stamp.
           // In case the timestamps returned are ridiculously high
           var reasonableTimeLimit = veryRecently + 5000; // 5 seconds from now
           var win = function(a) {
-            expect(a.timestamp).toBeGreaterThan(veryRecently);
+            // Checking if the returned timestamp is atleast 95% of the veryRecently timestamp
+            // If it is greater than very recently (for eg: 125%) it is fine and we do not want
+            // a positive delta comparison in this assert
+            expect((a.timestamp * 100) / veryRecently).toBeGreaterThan(ACCEPTABLE_PERCENT_RANGE);
             expect(a.timestamp).toBeLessThan(reasonableTimeLimit);
             done();
           };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[10/11] cordova-plugin-device-motion git commit: CB-11795 Add 'protective' entry to cordovaDependencies

Posted by st...@apache.org.
CB-11795 Add 'protective' entry to cordovaDependencies

The entry is required to protect end-users from fetching edge versions of the plugin by incompatible version of cordova. This also assumes that we will not introduce any regressions in compatibility w/ cordova in minor and patch releases. On every major release we will need to add similar entry with _next_ major version.

 This closes #47


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/76b13194
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/76b13194
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/76b13194

Branch: refs/heads/1.2.x
Commit: 76b13194e00ad6ff99215db1d0cc3b7d2806ca57
Parents: fe7b213
Author: Vladimir Kotikov <ko...@gmail.com>
Authored: Wed Aug 31 16:34:34 2016 +0300
Committer: sgrebnov <se...@gmail.com>
Committed: Thu Sep 8 11:48:18 2016 +0300

----------------------------------------------------------------------
 package.json | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/76b13194/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index bb6767d..358c60c 100644
--- a/package.json
+++ b/package.json
@@ -47,6 +47,13 @@
   },
   "author": "Apache Software Foundation",
   "license": "Apache-2.0",
+  "engines": {
+    "cordovaDependencies": {
+      "2.0.0": {
+        "cordova": ">100"
+      }
+    }
+  },
   "devDependencies": {
     "jshint": "^2.6.0"
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[02/11] cordova-plugin-device-motion git commit: CB-11091 Incremented plugin version.

Posted by st...@apache.org.
CB-11091 Incremented plugin version.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/59a7f5e2
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/59a7f5e2
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/59a7f5e2

Branch: refs/heads/1.2.x
Commit: 59a7f5e223a766c4c2387f7142f63435dd114c4c
Parents: 6e6cb6a
Author: Steve Gill <st...@gmail.com>
Authored: Fri Apr 15 13:45:27 2016 -0700
Committer: Steve Gill <st...@gmail.com>
Committed: Fri Apr 15 13:45:27 2016 -0700

----------------------------------------------------------------------
 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-device-motion/blob/59a7f5e2/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index ba76614..bb6767d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "cordova-plugin-device-motion",
-  "version": "1.2.1",
+  "version": "1.2.2-dev",
   "description": "Cordova Device Motion Plugin",
   "cordova": {
     "id": "cordova-plugin-device-motion",

http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/59a7f5e2/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 4c54ddd..9e46d75 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -20,7 +20,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
            id="cordova-plugin-device-motion"
-      version="1.2.1">
+      version="1.2.2-dev">
 	
     <name>Device Motion</name>
     <description>Cordova Device Motion Plugin</description>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/59a7f5e2/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
index 4cbe4d2..d93e5ff 100644
--- a/tests/plugin.xml
+++ b/tests/plugin.xml
@@ -20,7 +20,7 @@
 
 <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
     id="cordova-plugin-device-motion-tests"
-    version="1.2.1">
+    version="1.2.2-dev">
     <name>Cordova Device Motion 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