forked from lnickers2004/cordova-plugin-stepcounter
-
Notifications
You must be signed in to change notification settings - Fork 5
/
plugin.xml
51 lines (40 loc) · 2.11 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="net.texh.cordovapluginstepcounter"
version="0.0.6">
<name>Cordova Step Counter Plugin</name>
<engines>
<engine name="cordova" version=">=3.4.0"/>
</engines>
<asset src="www/stepcounter.js" target="js/stepcounter.js"/>
<js-module src="www/stepcounter.js" name="stepcounter">
<clobbers target="stepcounter" />
</js-module>
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="net.texh.cordovapluginstepcounter.StepCounterService" android:enabled="true" />
<!--
* This class is triggered upon reboot of the device. It needs to re-register
* the STEP_COUNTER with the StepCounterService
-->
<receiver android:name="net.texh.cordovapluginstepcounter.StepCounterBootReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-feature android:name="android.hardware.sensor.stepcounter" />
<uses-feature android:name="android.hardware.sensor.stepdetector" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="CordovaStepCounter">
<param name="android-package" value="net.texh.cordovapluginstepcounter.CordovaStepCounter"/>
</feature>
</config-file>
<source-file src="src/android/net/texh/cordovapluginstepcounter/CordovaStepCounter.java" target-dir="src/net/texh/cordovapluginstepcounter/"/>
<source-file src="src/android/net/texh/cordovapluginstepcounter/StepCounterService.java" target-dir="src/net/texh/cordovapluginstepcounter/"/>
<source-file src="src/android/net/texh/cordovapluginstepcounter/StepCounterBootReceiver.java" target-dir="src/net/texh/cordovapluginstepcounter/"/>
</platform>
</plugin>