forked from uniclau/AlarmPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
55 lines (44 loc) · 2.25 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="com.uniclau.alarmplugin"
version="0.1.0">
<name>Alarm</name>
<description>Sample Alarm Plugin</description>
<license>MIT</license>
<keywords>phonegap,alarm</keywords>
<js-module src="www/alarmplugin.js" name="AlarmPlugin">
<clobbers target="navigator.plugins.alarm" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AlarmPlugin">
<param name="android-package" value="com.uniclau.alarmplugin.AlarmPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.VIBRATE"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="com.uniclau.alarmplugin.AlarmReceiver" android:process=":remote">
</receiver>
<receiver android:name="com.uniclau.alarmplugin.AlarmBoot">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"></action>
</intent-filter>
</receiver>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<intent-filter>
<action android:name="com.uniclau.alarmplugin.ALARM" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</config-file>
<source-file src="src/android/AlarmPlugin.java" target-dir="src/com/uniclau/alarmplugin" />
<source-file src="src/android/AlarmBoot.java" target-dir="src/com/uniclau/alarmplugin" />
<source-file src="src/android/AlarmReceiver.java" target-dir="src/com/uniclau/alarmplugin" />
</platform>
</plugin>