2026-04-13 19:34:58 +08:00
|
|
|
package com.nova.brain.glass;
|
2026-04-13 16:37:34 +08:00
|
|
|
|
|
|
|
|
import com.xuqm.base.App;
|
|
|
|
|
import com.xuqm.base.di.component.AppComponent;
|
|
|
|
|
import com.xuqm.base.di.manager.HttpManager;
|
2026-04-13 19:34:58 +08:00
|
|
|
import com.nova.brain.glass.common.CrashHandler;
|
|
|
|
|
import com.nova.brain.glass.repository.HeaderInterceptor;
|
2026-04-13 16:37:34 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author xuqm
|
|
|
|
|
*/
|
|
|
|
|
public class MyApplication extends App {
|
|
|
|
|
|
|
|
|
|
public static String baseUrl = "http://10.10.203.120:31734";
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onCreate() {
|
|
|
|
|
super.onCreate();
|
|
|
|
|
appComponent = HttpManager.getAppComponent(baseUrl, new HeaderInterceptor(getApplicationContext()));
|
|
|
|
|
|
|
|
|
|
CrashHandler.getInstance().init(this);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean showLog() {
|
|
|
|
|
return super.showLog();
|
|
|
|
|
}
|
|
|
|
|
}
|