-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathplugin.xml
47 lines (38 loc) · 1.78 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
<?xml version="1.0" encoding="utf-8"?>
<plugin id="cordova-plugin-nativegeocoder" version="3.5.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>NativeGeocoder</name>
<description>Cordova plugin for native forward and reverse geocoding</description>
<license>MIT</license>
<keywords>cordova,geocoder,geocoding,reverse,forward,location</keywords>
<js-module name="NativeGeocoder" src="www/NativeGeocoder.js">
<clobbers target="nativegeocoder" />
</js-module>
<!-- android -->
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="NativeGeocoder">
<param name="android-package" value="cordova.plugin.nativegeocoder.NativeGeocoder" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</config-file>
<source-file src="src/android/NativeGeocoder.java" target-dir="src/cordova/plugin/nativegeocoder" />
</platform>
<!-- ios -->
<platform name="ios">
<preference name="LOCATION_WHEN_IN_USE_DESCRIPTION" default="Use geocoder service" />
<config-file parent="/*" target="config.xml">
<preference name="SwiftVersion" value="5" />
<feature name="NativeGeocoder">
<param name="ios-package" value="NativeGeocoder" />
</feature>
</config-file>
<source-file src="src/ios/NativeGeocoder.swift" />
<framework src="CoreLocation.framework" />
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<string>$LOCATION_WHEN_IN_USE_DESCRIPTION</string>
</config-file>
</platform>
</plugin>