-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
80 lines (58 loc) · 2.28 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
id="org.apache.cordova.mypowermanager"
version="1.1.2">
<name>MyPowerManager</name>
<description>MyPowerManager plugin for Cordova</description>
<license>Apache 2.0</license>
<keywords>cordova,powermanager</keywords>
<js-module src="www/mypowermanager.js" name="device">
<clobbers target="window.myPowerManager" />
</js-module>
<!-- wp7 -->
<platform name="wp7">
<config-file target="config.xml" parent="/*">
<feature name="PowerManagement">
<param name="wp-package" value="PowerManagement"/>
</feature>
</config-file>
<source-file src="src/wp/PowerManagement.cs" />
</platform>
<!-- wp8 -->
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="PowerManagement">
<param name="wp-package" value="PowerManagement"/>
</feature>
</config-file>
<source-file src="src/wp/PowerManagement.cs" />
</platform>
<!-- windows -->
<platform name="windows">
<js-module src="src/windows/PowerManagementProxy.js" name="PowerManagmentProxy">
<merges target="" />
</js-module>
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/widget">
<feature name="PowerManagement">
<param name="ios-package" value="PowerManagement" />
</feature>
</config-file>
<header-file src="src/ios/PowerManagement.h" />
<source-file src="src/ios/PowerManagement.m" />
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MyPowerManager" >
<param name="android-package" value="org.apache.cordova.mypowermanager.MyPowerManager" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.WAKE_LOCK" />
</config-file>
<source-file src="src/android/MyPowerManager.java" target-dir="src/org/apache/cordova/mypowermanager" />
</platform>
</plugin>