-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
101 lines (96 loc) · 5.76 KB
/
plugin.xml
File metadata and controls
101 lines (96 loc) · 5.76 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
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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="AMapBackgroundGeolocation"
version="1.0.0">
<name>AMapBackgroundGeolocation</name>
<license>MIT license</license>
<description>高德地图后台定位</description>
<keywords>高德地图 后台定位 AMap</keywords>
<repo>https://github.com/yanglongji/AMapBackgroundGeolocation</repo>
<issue>https://github.com/yanglongji/AMapBackgroundGeolocation/issues</issue>
<js-module src="www/AMapBackgroundGeolocation.js" name="AMapBackgroundGeolocation">
<runs/>
<clobbers target="AMapBackgroundGeolocation"/>
</js-module>
<preference name="ANDROID_APIKEY" />
<preference name="IOS_APIKEY" />
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="AMapBackgroundGeolocation">
<param name="ios-package" value="AMapBackgroundGeolocation"/>
</feature>
<preference name="IOS_APIKEY" value="$IOS_APIKEY" />
</config-file>
<!-- <config-file target="*-Info.plist" parent="NSLocationAlwaysAndWhenInUseUsageDescription">
<string>获得定位,推荐最近服务点</string>
</config-file>
<config-file target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
<string>获得定位,推荐最近服务点</string>
</config-file> -->
<config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
<string>获得定位,推荐最近服务点</string>
</config-file>
<header-file src="src/ios/AMapBackgroundGeolocation.h"/>
<source-file src="src/ios/AMapBackgroundGeolocation.m"/>
<framework src="src/ios/lib/AMapLocationKit.framework" custom="true" />
<framework src="src/ios/lib/AMapFoundationKit.framework" custom="true" />
<framework src="JavaScriptcore.framework" weak="true"/>
<framework src="SystemConfiguration.framework" weak="true"/>
<framework src="CoreTelephony.framework" weak="true"/>
<framework src="CoreLocation.framework" weak="true"/>
<framework src="Security.framework" weak="true"/>
<framework src="libz.tbd" weak="true"/>
<framework src="libc++.tbd" weak="true"/>
<framework src="libstdc++.6.0.9.tbd" weak="true"/>
</platform>
<!-- android -->
<platform name="android">
<source-file src="src/android/java/com/tengyi/app/AMapBackgroundGeolocation.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/java/com/tengyi/app/IWifiAutoCloseDelegate.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/java/com/tengyi/app/LocationHelperService.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/java/com/tengyi/app/LocationService.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/java/com/tengyi/app/LocationStatusManager.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/java/com/tengyi/app/NetUtil.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/java/com/tengyi/app/NotiService.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/java/com/tengyi/app/PowerManagerUtil.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/java/com/tengyi/app/Utils.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/java/com/tengyi/app/WifiAutoCloseDelegate.java" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/aidl/com/tengyi/app/ILocationHelperServiceAIDL.aidl" target-dir="src/com/tengyi/app"/>
<source-file src="src/android/aidl/com/tengyi/app/ILocationServiceAIDL.aidl" target-dir="src/com/tengyi/app"/>
<lib-file src="src/android/libs/AMap_Location_V3.8.0_20180201.jar" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AMapBackgroundGeolocation">
<param name="android-package" value="com.tengyi.app.AMapBackgroundGeolocation"/>
</feature>
</config-file>
<config-file target="app/src/main/AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
</config-file>
<config-file file="app/src/main/AndroidManifest.xml" parent="/manifest/application">
<service android:name="com.amap.api.location.APSService" />
<service android:name=".LocationService" android:process=":remote1">
<intent-filter>
<action android:name="com.tengyi.app.LocationService" />
</intent-filter>
</service>
<service android:name=".LocationHelperService" android:process=":remote2">
<intent-filter>
<action android:name="com.tengyi.app.LocationHelperService" />
</intent-filter>
</service>
<meta-data android:name="com.amap.api.v2.apikey" android:value="$ANDROID_APIKEY" />
</config-file>
</platform>
</plugin>