forked from solo999/cordova-plugin-battery-level
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
48 lines (38 loc) · 1.6 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="hk.polaris.cordova.plugin.batterylevel"
version="0.2.1">
<name>Battery level</name>
<description>Cordova plugin to get battery level on demand</description>
<repo>https://github.com/solo999/cordova-plugin-battery-level.git</repo>
<keywords>battery, status, level, once, on-demand, right away, ios</keywords>
<license>Apache 2.0</license>
<author>Bessonov Viacheslav</author>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/batteryLevel.js" name="BatteryLevel">
<clobbers target="plugin.battery.level" />
<clobbers target="cordova.plugins.battery.level" />
</js-module>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BatteryLevel">
<param name="ios-package" value="CDVBatteryLevel"/>
</feature>
</config-file>
<header-file src="src/ios/CDVBatteryLevel.h" />
<source-file src="src/ios/CDVBatteryLevel.m" />
</platform>
<platform name="android">
<!-- register plugin -->
<config-file parent="/*" target="res/xml/config.xml">
<feature name="BatteryLevel">
<param name="android-package" value="hk.polaris.cordova.plugin.BatteryLevel"/>
</feature>
</config-file>
<!-- add plugin source code -->
<source-file src="src/android/BatteryLevel.java" target-dir="src/hk/polaris/cordova/plugin"/>
</platform>
</plugin>