34 行
1.1 KiB
Java
34 行
1.1 KiB
Java
|
|
package com.bjca.hp.acupuncture;
|
||
|
|
|
||
|
|
import com.xuqm.base.App;
|
||
|
|
import com.xuqm.base.di.component.AppComponent;
|
||
|
|
import com.xuqm.base.di.manager.HttpManager;
|
||
|
|
import com.bjca.hp.acupuncture.common.CrashHandler;
|
||
|
|
import com.bjca.hp.acupuncture.repository.HeaderInterceptor;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @author xuqm
|
||
|
|
*/
|
||
|
|
public class MyApplication extends App {
|
||
|
|
|
||
|
|
public static String baseUrl = "http://10.10.203.120:31734";
|
||
|
|
public static AppComponent appComponent1;
|
||
|
|
public static AppComponent appComponent2;
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void onCreate() {
|
||
|
|
super.onCreate();
|
||
|
|
appComponent = HttpManager.getAppComponent(baseUrl, new HeaderInterceptor(getApplicationContext()));
|
||
|
|
appComponent1 = HttpManager.getAppComponent("http://10.10.203.120:35662", new HeaderInterceptor(getApplicationContext()));
|
||
|
|
appComponent2 = HttpManager.getAppComponent("http://10.10.203.120:31669", new HeaderInterceptor(getApplicationContext()));
|
||
|
|
|
||
|
|
CrashHandler.getInstance().init(this);
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public boolean showLog() {
|
||
|
|
return super.showLog();
|
||
|
|
}
|
||
|
|
}
|