@@ -58,6 +58,7 @@ dependencies {
|
||||
implementation project(':services:mogo-service-api')
|
||||
|
||||
implementation project(':core:mogo-core-utils')
|
||||
implementation project(':core:mogo-core-function-call')
|
||||
}
|
||||
implementation 'com.tencent.bugly:crashreport_upgrade:latest.release'
|
||||
//其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
|
||||
|
||||
@@ -21,6 +21,7 @@ import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import com.mogo.commons.voice.AIAssist;
|
||||
import com.mogo.eagle.core.function.call.check.CallerCheckManager;
|
||||
import com.mogo.eagle.core.function.check.R;
|
||||
import com.mogo.eagle.core.function.check.model.CheckItemInfo;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
@@ -128,7 +129,7 @@ public class CheckActivity extends AppCompatActivity {
|
||||
hardware();
|
||||
//根据以上4个结果插入第一个元素(自动驾驶车辆是否存在风险)
|
||||
topListTitle();
|
||||
MogoApisHandler.getInstance().getApis().getCheckProvider().updateMonitoringStatus(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING,false);
|
||||
CallerCheckManager.updateMonitoringStatus(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING,false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ android {
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
||||
|
||||
implementation rootProject.ext.dependencies.androidxappcompat
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
|
||||
} else {
|
||||
|
||||
@@ -0,0 +1,398 @@
|
||||
package com.mogo.eagle.core.data.constants;
|
||||
|
||||
import androidx.annotation.Keep;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2019-12-23
|
||||
* <p>
|
||||
* 对外服务模块路径
|
||||
* <p>
|
||||
* <p>
|
||||
* 使用方式:
|
||||
* <p>
|
||||
* Arouter.getInstance().path("").navigate()
|
||||
*/
|
||||
@Keep
|
||||
public class MogoServicePaths {
|
||||
|
||||
/**
|
||||
* 地图服务接口ARouter实例化路径
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SERVICES_MAP = "/mapservices/api";
|
||||
|
||||
/**
|
||||
* 图片接口ARouter实例化路径
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_UTILS_IMAGE_LOADER = "/imageloader/api";
|
||||
|
||||
/**
|
||||
* 埋点接口ARouter实例化路径
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_UTILS_ANALYTICS = "/utils/analytics";
|
||||
|
||||
|
||||
/**
|
||||
* 网络服务接口路径
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SERVICES_NETWORK = "/networkservices/api";
|
||||
|
||||
/**
|
||||
* netty 长链
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SOCKET_MANAGER = "/socket/manager";
|
||||
|
||||
/**
|
||||
* WebSocket 长链
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_WEB_SOCKET_MANAGER = "/websocket/manager";
|
||||
|
||||
/**
|
||||
* 状态管理接口
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_STATUS_MANAGER = "/statusmanager/api";
|
||||
|
||||
/**
|
||||
* 消息中心
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_MSG_CENTER = "/msgcenter/api";
|
||||
|
||||
/**
|
||||
* 消息中心
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_WINDOW_MANAGER = "/windowmanger/api";
|
||||
|
||||
/**
|
||||
* 卡片控制
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_CARD_MANAGER = "/cardmanager/api";
|
||||
|
||||
/**
|
||||
* 管理 fragment
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_FRAGMENT_MANAGER = "/fragmentmanager/api";
|
||||
|
||||
/**
|
||||
* 免唤醒语音控制
|
||||
*
|
||||
* @deprecated use {@link #PATH_INTENT_MANAGER} instead.
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_VOICE_MANAGER = "/voicemanager/api";
|
||||
|
||||
/**
|
||||
* 意图控制接口
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_INTENT_MANAGER = "/intentmanager/api";
|
||||
|
||||
/**
|
||||
* 基础功能监听回调注册
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_REGISTER_CENTER = "/registercenter/api";
|
||||
|
||||
/**
|
||||
* 基础家和公司管理
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_ADDRESS_MANAGER = "/addressmanager/api";
|
||||
|
||||
/**
|
||||
* 导航搜索模块管理
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SEARCH_MANAGER = "/searchmanager/api";
|
||||
|
||||
/**
|
||||
* 基础设置参数管理
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SETTING_MANAGER = "/settingmanager/api";
|
||||
|
||||
|
||||
/**
|
||||
* 搜索module管理中心
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SERACH_CENTER = "/searchcenter/api";
|
||||
|
||||
/**
|
||||
* 大而全数据管理中心
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_DATA_MANAGER = "/datamanager/api";
|
||||
|
||||
/**
|
||||
* adas 控制
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_ADAS_CONTROLLER = "/adascontroller/api";
|
||||
|
||||
/**
|
||||
* 接口集合
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SERVICE_APIS = "/mogoservice/apis";
|
||||
|
||||
/**
|
||||
* 动作指令
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_ACTION_APIS = "/mogoaction/api";
|
||||
|
||||
/**
|
||||
* 刷新策略控制
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_REFRESH_STRATEGY_API = "/refreshstrategy/api";
|
||||
|
||||
/**
|
||||
* 刷新策略控制
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_LAUNCHER_API = "/launcher/api";
|
||||
|
||||
/**
|
||||
* 入口按钮
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_ENTRANCE_BUTTON_API = "/entrancebutton/api";
|
||||
|
||||
/**
|
||||
* 顶部1/2屏管理
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_EXTENSIONS_TOP_VIEW_MANAGER = "/topview/api";
|
||||
|
||||
/**
|
||||
* 浓雾等极端事件特殊效果
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_MAIN_DISPLAY_EFFECTS_MANAGER = "/displayeffects/api";
|
||||
|
||||
/**
|
||||
* 其他模块调用公共的marker打点
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_MARKER_SERVICE = "/mogomarker/api";
|
||||
|
||||
/**
|
||||
* 其他模块调用分享框
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SHARE = "/extensions/share";
|
||||
|
||||
/**
|
||||
* obu相关接口
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_OBU = "/obu/api";
|
||||
|
||||
/**
|
||||
* 事件面板
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_EVENT_PANEL = "/event/panel";
|
||||
|
||||
/**
|
||||
* 左侧面板
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_LEFT_PANEL = "/left/panel";
|
||||
|
||||
/**
|
||||
* 比亚迪模块
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SPLASH = "/splash/api";
|
||||
|
||||
/**
|
||||
* 位置上报
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_LOCATION_INFO = "/locationinfo/api";
|
||||
|
||||
/**
|
||||
* passport
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_PASSPORT = "/passport/api";
|
||||
|
||||
/**
|
||||
* 授权服务
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_AGREEMENT = "/agreement/showFragment";
|
||||
|
||||
/**
|
||||
* 日志上传
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_MOGO_MONITOR = "/monitor/api";
|
||||
|
||||
/**
|
||||
* 探路api
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_TANLU_API = "/tanlulib/api";
|
||||
|
||||
/**
|
||||
* 策略上报
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_STRATEGY_SHARE = "/share/strategy";
|
||||
|
||||
/**
|
||||
* 分享模块中,交通状况服务上报
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_TRAFFIC_UPLOAD = "/share/traffic";
|
||||
|
||||
/**
|
||||
* 高德地图巡航上报
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_GAODE_AIMLESS_SHARE = "/share/gaodeAimless";
|
||||
|
||||
/**
|
||||
* 探路ui
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_TANLU_UI_API = "/tanlu/ui";
|
||||
|
||||
/**
|
||||
* 碰撞报警模块 已碰撞
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_CRASH_WARNING = "/crash/warning";
|
||||
|
||||
/**
|
||||
* 悬浮小控件
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_WIDGETS = "/widgets/provider";
|
||||
|
||||
/**
|
||||
* 在线好友面板
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_ONLINE_CAR_PANEL = "/onlinecar/panel";
|
||||
|
||||
/**
|
||||
* 全局免唤醒
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_GLOBAL_UNWAKE = "/global/unwake";
|
||||
|
||||
/**
|
||||
* 返回悬浮按钮
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_BACK = "/back2launcher/ui";
|
||||
|
||||
/**
|
||||
* 自研地图和高德地图切换
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_MAP_FRAME_CONTROLLER = "/mapframe/controller";
|
||||
|
||||
/**
|
||||
* 小地图控件
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_SMALL_MAP = "/small_map/api";
|
||||
|
||||
/**
|
||||
* ADAS 模块
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_ADAS = "/adas/api";
|
||||
|
||||
/**
|
||||
* 车辆检测 模块
|
||||
*/
|
||||
public static final String PATH_CHECK = "/check/api";
|
||||
|
||||
/**
|
||||
* 前方碰撞预警 未碰撞
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_V2X_FRONT_CRASH_WARNING = "/front/crashwarning";
|
||||
|
||||
/**
|
||||
* warning 模块
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_V2X_WARNING = "/warning/api";
|
||||
|
||||
/**
|
||||
* obu-mogo 模块
|
||||
*/
|
||||
@Keep
|
||||
@Deprecated
|
||||
public static final String PATH_V2X_OBU_MOGO = "/obu_mogo/api";
|
||||
}
|
||||
@@ -43,13 +43,16 @@ android {
|
||||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation rootProject.ext.dependencies.kotlinstdlibjdk7
|
||||
|
||||
implementation rootProject.ext.dependencies.arouter
|
||||
kapt rootProject.ext.dependencies.aroutercompiler
|
||||
|
||||
if (Boolean.valueOf(RELEASE)) {
|
||||
|
||||
} else {
|
||||
implementation project(':core:mogo-core-data')
|
||||
implementation project(':core:mogo-core-utils')
|
||||
implementation project(':core:mogo-core-function-api')
|
||||
implementation project(':core:function-impl:mogo-core-function-hmi')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.mogo.eagle.core.function.call.check;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths;
|
||||
import com.mogo.eagle.core.function.api.check.ICheckProvider;
|
||||
import com.mogo.eagle.core.function.api.check.IMogoCheckListener;
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase;
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
* @date 2021/9/17 8:26 下午
|
||||
*/
|
||||
public class CallerCheckManager extends CallerBase {
|
||||
|
||||
private static ICheckProvider getCheckProvider() {
|
||||
return getApiInstance(ICheckProvider.class, MogoServicePaths.PATH_CHECK);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 注册车辆监控变化监听
|
||||
*
|
||||
* @param module 监听模块
|
||||
* @param listener 回调监听对象
|
||||
*/
|
||||
public static void registerVehicleMonitoringListener(String module, IMogoCheckListener listener) {
|
||||
getCheckProvider().registerVehicleMonitoringListener(module, listener);
|
||||
}
|
||||
|
||||
/**
|
||||
* 注销车辆监控变化监听
|
||||
*
|
||||
* @param module
|
||||
*/
|
||||
public static void unregisterListener(String module, IMogoCheckListener listener) {
|
||||
getCheckProvider().unregisterListener(module, listener);
|
||||
}
|
||||
|
||||
/**
|
||||
* 启动检测模块
|
||||
*/
|
||||
public static void startCheckActivity(Context context) {
|
||||
getCheckProvider().startCheckActivity(context);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据监测指标修改主页检测按钮
|
||||
*/
|
||||
public static void updateMonitoringStatus(String module, boolean hasError) {
|
||||
getCheckProvider().updateMonitoringStatus(module, hasError);
|
||||
}
|
||||
|
||||
/**
|
||||
* 指标监测
|
||||
*/
|
||||
public static boolean checkMonitor(Context context) {
|
||||
return getCheckProvider().checkMonitor(context);
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package com.mogo.eagle.core.function.call.hmi;
|
||||
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths;
|
||||
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWaringProvider;
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase;
|
||||
import com.mogo.service.MogoServicePaths;
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package com.mogo.eagle.core.function.call.map;
|
||||
|
||||
import com.mogo.eagle.core.data.constants.MogoServicePaths;
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
import com.mogo.eagle.core.function.api.map.smp.IMogoSmallMapProvider;
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase;
|
||||
import com.mogo.service.MogoServicePaths;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -67,7 +67,9 @@ dependencies {
|
||||
implementation project(':modules:mogo-module-common')
|
||||
implementation project(':modules:mogo-module-share')
|
||||
implementation project(':modules:mogo-module-service')
|
||||
|
||||
implementation project(':core:mogo-core-data')
|
||||
implementation project(':core:mogo-core-function-call')
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ import com.mogo.commons.mvp.MvpFragment;
|
||||
import com.mogo.commons.voice.AIAssist;
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
import com.mogo.eagle.core.function.api.check.IMogoCheckListener;
|
||||
import com.mogo.eagle.core.function.call.check.CallerCheckManager;
|
||||
import com.mogo.map.listener.IMogoMapListener;
|
||||
import com.mogo.map.location.IMogoLocationClient;
|
||||
import com.mogo.map.marker.IMogoMarkerManager;
|
||||
@@ -407,7 +408,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
public void onClick(View v) {
|
||||
Log.d(TAG, "体检入口");
|
||||
// 启动检测页面
|
||||
MogoApisHandler.getInstance().getApis().getCheckProvider().startCheckActivity(getContext());
|
||||
CallerCheckManager.startCheckActivity(getContext());
|
||||
}
|
||||
});
|
||||
|
||||
@@ -745,7 +746,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
mMogoRegisterCenter.registerMogoNaviListener(TYPE_ENTRANCE, this);
|
||||
mMogoRegisterCenter.registerMogoMapListener(TYPE_ENTRANCE, this);
|
||||
//车辆监控
|
||||
mApis.getCheckProvider().registerVehicleMonitoringListener(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING, this);
|
||||
CallerCheckManager.registerVehicleMonitoringListener(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING, this);
|
||||
|
||||
mMogoMarkerManager = mService.getMarkerManager(getContext());
|
||||
|
||||
@@ -795,7 +796,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
mCameraLiveNoticeHelper.release();
|
||||
MogoApisHandler.getInstance().getApis().getRegisterCenterApi()
|
||||
.unregisterCarLocationChangedListener(TAG, this);
|
||||
mApis.getCheckProvider().unregisterListener(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING, this);
|
||||
CallerCheckManager.unregisterListener(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -59,6 +59,8 @@ dependencies {
|
||||
compileOnly project(':skin:mogo-skin-support')
|
||||
|
||||
implementation project(':core:mogo-core-data')
|
||||
|
||||
implementation project(':core:mogo-core-function-call')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.util.Log;
|
||||
|
||||
import com.mogo.eagle.core.function.call.check.CallerCheckManager;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.service.adas.IMogoAdasOCHCallback;
|
||||
|
||||
@@ -61,7 +62,7 @@ public class VehicleMonitoring implements Handler.Callback {
|
||||
|
||||
public boolean vehicleMonitor() {
|
||||
Log.d(TAG, "vehicleMonitor");
|
||||
return MogoApisHandler.getInstance().getApis().getCheckProvider().checkMonitor(mContext);
|
||||
return CallerCheckManager.checkMonitor(mContext);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user