-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.xml
76 lines (62 loc) · 3.49 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
73
74
75
76
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="cordova-plugin-em-transition-notify"
version="1.2.7">
<name>TransitionNotification</name>
<description>Transition notification. Specially good for trip start and trip end notifications </description>
<author>K. Shankari ([email protected])</author>
<license>Modified BSD license</license>
<engines>
<engine name="cordova" version=">=3.6.0"/>
<engine name="cordova-android" version=">=7.0.0"/>
</engines>
<asset src="www/ui/ionic/templates/main-transition-notify-settings.html" target="templates/control/main-transition-notify-settings.html"/>
<asset src="www/ui/ionic/templates/transition-notify-display-detail.html" target="templates/control/transition-notify-display-detail.html"/>
<asset src="www/ui/ionic/js/transition-notify-settings.js" target="js/control/transition-notify-settings.js"/>
<js-module src="www/transitionnotify.js" name="transitionnotify">
<clobbers target="cordova.plugins.BEMTransitionNotification" />
</js-module>
<!--
Dependency checking on iOS does not work well - if the same dependency
exists in multiple files, it inserts them over and over and finally fails
<dependency id="edu.berkeley.eecs.emission.cordova.unifiedlogger"
url="https://github.com/e-mission/cordova-unified-logger.git"/>
<dependency id="edu.berkeley.eecs.emission.cordova.settings"
url="https://github.com/e-mission/cordova-connection-settings.git"/>
<dependency id="edu.berkeley.eecs.emission.cordova.serversync"
url="https://github.com/e-mission/cordova-server-sync.git"/>
-->
<hook type="after_plugin_install" src="hooks/android/addResourcesClassImport.js" />
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="TransitionNotification">
<param name="android-package" value="edu.berkeley.eecs.emission.cordova.transitionnotify.TransitionNotifier"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver
android:name="edu.berkeley.eecs.emission.cordova.transitionnotify.TransitionNotificationReceiver"
android:enabled="true">
<intent-filter>
<action android:name="local.transition.initialize"></action>
<action android:name="local.transition.exited_geofence"></action>
<action android:name="local.transition.stopped_moving"></action>
<action android:name="local.transition.stop_tracking"></action>
<action android:name="local.transition.start_tracking"></action>
</intent-filter>
</receiver>
</config-file>
<source-file src="src/android/TransitionNotifier.java" target-dir="src/edu/berkeley/eecs/emission/cordova/transitionnotify"/>
<source-file src="src/android/TransitionNotificationReceiver.java" target-dir="src/edu/berkeley/eecs/emission/cordova/transitionnotify"/>
<resource-file src="res/android/statemachine.xml" target="res/values/statemachine.xml" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="TransitionNotification">
<param name="ios-package" value="BEMTransitionNotifier" />
</feature>
</config-file>
<header-file src="src/ios/BEMTransitionNotifier.h"/>
<source-file src="src/ios/BEMTransitionNotifier.m"/>
</platform>
</plugin>