forked from agarrharr/phonegap-powerManagement-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
38 lines (32 loc) · 1.34 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="org.apache.cordova.plugin.power-management"
version="0.1.0">
<name>Power Management</name>
<description>Power Management Phonegap Plugin</description>
<license>GNU</license>
<keywords>cordova,phonegap,power</keywords>
<js-module src="www/PowerManagement.js" name="PowerManagement">
<clobbers target="window.powerManagement" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PowerManagement">
<param name="android-package" value="org.apache.cordova.plugin.powermanagement.PowerManagement"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.WAKE_LOCK" />
</config-file>
<source-file src="src/android/PowerManagement.java" target-dir="src/org/apache/cordova/plugin/powermanagement" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>location</string>
</array>
</config-file>
</platform>
</plugin>