forked from ToniKorin/cordova-plugin-autostart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
71 lines (59 loc) · 3.03 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
<?xml version="1.0" encoding="UTF-8" ?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-autostart"
version="2.0.0">
<name>Autostart</name>
<description>
The application will be automatically started after the every boot and the automatic update of your application.
You can enable or disable the autostart function in your app.
</description>
<keywords>autostart</keywords>
<repo>https://github.com/ToniKorin/cordova-plugin-autostart</repo>
<license>Apache 2.0</license>
<author>Toni Korin</author>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<!-- js -->
<js-module src="www/auto-start.js" name="AutoStart">
<clobbers target="cordova.plugins.autoStart" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AutoStart" >
<param name="android-package"
value="com.tonikorin.cordova.plugin.autostart.AutoStart"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver
android:name="com.tonikorin.cordova.plugin.autostart.BootCompletedReceiver" android:enabled="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver
android:name="com.tonikorin.cordova.plugin.autostart.UserPresentReceiver" android:enabled="false">
<intent-filter>
<action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>
</receiver>
<receiver
android:name="com.tonikorin.cordova.plugin.autostart.PackageReplacedReceiver" android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
</config-file>
<source-file src="src/android/BootCompletedReceiver.java" target-dir="src/com/tonikorin/cordova/plugin/autostart" />
<source-file src="src/android/UserPresentReceiver.java" target-dir="src/com/tonikorin/cordova/plugin/autostart" />
<source-file src="src/android/PackageReplacedReceiver.java" target-dir="src/com/tonikorin/cordova/plugin/autostart" />
<source-file src="src/android/AppStarter.java" target-dir="src/com/tonikorin/cordova/plugin/autostart" />
<source-file src="src/android/AutoStart.java" target-dir="src/com/tonikorin/cordova/plugin/autostart" />
</platform>
</plugin>