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 2013/05/13 22:53:28 UTC
git commit: updated plugin.xml to use feature
Updated Branches:
refs/heads/master 3171d388f -> 0948827b4
updated plugin.xml to use feature
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/0948827b
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/0948827b
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/0948827b
Branch: refs/heads/master
Commit: 0948827b44ecf3e3d7a26babf00dec40af2bf427
Parents: 3171d38
Author: Steven Gill <st...@gmail.com>
Authored: Mon May 13 13:53:22 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Mon May 13 13:53:22 2013 -0700
----------------------------------------------------------------------
plugin.xml | 24 ++++++++++++++----------
1 files changed, 14 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/0948827b/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index f239da6..515a48e 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -5,7 +5,7 @@ xmlns:android="http://schemas.android.com/apk/res/android"
id="org.apache.cordova.core.AccelListener"
version="0.1.0">
- <name>Device Motion</name>
+ <name>Device Motion</name>
<js-module src="www/Acceleration.js" name="Acceleration">
<clobbers target="Acceleration" />
@@ -15,14 +15,16 @@ id="org.apache.cordova.core.AccelListener"
<clobbers target="navigator.accelerometer" />
</js-module>
- <!-- android -->
- <platform name="android">
+ <!-- android -->
+ <platform name="android">
- <config-file target="res/xml/config.xml" parent="plugins">
- <plugin name="Accelerometer" value="org.apache.cordova.core.AccelListener"/>
- </config-file>
+ <config-file target="res/xml/config.xml" parent="widget">
+ <feature name="Accelerometer">
+ <param name="android-package" value="org.apache.cordova.core.AccelListener"/>
+ </feature>
+ </config-file>
- <source-file src="src/android/AccelListener.java" target-dir="src/org/apache/cordova/core" />
+ <source-file src="src/android/AccelListener.java" target-dir="src/org/apache/cordova/core" />
</platform>
@@ -30,11 +32,13 @@ id="org.apache.cordova.core.AccelListener"
<platform name="ios">
<config-file target="config.xml" parent="plugins">
- <plugin name="Accelerometer" value="CDVAccelerometer"/>
+ <feature name="Accelerometer">
+ <param name="ios-package" value="CDVAccelerometer"/>
+ </feature>
</config-file>
- <header-file src="src/ios/CDVAccelerometer.h" />
- <source-file src="src/ios/CDVAccelerometer.m" />
+ <header-file src="src/ios/CDVAccelerometer.h" />
+ <source-file src="src/ios/CDVAccelerometer.m" />
</platform>