删除了MoGoWarningProvider.kt, 由MoGoHmiFragment接管处理。
Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -23,10 +23,10 @@ import com.mogo.commons.network.Constants;
|
||||
import com.mogo.commons.network.ParamsUtil;
|
||||
import com.mogo.commons.network.X509TrustManagerImpl;
|
||||
import com.mogo.commons.storage.SpStorage;
|
||||
import com.mogo.eagle.core.utilcode.util.Utils;
|
||||
import com.mogo.utils.ThreadPoolService;
|
||||
import com.mogo.eagle.core.utilcode.mogo.toast.TipDrawable;
|
||||
import com.mogo.eagle.core.utilcode.mogo.toast.TipToast;
|
||||
import com.mogo.eagle.core.utilcode.util.Utils;
|
||||
import com.mogo.utils.ThreadPoolService;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
import com.mogo.utils.network.NetConfig;
|
||||
|
||||
@@ -110,6 +110,9 @@ public abstract class AbsMogoApplication extends Application {
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化自定义 Toast View
|
||||
*/
|
||||
private View generateToastView(Context context, String message, TipDrawable tipDrawable) {
|
||||
View contentView;
|
||||
if (tipDrawable == null) {
|
||||
@@ -143,6 +146,9 @@ public abstract class AbsMogoApplication extends Application {
|
||||
return sc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步初始化
|
||||
*/
|
||||
protected void asyncInit() {
|
||||
ThreadPoolService.execute(() -> {
|
||||
initNetConfig();
|
||||
@@ -156,12 +162,17 @@ public abstract class AbsMogoApplication extends Application {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 异步厨初始化
|
||||
*/
|
||||
protected void asyncInitImpl() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化网络配置
|
||||
*/
|
||||
private static void initNetConfig() {
|
||||
|
||||
try {
|
||||
SSLContext sc = getSslContext();
|
||||
NetConfig.instance().setSslContext(sc);
|
||||
@@ -192,8 +203,12 @@ public abstract class AbsMogoApplication extends Application {
|
||||
.setLoggable(DebugConfig.isDebug());
|
||||
}
|
||||
|
||||
// 缓存IP地址
|
||||
private String cacheIp = null;
|
||||
|
||||
/**
|
||||
* 请求获取最新的 DNS 微服务 域名信息
|
||||
*/
|
||||
protected void registerSocketHttpDnsTTL(String host) {
|
||||
sApis.addressChangedListener(map -> {
|
||||
Logger.d("TEST-SOCKET", "ttl callBack ,ready to getCache Dns IP");
|
||||
|
||||
Reference in New Issue
Block a user