merge socket replace code and update aicloud sdk version

This commit is contained in:
zhongchao
2022-03-23 21:12:27 +08:00
parent b280481882
commit f5edb94684
7 changed files with 35 additions and 28 deletions

View File

@@ -133,13 +133,13 @@ public class MogoOCHTaxiModelNew {
mContext = context.getApplicationContext();
initListeners();
IMogoServiceApis apis = MogoApisHandler.getInstance().getApis();
apis.getSocketManagerApi(mContext).init(mContext, DebugConfig.getSocketAppId());
// IMogoServiceApis apis = MogoApisHandler.getInstance().getApis();
// apis.getSocketManagerApi(mContext).init(mContext, DebugConfig.getSocketAppId());
// TODO: 2021/8/27 因需要通过此回调的location进行坐标上传暂改为全程监听退出后再反注册
// 待后续整体调整location获取来源
if (DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE) {
apis.getLocationInfoApi().start();
}
// if (DebugConfig.getCarMachineType() != DebugConfig.CAR_MACHINE_TYPE_SELF_INNOVATE) {
// apis.getLocationInfoApi().start();
// }
//2022.1.28
// 调用Disposable.dispose() 时候会出现InterruptedException 导致出现崩溃