升级ADAS版本,控制台输出adas版本信息

开始重构ADAS的相关内容

Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
董宏宇
2021-10-14 14:51:05 +08:00
parent 8f9bcb9098
commit b1bb68d57b
22 changed files with 196 additions and 123 deletions

View File

@@ -15,10 +15,12 @@ import java.util.List;
*/
public class MogoModulePaths {
private static final List< MogoModule > mMogoModules = new ArrayList<>();
private static final List<MogoModule> mMogoModules = new ArrayList<>();
// 不需要启动APP也能运行的模块
private static final List< MogoModule > mMogoBaseModules = new ArrayList<>();
private static final List<MogoModule> mMogoBaseModules = new ArrayList<>();
private static final List<MogoModule> mModuleFunctions = new ArrayList<>();
/**
* 地图模块 fragment 路径
@@ -36,15 +38,6 @@ public class MogoModulePaths {
*/
public static final String PATH_ENTRANCE = "/extension/entrance";
/**
* 音乐播放入口
*/
public static final String PATH_MEDIA = "/media/ui";
/**
* 引导页面
*/
public static final String PATH_GUIDE = "/guide/showFragment";
/**
* 添加卡片模块
@@ -52,8 +45,8 @@ public class MogoModulePaths {
* @param path
*/
@Deprecated
public static void addModule( String path ) {
throw new IllegalArgumentException( "this method can't be invoked." );
public static void addModule(String path) {
throw new IllegalArgumentException("this method can't be invoked.");
}
/**
@@ -61,30 +54,46 @@ public class MogoModulePaths {
*
* @param module
*/
public static void addModule( MogoModule module ) {
if ( module == null || TextUtils.isEmpty( module.getPath().replace( " ", "" ) ) ) {
throw new IllegalArgumentException( "module path can't be empty or null or blank" );
public static void addModule(MogoModule module) {
if (module == null || TextUtils.isEmpty(module.getPath().replace(" ", ""))) {
throw new IllegalArgumentException("module path can't be empty or null or blank");
}
mMogoModules.add( module );
mMogoModules.add(module);
}
/**
* 添加卡片模块
* 添加模块功能
*
* @param module 功能模块
*/
public static void addModuleFunction(MogoModule module) {
if (module == null || TextUtils.isEmpty(module.getPath().replace(" ", ""))) {
throw new IllegalArgumentException("module path can't be empty or null or blank");
}
mModuleFunctions.add(module);
}
/**
* 添加基础模块
*
* @param module
*/
public static void addBaseModule( MogoModule module ) {
if ( module == null || TextUtils.isEmpty( module.getPath().replace( " ", "" ) ) ) {
throw new IllegalArgumentException( "module path can't be empty or null or blank" );
public static void addBaseModule(MogoModule module) {
if (module == null || TextUtils.isEmpty(module.getPath().replace(" ", ""))) {
throw new IllegalArgumentException("module path can't be empty or null or blank");
}
mMogoBaseModules.add( module );
mMogoBaseModules.add(module);
}
public static List< MogoModule > getModules() {
public static List<MogoModule> getModules() {
return mMogoModules;
}
public static List< MogoModule > getBaseModules() {
public static List<MogoModule> getBaseModules() {
return mMogoBaseModules;
}
public static List<MogoModule> getModuleFunctions() {
return mModuleFunctions;
}
}