forked from petermetz/cordova-plugin-ibeacon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
109 lines (85 loc) · 4.67 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.unarin.cordova.beacon" version="3.8.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>
<!-- Version is set to anything because the only feature we use is the device.platform property which was available
since forever. The added benefit is that we don't force the consumers of this plugin to use a certain version of
the device plugin. -->
<dependency id="cordova-plugin-device" version="*" />
<!-- 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="NSLocationAlwaysAndWhenInUseUsageDescription">
<string>This app would like to scan for iBeacons both while in use and while in the background.</string>
</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">
<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.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
</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" />
<framework src="src/android/cordova-plugin-ibeacon.gradle" custom="true" type="gradleReference" />
<framework src="com.android.support:support-core-utils:26+" />
</platform>
</plugin>