[Upload]
删除冗余代码 MoGoEagleEye.modules.mogo-module-map MoGoEagleEye.modules.mogo-module-service MoGoEagleEye.modules.mogo-module-share MoGoEagleEye.services.mogo-service-api Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import android.util.Log;
|
||||
|
||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths;
|
||||
import com.mogo.eagle.core.network.utils.GsonUtil;
|
||||
import com.mogo.map.navi.IMogoAimlessModeListener;
|
||||
import com.mogo.map.navi.MogoCongestionInfo;
|
||||
@@ -15,7 +16,6 @@ import com.mogo.module.common.entity.RoadTrafficSegment;
|
||||
import com.mogo.module.common.entity.RoadTrafficStatus;
|
||||
import com.mogo.module.common.entity.UploadTrafficEntity;
|
||||
import com.mogo.module.share.net.TrafficModelData;
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -39,12 +39,6 @@ public class GaoDeAimlessProvider implements IProvider {
|
||||
mTanluModelData = new TrafficModelData();
|
||||
}
|
||||
|
||||
// 开启巡航监听
|
||||
MogoApisHandler.getInstance()
|
||||
.getApis()
|
||||
.getMapServiceApi()
|
||||
.getAimless(context)
|
||||
.setAimlessModeStatus(true);
|
||||
|
||||
// 注册高德巡航回调
|
||||
MogoApisHandler.getInstance()
|
||||
|
||||
@@ -3,9 +3,6 @@ package com.mogo.module.share;
|
||||
import android.content.Context;
|
||||
|
||||
import com.mogo.map.location.IMogoLocationClient;
|
||||
import com.mogo.map.navi.IMogoAimless;
|
||||
import com.mogo.map.search.poisearch.IMogoPoiSearch;
|
||||
import com.mogo.map.search.poisearch.query.MogoPoiSearchQuery;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.service.IMogoServiceApis;
|
||||
import com.mogo.service.analytics.IMogoAnalytics;
|
||||
@@ -13,7 +10,6 @@ import com.mogo.service.intent.IMogoIntentManager;
|
||||
import com.mogo.service.map.IMogoMapService;
|
||||
import com.mogo.service.module.IMogoRegisterCenter;
|
||||
import com.mogo.service.statusmanager.IMogoStatusManager;
|
||||
import com.mogo.service.windowview.IMogoTopViewManager;
|
||||
|
||||
/**
|
||||
* @author lixiaopeng
|
||||
@@ -23,15 +19,12 @@ import com.mogo.service.windowview.IMogoTopViewManager;
|
||||
*/
|
||||
public class TanluServiceManager {
|
||||
private static IMogoMapService mMapService;
|
||||
private static IMogoPoiSearch mPoiSearch;
|
||||
private static IMogoLocationClient mLocationClient;
|
||||
private static IMogoServiceApis mServiceApis;
|
||||
private static IMogoStatusManager mIMogoStatusManager;
|
||||
private static IMogoAnalytics mAnalytics;
|
||||
private static IMogoIntentManager mogoIntentManager;
|
||||
private static IMogoRegisterCenter mogoRegisterCenter;
|
||||
private static IMogoTopViewManager mIMogoTopViewManager;
|
||||
private static IMogoAimless mIMogoAimless;
|
||||
|
||||
public static void init(Context context) {
|
||||
mServiceApis = MogoApisHandler.getInstance().getApis();
|
||||
@@ -40,16 +33,9 @@ public class TanluServiceManager {
|
||||
mAnalytics = mServiceApis.getAnalyticsApi();
|
||||
mogoIntentManager = mServiceApis.getIntentManagerApi();
|
||||
mogoRegisterCenter = mServiceApis.getRegisterCenterApi();
|
||||
mIMogoAimless = mMapService.getAimless(context);
|
||||
|
||||
mIMogoTopViewManager = mServiceApis.getTopViewManager();
|
||||
mPoiSearch = mMapService.getPoiSearch(context, new MogoPoiSearchQuery());
|
||||
mLocationClient = mMapService.getSingletonLocationClient(context);
|
||||
}
|
||||
|
||||
public static IMogoTopViewManager getIMogoTopViewManager() {
|
||||
return mIMogoTopViewManager;
|
||||
}
|
||||
|
||||
public static IMogoRegisterCenter getIMogoRegisterCenter() {
|
||||
return mogoRegisterCenter;
|
||||
@@ -59,10 +45,6 @@ public class TanluServiceManager {
|
||||
return mMapService;
|
||||
}
|
||||
|
||||
public static IMogoPoiSearch getPoiSearch() {
|
||||
return mPoiSearch;
|
||||
}
|
||||
|
||||
public static IMogoLocationClient getLocationClient() {
|
||||
return mLocationClient;
|
||||
}
|
||||
@@ -83,7 +65,4 @@ public class TanluServiceManager {
|
||||
return mServiceApis;
|
||||
}
|
||||
|
||||
public static IMogoAimless getMogoAimless() {
|
||||
return mIMogoAimless;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user