-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplugin.xml
More file actions
54 lines (54 loc) · 2.9 KB
/
plugin.xml
File metadata and controls
54 lines (54 loc) · 2.9 KB
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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="com.mobishift.cordova.plugins.amaplocation" version="0.2.2" xmlns="http://www.phonegap.com/ns/plugins/1.0">
<name>AMapLocation</name>
<description>AMap Location Plugin for Phonegap</description>
<license>MIT</license>
<keywords>amap, location, cordova</keywords>
<js-module name="AMapLocation" src="www/amaplocation.js">
<clobbers target="window.amapLocation" />
</js-module>
<platform name="android">
<hook src="hook/before_android_install.js" type="before_plugin_install"/>
<hook src="hook/before_android_uninstall.js" type="before_plugin_uninstall"/>
<config-file parent="/*" target="res/xml/config.xml">
<feature name="AMapLocation">
<param name="android-package" value="com.mobishift.cordova.plugins.amaplocation.AMapLocation" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<meta-data android:name="com.amap.api.v2.apikey" android:value="YOUR_API_KEY" />
<service android:name="com.mobishift.cordova.plugins.amaplocation.LocationService" />
</config-file>
<source-file src="src/android/AMapLocation.java" target-dir="src/com/mobishift/cordova/plugins/amaplocation" />
<source-file src="src/android/LocationService.java" target-dir="src/com/mobishift/cordova/plugins/amaplocation" />
<source-file src="src/android/LocationPreferences.java" target-dir="src/com/mobishift/cordova/plugins/amaplocation" />
<source-file framework="true" src="src/android/Android_Location_V1.3.1.jar" target-dir="libs" />
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="AMapLocation">
<param name="ios-package" value="AMapLocation" />
</feature>
</config-file>
<config-file target="*/*-Info.plist" parent="UIBackgroundModes">
<array>
<string>location</string>
</array>
</config-file>
<config-file target="*/*-Info.plist" parent="NSLocationAlwaysUsageDescription">
<string>为了确保在您自己的停车场正确使用本应用,请选择允许</string>
</config-file>
<source-file src="src/ios/AMapLocation.m" />
</platform>
</plugin>