-
Notifications
You must be signed in to change notification settings - Fork 8
/
plugin.xml
55 lines (45 loc) · 2 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
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="cordova-plugin-google-nearby"
version="1.0.0">
<name>cordova-plugin-google-nearby</name>
<engines>
<engine name="cordova" version=">=3.4.0"/>
</engines>
<asset src="www/nearby.js" target="js/nearby.js"/>
<js-module src="www/nearby.js" name="nearby">
<clobbers target="nearby" />
</js-module>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="ModusEchoSwift">
<param name="ios-package" value="GoogleNearby" />
</feature>
</config-file>
<source-file src="src/ios/nearby.swift" />
</platform>
<platform name="android">
<preference name="API_KEY" />
<framework src="com.google.android.gms:play-services-nearby:11.6.0" />
<config-file target="app/src/main/res/xml/config.xml" parent="/*">
<feature name="NearbyPlugin">
<param name="android-package" value="org.apache.cordova.NearbyPlugin"/>
</feature>
</config-file>
<config-file target="app/src/main/AndroidManifest.xml" parent="/manifest/application">
<meta-data
android:name="com.google.android.nearby.messages.API_KEY"
android:value="$API_KEY" />
</config-file>
<config-file target="app/src/main/AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
</config-file>
<source-file src="src/android/NearbyPlugin.java" target-dir="src/org/apache/nearby/"/>
</platform>
</plugin>