1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
22 | id="cordova-plugin-battery-status"
|
23 | version="1.1.0">
|
24 | <name>Battery</name>
|
25 | <description>Cordova Battery Plugin</description>
|
26 | <license>Apache 2.0</license>
|
27 | <keywords>cordova,battery</keywords>
|
28 | <repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git</repo>
|
29 | <issue>https://issues.apache.org/jira/browse/CB/component/12320643</issue>
|
30 |
|
31 | <js-module src="www/battery.js" name="battery">
|
32 | <clobbers target="navigator.battery" />
|
33 | </js-module>
|
34 |
|
35 |
|
36 | <platform name="android">
|
37 | <config-file target="res/xml/config.xml" parent="/*">
|
38 | <feature name="Battery" >
|
39 | <param name="android-package" value="org.apache.cordova.batterystatus.BatteryListener"/>
|
40 | </feature>
|
41 | </config-file>
|
42 |
|
43 | <source-file src="src/android/BatteryListener.java" target-dir="src/org/apache/cordova/batterystatus" />
|
44 | </platform>
|
45 |
|
46 |
|
47 | <platform name="amazon-fireos">
|
48 | <config-file target="res/xml/config.xml" parent="/*">
|
49 | <feature name="Battery" >
|
50 | <param name="android-package" value="org.apache.cordova.batterystatus.BatteryListener"/>
|
51 | </feature>
|
52 | </config-file>
|
53 |
|
54 | <source-file src="src/android/BatteryListener.java" target-dir="src/org/apache/cordova/batterystatus" />
|
55 | </platform>
|
56 |
|
57 |
|
58 | <platform name="ubuntu">
|
59 | <header-file src="src/ubuntu/battery.h" />
|
60 | <source-file src="src/ubuntu/battery.cpp" />
|
61 | </platform>
|
62 |
|
63 |
|
64 | <platform name="ios">
|
65 | <config-file target="config.xml" parent="/*">
|
66 | <feature name="Battery">
|
67 | <param name="ios-package" value="CDVBattery" />
|
68 | </feature>
|
69 | </config-file>
|
70 | <header-file src="src/ios/CDVBattery.h" />
|
71 | <source-file src="src/ios/CDVBattery.m" />
|
72 | </platform>
|
73 |
|
74 |
|
75 | <platform name="blackberry10">
|
76 | <source-file src="src/blackberry10/index.js" target-dir="Battery" />
|
77 | <config-file target="www/config.xml" parent="/widget">
|
78 | <feature name="Battery" value="Battery"/>
|
79 | </config-file>
|
80 | </platform>
|
81 |
|
82 |
|
83 | <platform name="wp7">
|
84 | <config-file target="config.xml" parent="/*">
|
85 | <feature name="Battery">
|
86 | <param name="wp-package" value="Battery"/>
|
87 | </feature>
|
88 | </config-file>
|
89 |
|
90 | <source-file src="src/wp/Battery.cs" />
|
91 | </platform>
|
92 |
|
93 |
|
94 | <platform name="wp8">
|
95 | <config-file target="config.xml" parent="/*">
|
96 | <feature name="Battery">
|
97 | <param name="wp-package" value="Battery"/>
|
98 | </feature>
|
99 | </config-file>
|
100 |
|
101 | <source-file src="src/wp/Battery.cs" />
|
102 | </platform>
|
103 |
|
104 |
|
105 | <platform name="windows">
|
106 | <js-module src="src/windows/BatteryProxy.js" name="Battery">
|
107 | <runs />
|
108 | </js-module>
|
109 |
|
110 | <framework src="src/windows/BatteryStatus.winmd" custom="true" target="phone"/>
|
111 | </platform>
|
112 |
|
113 |
|
114 | <platform name="tizen">
|
115 | <js-module src="src/tizen/BatteryStatusProxy.js" name="BatteryStatusProxy">
|
116 | <runs/>
|
117 | </js-module>
|
118 | </platform>
|
119 |
|
120 |
|
121 | <platform name="firefoxos">
|
122 | <js-module src="src/firefoxos/BatteryProxy.js" name="Battery">
|
123 | <runs />
|
124 | </js-module>
|
125 | </platform>
|
126 |
|
127 |
|
128 | <platform name="browser">
|
129 | <js-module src="src/browser/BatteryProxy.js" name="Battery">
|
130 | <runs />
|
131 | </js-module>
|
132 | </platform>
|
133 | </plugin>
|