Merge branch 'renwj/fix_code' into 'dev_MogoAP_eagle-1030_211020_8.0.14'
[Fix]解决ALocationClien定位信息因为使用实时上传的时候当接入工控机位置回调信息会丢失 See merge request zhjt/AndroidApp/MoGoEagleEye!2
This commit is contained in:
@@ -50,7 +50,6 @@ dependencies {
|
||||
implementation rootProject.ext.dependencies.rxandroid
|
||||
|
||||
kapt rootProject.ext.dependencies.aroutercompiler
|
||||
|
||||
implementation rootProject.ext.dependencies.adasHigh
|
||||
|
||||
if (Boolean.valueOf(USE_MAVEN_PACKAGE)) {
|
||||
@@ -58,11 +57,13 @@ dependencies {
|
||||
implementation rootProject.ext.dependencies.mogo_core_utils
|
||||
implementation rootProject.ext.dependencies.mogo_core_function_api
|
||||
implementation rootProject.ext.dependencies.mogo_core_function_call
|
||||
implementation rootProject.ext.dependencies.modulecommon
|
||||
} else {
|
||||
implementation project(':core:mogo-core-data')
|
||||
implementation project(':core:mogo-core-utils')
|
||||
implementation project(':core:mogo-core-function-api')
|
||||
implementation project(':core:mogo-core-function-call')
|
||||
implementation project(':modules:mogo-module-common')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.mogo.eagle.core.function.impl.map
|
||||
|
||||
import android.content.Context
|
||||
import com.alibaba.android.arouter.facade.annotation.Route
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths
|
||||
import com.mogo.eagle.core.function.api.map.location.IMoGoLocationUpdater4AutoPilot
|
||||
import com.mogo.eagle.core.utilcode.util.Utils
|
||||
import com.mogo.module.common.MogoApisHandler
|
||||
import com.mogo.service.IMogoServiceApis
|
||||
|
||||
|
||||
@Route(path = MogoServicePaths.PATH_MAP_LOCATION_UPDATE_4_AUTO_PILOT)
|
||||
class MoGoLocationUpdater4AutoPilot: IMoGoLocationUpdater4AutoPilot {
|
||||
|
||||
private val TAG = "MoGoLocationUpdater4AutoPilot"
|
||||
|
||||
override val functionName = TAG;
|
||||
|
||||
private val api: IMogoServiceApis? by lazy {
|
||||
MogoApisHandler.getInstance().apis
|
||||
}
|
||||
|
||||
override fun updateLocation(location: Any?) {
|
||||
api?.mapServiceApi?.getSingletonLocationClient(Utils.getApp())?.updateLocation(location);
|
||||
}
|
||||
|
||||
override fun init(context: Context?) {
|
||||
//DO NOTING
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
//DO NOTHING
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user