[2.13.0-arch-opt] add v2x sdk foundation gradle setting

This commit is contained in:
zhongchao
2023-02-23 16:38:43 +08:00
parent 3c9b069f2f
commit a8c80e8095
6 changed files with 122 additions and 77 deletions

View File

@@ -69,4 +69,4 @@ dependencies {
}
}
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
//apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()

View File

@@ -133,12 +133,7 @@ class HttpDnsStartUp : AndroidStartup<Boolean>() {
HttpDnsSimpleLocation(envConfig.cityCode, envConfig.lat, envConfig.lon)
return httpDnsSimpleLocation
}
var mogoLocation: MogoLocation? = null
val locationClient =
CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02()
if (locationClient != null) {
mogoLocation = locationClient
}
val mogoLocation: MogoLocation? = CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02()
if (mogoLocation != null && mogoLocation.latitude != 0.0 && mogoLocation.longitude != 0.0) {
// 更新
httpDnsSimpleLocation = if (