Commit 32bbca854482da699a2a92a3c2e03b9e2be94394

Authored by 张志伟
1 parent 1086edac

升级

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