forked from robindepege/cordova-plugin-battery-level
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
47 lines (37 loc) · 1.57 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-battery-status-ondemand"
version="0.3.0">
<name>Battery level</name>
<description>Cordova plugin to get battery level on demand</description>
<repo>https://github.com/angel1st/cordova-plugin-battery-status-ondemand.git</repo>
<keywords>battery, status, level, once, on-demand, right away, ios</keywords>
<license>Apache 2.0</license>
<author>Angel Todorov</author>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/batteryStatus.js" name="BatteryStatus">
<clobbers target="cordova.plugins.battery" />
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BatteryStatus">
<param name="ios-package" value="CDVBatteryStatus"/>
</feature>
</config-file>
<header-file src="src/ios/CDVBatteryStatus.h" />
<source-file src="src/ios/CDVBatteryStatus.m" />
</platform>
<platform name="android">
<!-- register plugin -->
<config-file parent="/*" target="res/xml/config.xml">
<feature name="BatteryStatus">
<param name="android-package" value="net.sensortronic.cordova.plugin.BatteryStatus"/>
</feature>
</config-file>
<!-- add plugin source code -->
<source-file src="src/android/BatteryStatus.java" target-dir="src/net/sensortronic/cordova/plugin"/>
</platform>
</plugin>