Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
react-native-amap-sdk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wind.wang
react-native-amap-sdk
Commits
ce425048
Commit
ce425048
authored
Mar 11, 2019
by
wind.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove import android.support.v7.appcompat.BuildConfig
parent
aec36296
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
+24
-3
.gitignore
.gitignore
+3
-1
.project
android/locationamap/.project
+17
-0
org.eclipse.buildship.core.prefs
...d/locationamap/.settings/org.eclipse.buildship.core.prefs
+2
-0
LocationManager.java
...main/java/io/terminus/rnamap/service/LocationManager.java
+2
-2
No files found.
.gitignore
View file @
ce425048
...
...
@@ -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
android/locationamap/.project
0 → 100644
View file @
ce425048
<?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>
android/locationamap/.settings/org.eclipse.buildship.core.prefs
0 → 100644
View file @
ce425048
connection.project.dir=
eclipse.preferences.version=1
android/locationamap/src/main/java/io/terminus/rnamap/service/LocationManager.java
View file @
ce425048
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment