forked from Haggus/cordova-plugin-wakeuptimer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
58 lines (49 loc) · 2.35 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="org.nypr.cordova.wakeupplugin"
version="0.1.0">
<name>WakeupTimer</name>
<description>Wakeup Plugin</description>
<license>Apache 2.0</license>
<keywords>sleep,wakeup,timer</keywords>
<repo>[email protected]:mobile/cordova/cordova-plugin-wakeuptimer.git</repo>
<js-module src="www/wakeup.js" name="Wakeup">
<clobbers target="wakeuptimer"/>
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="WakeupPlugin" >
<param name="android-package" value="org.nypr.cordova.wakeupplugin.WakeupPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="org.nypr.cordova.wakeupplugin.WakeupReceiver" />
<receiver android:name="org.nypr.cordova.wakeupplugin.WakeupBootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</config-file>
<source-file src="src/android/WakeupPlugin.java" target-dir="src/org/nypr/cordova/wakeupplugin/" />
<source-file src="src/android/WakeupReceiver.java" target-dir="src/org/nypr/cordova/wakeupplugin/" />
<source-file src="src/android/WakeupBootReceiver.java" target-dir="src/org/nypr/cordova/wakeupplugin/" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="WakeupPlugin">
<param name="ios-package" value="WakeupPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/WakeupPlugin.h" />
<source-file src="src/ios/WakeupPlugin.m" />
</platform>
</plugin>