opt
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
package com.mogo.module.common;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-23
|
||||
@@ -10,26 +16,27 @@ import androidx.annotation.Keep;
|
||||
*/
|
||||
public class MogoModulePaths {
|
||||
|
||||
private static List< String > mModulesPath = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* 地图模块 fragment 路径
|
||||
*/
|
||||
public static final String PATH_MODULE_MAP = "/map/ui";
|
||||
|
||||
/**
|
||||
* 测试模块
|
||||
*/
|
||||
public static final String PATH_MODULE_DEMO = "/demo/ui";
|
||||
|
||||
/**
|
||||
* 测试模块
|
||||
*/
|
||||
public static final String PATH_MODULE_DEMO2 = "/demo2/ui";
|
||||
|
||||
/**
|
||||
* app列表模块实例化路径
|
||||
*/
|
||||
@Keep
|
||||
public static final String PATH_MODULE_APPS = "/appslist/ui";
|
||||
|
||||
public static void addModule( String path ) {
|
||||
if ( TextUtils.isEmpty( path.replace( " ", "" ) ) ) {
|
||||
throw new IllegalArgumentException( "module path can't be empty or null or blank" );
|
||||
}
|
||||
mModulesPath.add( path );
|
||||
}
|
||||
|
||||
public static List< String > getModulesPath() {
|
||||
return mModulesPath;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user