|
|
|
|
@@ -7,6 +7,7 @@ import androidx.multidex.MultiDex;
|
|
|
|
|
import com.alibaba.android.arouter.launcher.ARouter;
|
|
|
|
|
import com.mogo.commons.AbsMogoApplication;
|
|
|
|
|
import com.mogo.commons.debug.DebugConfig;
|
|
|
|
|
import com.mogo.module.adcard.AdCardConstants;
|
|
|
|
|
import com.mogo.module.carchatting.card.CallChatConstant;
|
|
|
|
|
import com.mogo.module.common.MogoModule;
|
|
|
|
|
import com.mogo.module.common.MogoModulePaths;
|
|
|
|
|
@@ -30,24 +31,26 @@ public class MogoApplication extends AbsMogoApplication {
|
|
|
|
|
super.onCreate();
|
|
|
|
|
// MogoModulePaths.addModule( new MogoModule( DemoConstants.TAG, "CARD_DEMO" ) );
|
|
|
|
|
// MogoModulePaths.addModule( new MogoModule( Demo2Constants.TAG, "CARD_DEMO2" ) );
|
|
|
|
|
DebugConfig.setNetMode( BuildConfig.NET_ENV );
|
|
|
|
|
MogoModulePaths.addModule( new MogoModule( OnLineCarConstants.TAG, OnLineCarConstants.MODULE_NAME ) );
|
|
|
|
|
MogoModulePaths.addModule( new MogoModule( TanluConstants.TAG, TanluConstants.MODEL_NAME ) );
|
|
|
|
|
MogoModulePaths.addModule( new MogoModule( CallChatConstant.PROVIDER, CallChatConstant.MODULE_NAME ) );
|
|
|
|
|
DebugConfig.setNetMode(BuildConfig.NET_ENV);
|
|
|
|
|
//运营位卡片,需要默认显示,放在第一个加载
|
|
|
|
|
MogoModulePaths.addModule(new MogoModule(AdCardConstants.TAG, AdCardConstants.MODULE_NAME));
|
|
|
|
|
MogoModulePaths.addModule(new MogoModule(OnLineCarConstants.TAG, OnLineCarConstants.MODULE_NAME));
|
|
|
|
|
MogoModulePaths.addModule(new MogoModule(TanluConstants.TAG, TanluConstants.MODEL_NAME));
|
|
|
|
|
MogoModulePaths.addModule(new MogoModule(CallChatConstant.PROVIDER, CallChatConstant.MODULE_NAME));
|
|
|
|
|
MogoModulePaths.addModule(new MogoModule(MediaConstants.TAG, MediaConstants.MODULE_TYPE));
|
|
|
|
|
MogoModulePaths.addModule( new MogoModule( PushUIConstants.TAG, PushUIConstants.TAG ) );
|
|
|
|
|
MogoModulePaths.addModule(new MogoModule(PushUIConstants.TAG, PushUIConstants.TAG));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void init() {
|
|
|
|
|
super.init();
|
|
|
|
|
IMogoSocketManager mMogoSocketManager = ( IMogoSocketManager ) ARouter.getInstance().build( MogoServicePaths.PATH_SOCKET_MANAGER ).navigation();
|
|
|
|
|
mMogoSocketManager.init( getApplicationContext(), BuildConfig.APPLICATION_ID );
|
|
|
|
|
IMogoSocketManager mMogoSocketManager = (IMogoSocketManager) ARouter.getInstance().build(MogoServicePaths.PATH_SOCKET_MANAGER).navigation();
|
|
|
|
|
mMogoSocketManager.init(getApplicationContext(), BuildConfig.APPLICATION_ID);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected void attachBaseContext( Context base ) {
|
|
|
|
|
super.attachBaseContext( base );
|
|
|
|
|
MultiDex.install( base );
|
|
|
|
|
protected void attachBaseContext(Context base) {
|
|
|
|
|
super.attachBaseContext(base);
|
|
|
|
|
MultiDex.install(base);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|