forked from achubutkin/cordova-plugin-stepper
-
Notifications
You must be signed in to change notification settings - Fork 4
/
plugin.xml
79 lines (79 loc) · 4.96 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version='1.0' encoding='UTF-8'?>
<plugin id="@felicienfrancois/cordova-plugin-stepper"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
version="1.5.2">
<name>Stepper</name>
<author>Felicien Francois</author>
<description>Lightweight pedometer Cordova/Phonegap plugin for Android using the hardware step sensor, with notifications.</description>
<keywords>cordova, core motion, pedometer, steps, distance, pedestrian</keywords>
<license>MIT</license>
<dependency id="cordova-plugin-device" />
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/stepper.js" name="Stepper">
<clobbers target="stepper" />
</js-module>
<platform name="ios">
<preference name="MOTION_USAGE_DESCRIPTION" default="This app needs motion access"/>
<config-file target="*-Info.plist" parent="NSMotionUsageDescription">
<string>$MOTION_USAGE_DESCRIPTION</string>
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="Stepper">
<param name="ios-package" value="Stepper" />
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/Stepper.h" />
<source-file src="src/ios/Stepper.m" />
<framework src="CoreMotion.framework" />
</platform>
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="org.apache.cordova.stepper.BootReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver android:name="org.apache.cordova.stepper.AppUpdatedReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
</intent-filter>
</receiver>
<service android:name="org.apache.cordova.stepper.SensorListener" android:exported="true" android:foregroundServiceType="health" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_HEALTH" android:minSdkVersion="34" />
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-feature android:name="android.hardware.sensor.stepcounter" android:required="false" />
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Stepper">
<param name="android-package" value="org.apache.cordova.stepper.StepperPlugin" />
</feature>
</config-file>
<source-file src="src/android/StepperPlugin.java" target-dir="src/org/apache/cordova/stepper" />
<source-file src="src/android/AppUpdatedReceiver.java" target-dir="src/org/apache/cordova/stepper" />
<source-file src="src/android/BootReceiver.java" target-dir="src/org/apache/cordova/stepper" />
<source-file src="src/android/Database.java" target-dir="src/org/apache/cordova/stepper" />
<source-file src="src/android/SensorListener.java" target-dir="src/org/apache/cordova/stepper" />
<source-file src="src/android/ShutdownReceiver.java" target-dir="src/org/apache/cordova/stepper" />
<source-file src="src/android/util/API23Wrapper.java" target-dir="src/org/apache/cordova/stepper/util" />
<source-file src="src/android/util/API26Wrapper.java" target-dir="src/org/apache/cordova/stepper/util" />
<source-file src="src/android/util/Util.java" target-dir="src/org/apache/cordova/stepper/util" />
<source-file src="src/android/util/Entry.java" target-dir="src/org/apache/cordova/stepper/util" />
<source-file src="src/android/util/Config.java" target-dir="src/org/apache/cordova/stepper/util" />
<source-file src="src/android/util/Status.java" target-dir="src/org/apache/cordova/stepper/util" />
<source-file src="src/android/res/drawable/ic_footsteps_silhouette_variant.xml" target-dir="res/drawable" />
</platform>
</plugin>