-
Notifications
You must be signed in to change notification settings - Fork 17
/
plugin.xml
39 lines (29 loc) · 1.46 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
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="net.texh.cordovapluginstepcounter"
version="0.0.1">
<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" />
</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" />
</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/"/>
</platform>
</plugin>