forked from Silverbase-FE/cordova-plugin-amap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
160 lines (138 loc) · 8.98 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="cordova-plugin-amap" version="1.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0">
<name>cordova-plugin-amap</name>
<js-module name="cordova-plugins-amap" src="www/amap.js" >
<clobbers target="cordova-plugins-amap" />
</js-module>
<description>Amap Maps native SDK for Android and iOS</description>
<repo>https://github.com/Silverbase-FE/cordova-plugin-amap.git</repo>
<issue>https://github.com/Silverbase-FE/cordova-plugin-amap/issues</issue>
<author>Silverbase-FE</author>
<license>Apache 2.0 License</license>
<keywords>amap, maps, cordova, phonegap, ionic, android, ios</keywords>
<engines>
<engine name="cordova-android" version=">=5.1.0" />
<engine name="cordova-ios" version=">=4.0.0" />
</engines>
<!-- android -->
<platform name="android">
<preference name="API_KEY_FOR_ANDROID" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AMapPlugin">
<param name="android-package" value="com.amap.cordova.AMapPlugin" />
</feature>
</config-file>
<!-- android -->
<source-file src="src/android/AMapPlugin.java" target-dir="src/com/amap/cordova" />
<source-file src="src/android/MapActivity.java" target-dir="src/com/amap/cordova" />
<source-file src="src/android/TraceActivity.java" target-dir="src/com/amap/cordova" />
<source-file src="src/android/res/drawable-hdpi/location_marker.png" target-dir="res/drawable-hdpi" />
<source-file src="src/android/res/drawable-land-hdpi/location_marker.png" target-dir="res/drawable-land-hdpi" />
<source-file src="src/android/res/drawable-land-ldpi/location_marker.png" target-dir="res/drawable-land-ldpi" />
<source-file src="src/android/res/drawable-land-mdpi/location_marker.png" target-dir="res/drawable-land-mdpi" />
<source-file src="src/android/res/drawable-land-xhdpi/location_marker.png" target-dir="res/drawable-land-xhdpi" />
<source-file src="src/android/res/drawable-ldpi/location_marker.png" target-dir="res/drawable-ldpi" />
<source-file src="src/android/res/drawable-mdpi/location_marker.png" target-dir="res/drawable-mdpi" />
<source-file src="src/android/res/drawable-port-hdpi/location_marker.png" target-dir="res/drawable-port-hdpi" />
<source-file src="src/android/res/drawable-port-ldpi/location_marker.png" target-dir="res/drawable-port-ldpi" />
<source-file src="src/android/res/drawable-port-mdpi/location_marker.png" target-dir="res/drawable-port-mdpi" />
<source-file src="src/android/res/drawable-port-xhdpi/location_marker.png" target-dir="res/drawable-port-xhdpi" />
<source-file src="src/android/res/drawable-xhdpi/location_marker.png" target-dir="res/drawable-xhdpi" />
<source-file src="src/android/res/drawable-xxhdpi/location_marker.png" target-dir="res/drawable-xxhdpi" />
<source-file src="src/android/plugin/Android_Map3D_SDK_V5.2.1_20170630.jar" target-dir="libs" />
<source-file src="src/android/plugin/AMap_Search_V5.2.1_20170630.jar" target-dir="libs" />
<source-file src="src/android/res/layout/map_activity.xml" target-dir="res/layout" />
<source-file src="src/android/res/layout/trace_activity.xml" target-dir="res/layout" />
<source-file src="src/android/res/layout/comm_button_arrow.png" target-dir="res/mipmap" />
<config-file target="AndroidManifest.xml" parent="/manifest">
<!--用于进行网络定位-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
<!--用于访问GPS定位-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
<!-- 获取运营商信息,用于支持提供运营商信息相关的接口-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
<!-- 用于访问wifi网络信息,wifi信息会用于进行网络定位-->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<!-- 这个权限用于获取wifi的获取权限,wifi信息会用来进行网络定位-->
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
<!--用于访问网络,网络定位需要上网-->
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<!-- 用于读取手机当前的状态-->
<uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>
<!-- 写入扩展存储,向扩展卡写入数据,用于写入缓存定位数据-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS"/>
<!--定位包、导航包需要的额外权限(注:基础权限也需要) -->
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<!-- <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /> -->
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!-- 定位需要的服务 -->
<service android:name="com.amap.api.location.APSService" />
<!--APIKey-->
<meta-data android:name="com.amap.api.v2.apikey" android:value="$API_KEY_FOR_ANDROID" />
<activity android:label="客户地图" android:name="com.amap.cordova.MapActivity" />
<activity android:label="我的轨迹" android:name="com.amap.cordova.TraceActivity" />
</config-file>
</platform>
<platform name="ios">
<preference name="API_KEY_FOR_IOS" />
<preference name="LOCATION_USAGE_DESCRIPTION" default="APP需要获取您的定位信息">
<config-file target="config.xml" parent="/*">
<feature name="AMap4Plugin">
<param name="ios-package" value="CDVAMap"/>
</feature>
</config-file>
<header-file src="src/ios/Source/AMapPlugin.h" />
<source-file src="src/ios/Source/AMapPlugin.m" />
<header-file src="src/ios/Source/MAMutablePolylineRenderer.h" />
<source-file src="src/ios/Source/MAMutablePolylineRenderer.m" />
<header-file src="src/ios/Source/MAMutablePolyline.h" />
<source-file src="src/ios/Source/MAMutablePolyline.m" />
<header-file src="src/ios/Source/SBGMapHeaderView.h" />
<source-file src="src/ios/Source/SBGMapHeaderView.m" />
<!--资源文件-->
<resource-file src="src/ios/Framework/MAMapKit.framework/AMap.bundle" />
<resource-file src="src/ios/Resource/[email protected]" />
<resource-file src="src/ios/Resource/[email protected]" />
<resource-file src="src/ios/Resource/[email protected]" />
<resource-file src="src/ios/Resource/[email protected]" />
<!--引入framework-->
<framework src="src/ios/Framework/AMapLocationKit.framework" custom="true" />
<framework src="src/ios/Framework/AMapFoundationKit.framework" custom="true" />
<framework src="src/ios/Framework/MAMapKit.framework" custom="true" />
<!-- 引入系统框架 -->
<framework src="UIKit.framework" />
<framework src="Foundation.framework" />
<framework src="CoreGraphics.framework" />
<framework src="QuartzCore.framework" />
<framework src="Security.framework" />
<framework src="CoreTelephony.framework" />
<framework src="SystemConfiguration.framework" />
<framework src="CoreLocation.framework" />
<framework src="OpenGLES.framework" />
<framework src="AdSupport.framework" />
<framework src="JavaScriptCore.framework" />
<framework src="GLKit.framework" />
<framework src="libstdc++.6.0.9.tbd"/>
<framework src="libc++.tbd" />
<framework src="libz.tbd" />
<!-- 设置配置文件 -->
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<string>$LOCATION_USAGE_DESCRIPTION</string>
</config-file>
<config-file target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
<string>$LOCATION_USAGE_DESCRIPTION</string>
</config-file>
<!-- <config-file target="*-Info.plist" parent="NSAppTransportSecurity">-->
<!-- <dict>-->
<!-- <key>NSAllowsArbitraryLoads</key>-->
<!-- <true/>-->
<!-- </dict>-->
<!-- </config-file>-->
<!--APIKey 请自行配置 参照高德官网-->
<config-file target="*-Info.plist" parent="AMapApiKey">
<string>$API_KEY_FOR_IOS</string>
</config-file>
</platform>
</plugin>