-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.xml
executable file
·62 lines (49 loc) · 2.72 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
<?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-mapbox"
version="0.0.4">
<name>Mapbox</name>
<description>Mapbox plugin for Cordova 7+ (ANDROID ONLY)</description>
<author>Daniel Neveux</author>
<license>MIT</license>
<keywords>mapbox, mapox native, native maps, map</keywords>
<repo>https://github.com/dagatsoin/cordova-plugin-mapbox</repo>
<preference name="ACCESS_TOKEN" />
<engines>
<engine name="cordova" version=">=3.5.0"/>
<engine name="cordova-plugman" version=">=4.2.0"/><!-- needed for gradleReference support -->
</engines>
<js-module src="www/cordova-plugin-mapbox.js" name="cordova-plugin-mapbox">
<clobbers target="Mapbox" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Mapbox">
<param name="android-package" value="com.dagatsoin.plugins.mapbox.CDVMapbox" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
</config-file>
<framework src="src/android/mapbox.gradle" custom="true" type="gradleReference"/>
<source-file src="src/android/CDVMapbox.java" target-dir="src/com/dagatsoin/plugins/mapbox"/>
<source-file src="src/android/MapLayout.java" target-dir="src/com/dagatsoin/plugins/mapbox"/>
<source-file src="src/android/MapController.java" target-dir="src/com/dagatsoin/plugins/mapbox"/>
<source-file src="src/android/OfflineController.java" target-dir="src/com/dagatsoin/plugins/mapbox"/>
<source-file src="src/android/OfflineControllerPool.java" target-dir="src/com/dagatsoin/plugins/mapbox"/>
<source-file src="src/android/PluginLayout.java" target-dir="src/com/dagatsoin/plugins/mapbox"/>
<source-file src="src/android/RunnableWithArg.java" target-dir="src/com/dagatsoin/plugins/mapbox"/>
<source-file src="src/android/libs/androidsvg-1.2.1.jar" target-dir="libs" framework="true" />
<config-file target="res/values/strings.xml" parent="/*">
<string name="mapbox_accesstoken">$ACCESS_TOKEN</string>
</config-file>
</platform>
</plugin>