cordova-plugin-pedometer
Version:
Cordova / PhoneGap Plugin for the Core Motion Pedometer to fetch pedestrian-related data, such as step counts and other information about the distance travelled.
35 lines (34 loc) • 1.6 kB
text/xml
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-pedometer" version="0.4.1">
<name>Core Motion Pedometer</name>
<author>Lee Crossley (http://ilee.co.uk/)</author>
<description>Cordova / PhoneGap Plugin for the Core Motion Pedometer to fetch pedestrian-related data,
such as step counts and other information about the distance travelled.</description>
<keywords>cordova, core motion, pedometer, steps, distance, pedestrian</keywords>
<license>MIT</license>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/pedometer.js" name="Pedometer">
<clobbers target="pedometer" />
</js-module>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="Pedometer">
<param name="ios-package" value="Pedometer" />
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/Pedometer.h" />
<source-file src="src/ios/Pedometer.m" />
<framework src="CoreMotion.framework" />
</platform>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Pedometer">
<param name="android-package" value="org.apache.cordova.pedometer.PedoListener" />
</feature>
</config-file>
<source-file src="src/android/PedoListener.java" target-dir="src/org/apache/cordova/pedometer" />
</platform>
</plugin>