cordova-plugin-gaode
Version:
高德地图SDK的cordova plugin
95 lines (94 loc) • 5.58 kB
text/xml
<plugin id="cordova-plugin-gaode" version="1.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>gaode</name>
<description>A cordova plugin, a JS version of Gaode SDK</description>
<keywords>cordova,gaode,location</keywords>
<preference name="android_key"/>
<preference name="ios_key"/>
<js-module name="gaode" src="www/gaode.js">
<clobbers target="cordova.plugin.gaode"/>
</js-module>
<platform name="ios">
<!-- required background modes: App registers for location updates -->
<config-file parent="/*" target="config.xml">
<feature name="Gaode">
<param name="ios-package" value="CDVGaode"/>
</feature>
<preference name="ios_key" value="$IOS_KEY"/>
</config-file>
<framework src="SystemConfiguration.framework" />
<framework src="CoreTelephony.framework" />
<framework src="Security.framework" />
<framework src="GLKit.framework" />
<framework src="ExternalAccessory.framework" />
<config-file parent="NSLocationWhenInUseUsageDescription" target="*-Info.plist">
<string>App需要定位权限用于乘客找车</string>
</config-file>
<config-file parent="NSLocationAlwaysUsageDescription" target="*-Info.plist">
<string>App前台和后台运行时定位用于乘客找车</string>
</config-file>
<config-file parent="NSLocationAlwaysAndWhenInUseUsageDescription" target="*-Info.plist">
<string>App前台和后台运行时定位用于乘客找车</string>
</config-file>
<framework src="src/ios/libs/AMapFoundationKit.framework" custom="true"/>
<framework src="src/ios/libs/AMapLocationKit.framework" custom="true"/>
<framework src="src/ios/libs/AMapNaviKit.framework" custom="true"/>
<framework src="src/ios/libs/MAMapKit.framework" custom="true"/>
<framework src="libz.dylib" />
<!--<framework src="libstdc++.6.0.9.tbd"/>-->
<framework src="libc++.tbd" />
<!--<framework src="libstdc++.6.0.9.dylib" />-->
<resource-file src="src/ios/libs/AMap.bundle"/>
<resource-file src="src/ios/libs/AMapNavi.bundle"/>
<header-file src="src/ios/CDVGaode.h" />
<source-file src="src/ios/CDVGaode.m"/>
<header-file src="src/ios/SpeechSynthesizer.h" />
<source-file src="src/ios/SpeechSynthesizer.m"/>
<header-file src="src/ios/MoreMenuView.h" />
<source-file src="src/ios/MoreMenuView.m"/>
</platform>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="gaode">
<param name="android-package" value="xiaolong.cordova.gaode.GaodePlugin"/>
</feature>
</config-file>
<config-file parent="/manifest" target="AndroidManifest.xml">
<!--用于进行网络定位-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<!--用于访问GPS定位-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<!--用于获取运营商信息,用于支持提供运营商信息相关的接口-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!--用于访问wifi网络信息,wifi信息会用于进行网络定位-->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<!--用于获取wifi的获取权限,wifi信息会用来进行网络定位-->
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<!--用于访问网络,网络定位需要上网-->
<uses-permission android:name="android.permission.INTERNET"/>
<!--用于读取手机当前的状态-->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<!--用于写入缓存数据到扩展存储卡-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!--用于申请调用A-GPS模块-->
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
<!--用于申请获取蓝牙信息进行室内定位-->
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<meta-data
android:name="com.amap.api.v2.apikey"
android:value="$ANDROID_KEY"/>
<service android:name="com.amap.api.location.APSService"></service>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml"></config-file>
<resource-file src="src/android/res/layout/activity_navigation.xml" target="res/layout/activity_navigation.xml" />
<source-file src="src/android/GaodePlugin.java" target-dir="src/xiaolong/cordova/gaode"/>
<source-file src="src/android/NavigationActivity.java" target-dir="src/xiaolong/cordova/gaode"/>
<framework src="com.amap.api:location:latest.integration" />
<framework src="com.amap.api:navi-3dmap:latest.integration"/>
<framework src="com.squareup.okhttp3:okhttp-urlconnection:3.10.0"/>
</platform>
</plugin>