-
Notifications
You must be signed in to change notification settings - Fork 19
/
plugin.xml
44 lines (35 loc) · 1.95 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-backup" version="1.0.0">
<name>Backup</name>
<description>Cordova Backup Plugin</description>
<license>Apache 2.0</license>
<keywords>cordova,backup</keywords>
<js-module src="www/backup.js" name="Backup">
<clobbers target="plugins.backup" />
</js-module>
<platform name="android">
<preference name="BACKUP_SERVICE_KEY" />
<!-- Save backup key for use during build process -->
<source-file src="src/android/backup_service_key_param.xml" target-dir="res/values/" />
<config-file target="res/values/backup_service_key_param.xml" parent="/*">
<string name="backup_service_key">$BACKUP_SERVICE_KEY</string>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!-- Write-file Permission -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<hook type="after_plugin_install" src="src/scripts/installDeps.js" />
<!-- Cordova doesn't allow adding of XML attributes - modify XML via hook -->
<hook type="before_build" src="src/scripts/addAndroidBackupAgent.js" />
<!-- Cleanup if plugin is removed -->
<hook type="before_plugin_rm" src="src/scripts/removeAndroidBackupAgent.js" />
<source-file src="src/android/com/cloakedninjas/cordova/plugins/Backup.java" target-dir="src/com/cloakedninjas/cordova/plugins" />
<source-file src="src/android/com/cloakedninjas/cordova/plugins/BackupAgentHelper.java" target-dir="src/com/cloakedninjas/cordova/plugins" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Backup" >
<param name="android-package" value="com.cloakedninjas.cordova.plugins.Backup"/>
</feature>
</config-file>
</platform>
</plugin>