Commit ce425048 authored by wind.wang's avatar wind.wang

remove import android.support.v7.appcompat.BuildConfig

parent aec36296
......@@ -10,4 +10,6 @@ Pods/
local.properties
Podfile.lock
package-lock.json
yarn.lock
\ No newline at end of file
yarn.lock
android/locationamap/.project
android/locationamap/.settings/
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>locationamap</name>
<comment>Project locationamap created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
connection.project.dir=
eclipse.preferences.version=1
package io.terminus.rnamap.service;
import android.support.v7.appcompat.BuildConfig;
// import android.support.v7.appcompat.BuildConfig;
import android.util.Log;
import com.amap.api.location.AMapLocation;
......@@ -86,7 +86,7 @@ public class LocationManager extends ReactContextBaseJavaModule implements AMapL
mLocationOption.setOnceLocation(true); // 仅单次定位
mLocationOption.setOnceLocationLatest(true); // 获取最近3s内精度最高的一次定位结果
mLocationOption.setNeedAddress(true); // 设置是否返回地址信息(默认返回地址信息)
mLocationOption.setMockEnable(BuildConfig.DEBUG); // Debug模式允许mock gps
// mLocationOption.setMockEnable(BuildConfig.DEBUG); // Debug模式允许mock gps
mLocationClient.setLocationOption(mLocationOption);
return mLocationClient;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment