UNPKG

4.56 kBXMLView Raw
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
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 <!-- android -->
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 <!-- amazon-fireos -->
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 <!-- ubuntu -->
58 <platform name="ubuntu">
59 <header-file src="src/ubuntu/battery.h" />
60 <source-file src="src/ubuntu/battery.cpp" />
61 </platform>
62
63 <!-- ios -->
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 <!-- blackberry10 -->
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 <!-- wp7 -->
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 <!-- wp8 -->
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 <!-- windows -->
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 <!-- tizen -->
114 <platform name="tizen">
115 <js-module src="src/tizen/BatteryStatusProxy.js" name="BatteryStatusProxy">
116 <runs/>
117 </js-module>
118 </platform>
119
120 <!-- firefoxos -->
121 <platform name="firefoxos">
122 <js-module src="src/firefoxos/BatteryProxy.js" name="Battery">
123 <runs />
124 </js-module>
125 </platform>
126
127 <!-- browser -->
128 <platform name="browser">
129 <js-module src="src/browser/BatteryProxy.js" name="Battery">
130 <runs />
131 </js-module>
132 </platform>
133</plugin>