Commit 32bbca854482da699a2a92a3c2e03b9e2be94394
1 parent
1086edac
升级
Showing
2 changed files
with
4 additions
and
1 deletions
lib/android/src/main/java/cn/feewee/amap3d/modules/AMapGeolocationModule.java
@@ -7,6 +7,7 @@ import com.amap.api.location.AMapLocationListener; | @@ -7,6 +7,7 @@ import com.amap.api.location.AMapLocationListener; | ||
7 | import com.amap.api.services.core.AMapException; | 7 | import com.amap.api.services.core.AMapException; |
8 | import com.amap.api.services.core.LatLonPoint; | 8 | import com.amap.api.services.core.LatLonPoint; |
9 | import com.amap.api.services.core.PoiItemV2; | 9 | import com.amap.api.services.core.PoiItemV2; |
10 | +import com.amap.api.services.core.ServiceSettings; | ||
10 | import com.amap.api.services.geocoder.GeocodeSearch; | 11 | import com.amap.api.services.geocoder.GeocodeSearch; |
11 | import com.amap.api.services.geocoder.RegeocodeAddress; | 12 | import com.amap.api.services.geocoder.RegeocodeAddress; |
12 | import com.amap.api.services.geocoder.RegeocodeQuery; | 13 | import com.amap.api.services.geocoder.RegeocodeQuery; |
@@ -64,6 +65,8 @@ public class AMapGeolocationModule extends ReactContextBaseJavaModule implements | @@ -64,6 +65,8 @@ public class AMapGeolocationModule extends ReactContextBaseJavaModule implements | ||
64 | AMapLocationClient.setApiKey(key); | 65 | AMapLocationClient.setApiKey(key); |
65 | AMapLocationClient.updatePrivacyShow(reactContext, true, true); | 66 | AMapLocationClient.updatePrivacyShow(reactContext, true, true); |
66 | AMapLocationClient.updatePrivacyAgree(reactContext, true); | 67 | AMapLocationClient.updatePrivacyAgree(reactContext, true); |
68 | + ServiceSettings.updatePrivacyShow(reactContext,true,true); | ||
69 | + ServiceSettings.updatePrivacyAgree(reactContext,true); | ||
67 | client = new AMapLocationClient(reactContext); | 70 | client = new AMapLocationClient(reactContext); |
68 | geocodeSearch = new GeocodeSearch(reactContext); | 71 | geocodeSearch = new GeocodeSearch(reactContext); |
69 | client.setLocationListener(this); | 72 | client.setLocationListener(this); |
package.json
1 | { | 1 | { |
2 | "name": "@cqfw/react-native-amap3d", | 2 | "name": "@cqfw/react-native-amap3d", |
3 | - "version": "0.2.3", | 3 | + "version": "0.2.4", |
4 | "description": "react-native 高德地图组件,支持 Android + iOS", | 4 | "description": "react-native 高德地图组件,支持 Android + iOS", |
5 | "author": "feewee", | 5 | "author": "feewee", |
6 | "license": "MIT", | 6 | "license": "MIT", |