forked from petermetz/cordova-plugin-ibeacon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
151 lines (125 loc) · 6.84 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.unarin.cordova.beacon" version="3.4.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Proximity Beacon Plugin</name>
<description>Proximity Beacon Monitoring and Transmission Plugin (supporting iBeacons)</description>
<license>Apache 2.0</license>
<keywords>cordova,ibeacon,beacon,bluetooth,le</keywords>
<repo>https://github.com/petermetz/cordova-plugin-ibeacon.git</repo>
<!-- Third party libraries -->
<js-module name="underscorejs" src="www/lib/underscore-min-1.6.js">
<runs/>
</js-module>
<js-module name="Q" src="www/lib/q.min.js">
<runs/>
</js-module>
<!-- Plugin source code: Core -->
<js-module name="LocationManager" src="www/LocationManager.js">
<!-- see http://cordova.apache.org/docs/en/3.0.0/plugin_ref_spec.md#Plugin%20Specification_js_module_element -->
<!-- We have to use clobers but with cordova.plugins.locationManager or if you'd like to merge you need to user merges to make alle objects acessable -->
<merges target="cordova.plugins"/>
</js-module>
<js-module name="Delegate" src="www/Delegate.js">
<runs/>
</js-module>
<!-- Plugin source code: Model -->
<js-module name="Region" src="www/model/Region.js">
<runs/>
</js-module>
<js-module name="Regions" src="www/Regions.js">
<runs/>
</js-module>
<js-module name="CircularRegion" src="www/model/CircularRegion.js">
<runs/>
</js-module>
<js-module name="BeaconRegion" src="www/model/BeaconRegion.js">
<runs/>
</js-module>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="LocationManager">
<param name="ios-package" value="CDVLocationManager"/>
</feature>
</config-file>
<config-file target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
<string>This app would like to scan for iBeacons even when in the background.</string>
</config-file>
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<string>This app would like to scan for iBeacons while it is in use.</string>
</config-file>
<config-file target="*-Info.plist" parent="NSBluetoothPeripheralUsageDescription">
<string>This app would like to scan for iBeacons.</string>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>location</string>
</array>
</config-file>
<header-file src="src/ios/CDVLocationManager.h"/>
<source-file src="src/ios/CDVLocationManager.m"/>
<header-file src="src/ios/AppDelegate+CDVLocationManager.h"/>
<source-file src="src/ios/AppDelegate+CDVLocationManager.m"/>
<header-file src="src/ios/LMLogger.h"/>
<source-file src="src/ios/LMLogger.m"/>
<framework src="CoreBluetooth.framework" />
<framework src="CoreLocation.framework" />
</platform>
<platform name="android">
<framework src="com.android.support:support-v4:+" value="gradle" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="LocationManager" >
<param name="android-package" value="com.unarin.cordova.beacon.LocationManager"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<receiver android:name="org.altbeacon.beacon.startup.StartupBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
</receiver>
<receiver android:name="com.unarin.cordova.beacon.StartupBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
</intent-filter>
</receiver>
<service android:enabled="true"
android:exported="true"
android:isolatedProcess="false"
android:label="Beacon Service"
android:name="org.altbeacon.beacon.service.BeaconService">
</service>
<service android:enabled="true"
android:exported="true"
android:isolatedProcess="false"
android:label="Zone Service"
android:name="com.unarin.cordova.beacon.BackgroundBeaconService">
</service>
<service android:enabled="true"
android:name="org.altbeacon.beacon.BeaconIntentProcessor">
<meta-data android:name="background" android:value="true" />
<intent-filter android:priority="1" >
<action android:name="com.unarin.cordova.beacon.IBeaconPlugin.DID_RANGING" />
<action android:name="com.unarin.cordova.beacon.IBeaconPlugin.DID_MONITORING" />
</intent-filter>
</service>
</config-file>
<source-file src="src/android/LocationManager.java" target-dir="src/com/unarin/cordova/beacon" />
<source-file src="src/android/IBeaconServiceNotifier.java" target-dir="src/com/unarin/cordova/beacon" />
<source-file src="src/android/ILocationManagerCommand.java" target-dir="src/com/unarin/cordova/beacon" />
<source-file src="src/android/PausableThreadPoolExecutor.java" target-dir="src/com/unarin/cordova/beacon" />
<source-file src="src/android/BackgroundBeaconService.java" target-dir="src/com/unarin/cordova/beacon" />
<source-file src="src/android/NotificationOptions.java" target-dir="src/com/unarin/cordova/beacon" />
<source-file src="src/android/StartupBroadcastReceiver.java" target-dir="src/com/unarin/cordova/beacon" />
<source-file src="libs/android/altbeacon.jar" target-dir="libs" framework="true" />
</platform>
</plugin>