修改了ARouter加载Hmi的路径

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2021-11-08 20:36:27 +08:00
parent 2089e2578e
commit ae9a096663
6 changed files with 8 additions and 9 deletions

View File

@@ -312,8 +312,8 @@ public class MogoApplication extends AbsMogoApplication {
MogoModulePaths.addModuleFunctionServer(new MogoModule(MogoServicePaths.PATH_AI_MONITORING, "IMoGoMonitoringProvider"));
// 小地图模块
MogoModulePaths.addModuleFunction(new MogoModule(MogoServicePaths.PATH_SMALL_MAP, "IMogoSmallMapProvider"));
// widgets 模块
MogoModulePaths.addModuleFunction(new MogoModule(MogoServicePaths.PATH_V2X_WARNING, "IMoGoWaringProvider"));
// HMI模块
MogoModulePaths.addModuleFunction(new MogoModule(MogoServicePaths.PATH_HMI, "IMoGoWaringProvider"));
// V2X 模块
MogoModulePaths.addBaseModule(new MogoModule(MogoServicePaths.PATH_V2X_MODULE, "V2XProvider"));

View File

@@ -39,7 +39,7 @@ import kotlinx.android.synthetic.main.fragment_hmi.*
* @date 2021/8/3 2:40 下午
* 预警图层
*/
@Route(path = MogoServicePaths.PATH_V2X_WARNING)
@Route(path = MogoServicePaths.PATH_HMI)
class MoGoHmiFragment : MvpFragment<MoGoWarningContract.View?, WaringPresenter?>(),
IMoGoWaringProvider,
MoGoWarningContract.View {

View File

@@ -353,11 +353,11 @@ public class MogoServicePaths {
public static final String PATH_V2X_FRONT_CRASH_WARNING = "/front/crashwarning";
/**
* warning 模块
* HMI 模块
*/
@Keep
@Deprecated
public static final String PATH_V2X_WARNING = "/warning/api";
public static final String PATH_HMI = "/hmi/api";
/**
* obu-mogo 模块

View File

@@ -1,6 +1,5 @@
package com.mogo.eagle.core.function.call.hmi
import com.mogo.eagle.core.data.camera.Camera
import com.mogo.eagle.core.data.constants.MogoServicePaths
import com.mogo.eagle.core.data.enums.WarningDirectionEnum
import com.mogo.eagle.core.data.notice.NoticeNormalData
@@ -17,7 +16,7 @@ import com.mogo.eagle.core.function.call.base.CallerBase
*/
object CallerHmiManager : CallerBase() {
private val waringProviderApi: IMoGoWaringProvider
get() = getApiInstance(IMoGoWaringProvider::class.java, MogoServicePaths.PATH_V2X_WARNING)
get() = getApiInstance(IMoGoWaringProvider::class.java, MogoServicePaths.PATH_HMI)
/**
* 隐藏 脉速表

View File

@@ -175,7 +175,7 @@ public class MogoModulesManager implements MogoModulesHandler {
@Override
public void loadWaringModule(int containerId) {
IMoGoFunctionProvider provider = ( IMoGoFunctionProvider ) ARouter.getInstance()
.build( MogoServicePaths.PATH_V2X_WARNING )
.build( MogoServicePaths.PATH_HMI)
.navigation( getContext() );
addFragment( provider, containerId );
}

View File

@@ -238,7 +238,7 @@ public class MogoServiceApis implements IMogoServiceApis {
@Override
public IMoGoWaringProvider getWaringProviderApi() {
return getApiInstance(IMoGoWaringProvider.class, MogoServicePaths.PATH_V2X_WARNING);
return getApiInstance(IMoGoWaringProvider.class, MogoServicePaths.PATH_HMI);
}
@Override