forked from github/cordova-android
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android into CordovaWebView
This commit is contained in:
commit
fd12f57f10
12
bin/create
12
bin/create
@ -38,11 +38,13 @@ fi
|
|||||||
# update the cordova-android framework for the desired target
|
# update the cordova-android framework for the desired target
|
||||||
android update project --target $TARGET --path ./framework
|
android update project --target $TARGET --path ./framework
|
||||||
|
|
||||||
# Use curl to get the jar (TODO: Support Apache Mirrors)
|
if [ ! -e ./framework/libs/commons-codec-1.6.jar ]; then
|
||||||
curl -OL http://mirror.symnds.com/software/Apache//commons/codec/binaries/commons-codec-1.6-bin.zip
|
# Use curl to get the jar (TODO: Support Apache Mirrors)
|
||||||
unzip commons-codec-1.6-bin.zip
|
curl -OL http://mirror.symnds.com/software/Apache//commons/codec/binaries/commons-codec-1.6-bin.zip
|
||||||
mkdir ./framework/libs
|
unzip commons-codec-1.6-bin.zip
|
||||||
cp commons-codec-1.6/commons-codec-1.6.jar ./framework/libs/
|
mkdir -p ./framework/libs
|
||||||
|
cp commons-codec-1.6/commons-codec-1.6.jar ./framework/libs/
|
||||||
|
fi
|
||||||
|
|
||||||
# compile cordova.js and cordova.jar
|
# compile cordova.js and cordova.jar
|
||||||
cd ./framework && ant jar && cd ../
|
cd ./framework && ant jar && cd ../
|
||||||
|
@ -222,7 +222,7 @@ public class AccelListener extends Plugin implements SensorEventListener {
|
|||||||
if (this.accuracy >= SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM) {
|
if (this.accuracy >= SensorManager.SENSOR_STATUS_ACCURACY_MEDIUM) {
|
||||||
|
|
||||||
// Save time that event was received
|
// Save time that event was received
|
||||||
this.timestamp = System.currentTimeMillis();
|
this.timestamp = System.nanoTime();
|
||||||
this.x = event.values[0];
|
this.x = event.values[0];
|
||||||
this.y = event.values[1];
|
this.y = event.values[1];
|
||||||
this.z = event.values[2];
|
this.z = event.values[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user