-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplugin.xml
72 lines (62 loc) · 3.93 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
<?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="cordova-plugin-bluenet-dfu" version="0.0.2">
<name>Bluenet DFU</name>
<description>Upload bluenet code over DFU</description>
<author>Dominik Egger</author>
<keywords>bluenet,dfu</keywords>
<license>LGPL v3+, Apache, or MIT, your choice</license>
<js-module name="BluenetDfu" src="www/bluenetDfu.js">
<clobbers target="window.bluenetDfu" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BluenetDfuPlugin">
<param name="android-package" value="nl.dobots.bluenetdfu.BluenetDfuPlugin" />
</feature>
</config-file>
<source-file src="src/android/BluenetDfuPlugin.java" target-dir="src/nl/dobots/bluenetdfu" />
<source-file src="src/android/DfuService.java" target-dir="src/nl/dobots/bluenetdfu" />
<source-file src="src/android/NotificationActivity.java" target-dir="src/nl/dobots/bluenetdfu" />
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="nl.dobots.bluenetdfu.DfuService"></service>
</config-file>
<!-- Use DFU Library from nordic -->
<framework src="src/android/LibraryProject" custom="true" />
<!-- Add Strings used by the nordic library -->
<!-- <config-file target="res/xml/strings.xml" parent="/resources">
<string name="dfu_unknown_name">unnamed device</string>
<string name="dfu_action_abort">Abort</string>
<string name="dfu_status_initializing">Initializing…</string>
<string name="dfu_status_connecting">Connecting…</string>
<string name="dfu_status_starting">Starting DFU…</string>
<string name="dfu_status_switching_to_dfu">Starting bootloader…</string>
<string name="dfu_status_uploading">Uploading…</string>
<string name="dfu_status_uploading_part" formatted="false">Uploading part %d/%d…</string>
<string name="dfu_status_validating">Validating…</string>
<string name="dfu_status_disconnecting">Disconnecting…</string>
<string name="dfu_status_completed">Done</string>
<string name="dfu_status_aborted">Aborted</string>
<string name="dfu_status_aborting">Aborting…</string>
<string name="dfu_status_error">Upload failed</string>
<string name="dfu_status_connecting_msg">Connecting to %s…</string>
<string name="dfu_status_starting_msg">Initializing DFU process…</string>
<string name="dfu_status_switching_to_dfu_msg">Waiting for bootloader…</string>
<string name="dfu_status_uploading_components_msg">Transmitting components to %s…</string>
<string name="dfu_status_uploading_msg">Transmitting application to %s…</string>
<string name="dfu_status_validating_msg">Validating…</string>
<string name="dfu_status_completed_msg">Application has been send successfully.</string>
<string name="dfu_status_aborted_msg">Application upload has been canceled.</string>
<string name="dfu_status_disconnecting_msg">Disconnecting from %s…</string>
<string name="dfu_status_error_msg">DFU process failed.</string>
</config-file> -->
<!-- Add drawables used by the nordic library -->
<!-- <resource-file src="res/drawable-hdpi/ic_action_notify_cancel.png" target="res/drawable-hdpi/ic_action_notify_cancel.png" />
<resource-file src="res/drawable-hdpi/ic_stat_notify_dfu.png" target="res/drawable-hdpi/ic_stat_notify_dfu.png" />
<resource-file src="res/drawable-xhdpi/ic_action_notify_cancel.png" target="res/drawable-xhdpi/ic_action_notify_cancel.png" />
<resource-file src="res/drawable-xhdpi/ic_stat_notify_dfu.png" target="res/drawable-xhdpi/ic_stat_notify_dfu.png" /> -->
</platform>
</plugin>