=
+ ConcurrentHashMap()
+
+ /**
+ * 添加监听
+ * @param tag 标记,用来注销监听使用
+ * @param listener 监听回调
+ */
+ fun registerDevaToolsLogCatchListener(
+ @Nullable tag: String,
+ @Nullable listener: IMoGoDevaToolsListener
+ ) {
+ if (M_DEVA_TOOLS_LISTENER.containsKey(tag)) {
+ LogUtils.eTag(TAG, "Tag:$tag already exists,please use other tag")
+ return
+ }
+ M_DEVA_TOOLS_LISTENER[tag] = listener
+ }
+
+ /**
+ * 删除监听
+ * @param tag 标记,用来注销监听使用
+ */
+ fun unRegisterDevaToolsLogCatchListener(@Nullable tag: String) {
+ if (!M_DEVA_TOOLS_LISTENER.containsKey(tag)) {
+ LogUtils.eTag(TAG, "Tag:$tag not exists")
+ return
+ }
+ M_DEVA_TOOLS_LISTENER.remove(tag)
+ }
+
+ /**
+ * 删除监听
+ * @param listener 要删除的监听对象
+ */
+ fun unRegisterDevaToolsLogCatchListener(@Nullable listener: IMoGoDevaToolsListener) {
+ if (!M_DEVA_TOOLS_LISTENER.containsValue(listener)) {
+ LogUtils.eTag(TAG, "listener:$listener not exists")
+ return
+ }
+ M_DEVA_TOOLS_LISTENER.forEach {
+ if (it.value == listener) {
+ M_DEVA_TOOLS_LISTENER.remove(it.key)
+ }
+ }
+ }
+
+ fun invokeDevaToolsLogCatchClose() {
+ M_DEVA_TOOLS_LISTENER.forEach {
+ val listener = it.value
+ listener.onLogCatchClose()
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/devatools/CallerDevaToolsManager.kt b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/devatools/CallerDevaToolsManager.kt
new file mode 100644
index 0000000000..deadeb95e3
--- /dev/null
+++ b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/devatools/CallerDevaToolsManager.kt
@@ -0,0 +1,26 @@
+package com.mogo.eagle.core.function.call.devatools
+
+import com.alibaba.android.arouter.launcher.ARouter
+import com.mogo.eagle.core.data.constants.MogoServicePaths.PATH_DEVA_TOOLS
+import com.mogo.eagle.core.function.api.devatools.IDevaToolsProvider
+
+object CallerDevaToolsManager {
+
+ private val devaToolsProviderApi: IDevaToolsProvider
+ get() = ARouter.getInstance().build(PATH_DEVA_TOOLS)
+ .navigation() as IDevaToolsProvider
+
+ /**
+ * 开始抓取全量日志
+ */
+ fun startCatchLog() {
+ devaToolsProviderApi.startLogCatch()
+ }
+
+ /**
+ * 停止抓取全量日志
+ */
+ fun stopCatchLog() {
+ devaToolsProviderApi.stopLogCatch()
+ }
+}
\ No newline at end of file
diff --git a/core/mogo-core-utils/src/main/java/com/mogo/eagle/core/utilcode/util/TimeUtils.java b/core/mogo-core-utils/src/main/java/com/mogo/eagle/core/utilcode/util/TimeUtils.java
index 3225975179..b8bed29b54 100644
--- a/core/mogo-core-utils/src/main/java/com/mogo/eagle/core/utilcode/util/TimeUtils.java
+++ b/core/mogo-core-utils/src/main/java/com/mogo/eagle/core/utilcode/util/TimeUtils.java
@@ -55,6 +55,14 @@ public final class TimeUtils {
throw new UnsupportedOperationException("u can't instantiate me...");
}
+ @SuppressLint("SimpleDateFormat")
+ public static String formatYMD(long time){
+ Date date = new Date(time);
+ String strDateFormat = "yyyy-MM-dd";
+ SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
+ return sdf.format(date);
+ }
+
/**
* Milliseconds to the formatted time string.
* The pattern is {@code yyyy-MM-dd HH:mm:ss}.
diff --git a/gradle.properties b/gradle.properties
index f86512241a..cc445138c4 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -56,11 +56,11 @@ bytex.forbidUseLenientMutationDuringGetArtifact=true
bytex.verifyProguardConfigurationChanged=false
bytex.ASM_API=ASM7
-HOOK_LOG_VERSION=1.4.90
-SERVICE_CHAIN_VERSION=1.0.32
+HOOK_LOG_VERSION=1.4.109
+SERVICE_CHAIN_VERSION=1.0.43
################ 外部依赖引用 ################
# loglib
-LOGLIB_VERSION=1.0.4
+LOGLIB_VERSION=1.1.6
######## MogoAiCloudSDK Version ########
# 网络请求
MOGO_NETWORK_VERSION=1.3.13
diff --git a/modules.txt b/modules.txt
index 9754fd7cae..098f27631e 100644
--- a/modules.txt
+++ b/modules.txt
@@ -38,11 +38,11 @@
:modules:mogo-module-main
:modules:mogo-module-push-base
:modules:mogo-module-push
-:modules:mogo-module-monitor
:core:function-impl:mogo-core-function-autopilot
:core:function-impl:mogo-core-function-hmi
:core:function-impl:mogo-core-function-map
:core:function-impl:mogo-core-function-monitoring
:core:function-impl:mogo-core-function-notice
:core:function-impl:mogo-core-function-v2x
+:core:function-impl:mogo-core-function-devatools
:core:function-impl:mogo-core-function-main
\ No newline at end of file
diff --git a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java
index db86cc6ca5..b0ea525e4f 100644
--- a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java
+++ b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java
@@ -270,11 +270,6 @@ public class EntranceFragment extends MvpFragment {
- mApis.getMogoMonitorApi().getMogoMonitorLog().showLogDebugDialog();
- return true;
- });
-
mUserHeadImg.setOnLongClickListener(view -> {
if (groupFix.getVisibility() == View.VISIBLE) {
groupFix.setVisibility(View.GONE);
diff --git a/modules/mogo-module-monitor/consumer-rules.pro b/modules/mogo-module-monitor/consumer-rules.pro
deleted file mode 100644
index 325fdd3146..0000000000
--- a/modules/mogo-module-monitor/consumer-rules.pro
+++ /dev/null
@@ -1 +0,0 @@
--keep class com.zhidao.mogo.module.monitor.MogoMonitorConst.*{*;}
diff --git a/modules/mogo-module-monitor/gradle.properties b/modules/mogo-module-monitor/gradle.properties
deleted file mode 100644
index db3ee2befd..0000000000
--- a/modules/mogo-module-monitor/gradle.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-GROUP=com.mogo.module
-POM_ARTIFACT_ID=module-monitor
-VERSION_CODE=1
diff --git a/modules/mogo-module-monitor/src/main/AndroidManifest.xml b/modules/mogo-module-monitor/src/main/AndroidManifest.xml
deleted file mode 100644
index 9fdb2a839e..0000000000
--- a/modules/mogo-module-monitor/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- /
-
\ No newline at end of file
diff --git a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorConst.java b/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorConst.java
deleted file mode 100644
index cb0e03e1c7..0000000000
--- a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorConst.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package com.zhidao.mogo.module.monitor;
-
-public class MogoMonitorConst {
-
- private MogoMonitorConst(){}
-
- public static final String MODULE_NAME = "MogoMonitor";
- public static final String MODULE_PATH = "/monitor/api";
-
- public static final int LOG_PUSH_TYPE = 500000;
-
- /**
- * 开始抓日志
- */
- public static final int START_CATCH_LOG = 1;
- /**
- * 结束抓日志
- */
- public static final int STOP_CATCH_LOG = 2;
- /**
- * 本应用设置,打开日志
- */
- public static final int LOCAL_CONFIG_OPEN_LOG = 3;
- /**
- * 本应用设置,关闭日志
- */
- public static final int LOCAL_CONFIG_CLOSE_LOG = 4;
-
- public static final String BROADCAST_LOG_CTRL = "com.mogo.control.action.LOG_CTRL";
-}
diff --git a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorProvider.java b/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorProvider.java
deleted file mode 100644
index 5e8c437531..0000000000
--- a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/MogoMonitorProvider.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.zhidao.mogo.module.monitor;
-
-import android.content.Context;
-
-import com.alibaba.android.arouter.facade.annotation.Route;
-import com.mogo.service.monitor.IMogoMonitorLog;
-import com.mogo.service.monitor.IMogoMonitorProvider;
-import com.zhidao.mogo.module.monitor.log.MogoLogMonitor;
-
-/**
- * 应用监控模块provider
- *
- * @author tongchenfei
- */
-@Route(path = MogoMonitorConst.MODULE_PATH)
-public class MogoMonitorProvider implements IMogoMonitorProvider {
-
- @Override
- public void init(Context context) {
- MogoLogMonitor.getInstance().init(context);
- }
-
- @Override
- public IMogoMonitorLog getMogoMonitorLog() {
- return MogoLogMonitor.getInstance();
- }
-
-}
diff --git a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/bean/RemoteLogPushContent.java b/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/bean/RemoteLogPushContent.java
deleted file mode 100644
index 0a6da6e2b3..0000000000
--- a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/bean/RemoteLogPushContent.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.zhidao.mogo.module.monitor.bean;
-
-public class RemoteLogPushContent {
- private int type;
- /**
- * 日志抓取时长,单位是分钟
- */
- private int duration;
- private String cmd;
- private String pkgName;
-
- public RemoteLogPushContent(){
-
- }
-
- public RemoteLogPushContent(int duration, String pkgName) {
- this.duration = duration;
- this.pkgName = pkgName;
- }
-
- public int getType() {
- return type;
- }
-
- public void setType(int type) {
- this.type = type;
- }
-
- public String getCmd() {
- return cmd;
- }
-
- public void setCmd(String cmd) {
- this.cmd = cmd;
- }
-
- public int getDuration() {
- return duration;
- }
-
- public void setDuration(int duration) {
- this.duration = duration;
- }
-
- public String getPkgName() {
- return pkgName;
- }
-
- public void setPkgName(String pkgName) {
- this.pkgName = pkgName;
- }
-
- @Override
- public String toString() {
- return "RemoteLogPushContent{" +
- "type=" + type +
- ", duration=" + duration +
- ", cmd='" + cmd + '\'' +
- ", pkgName='" + pkgName + '\'' +
- '}';
- }
-}
diff --git a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/dialog/ILogDialogListener.java b/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/dialog/ILogDialogListener.java
deleted file mode 100644
index 8a97de2cb4..0000000000
--- a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/dialog/ILogDialogListener.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.zhidao.mogo.module.monitor.dialog;
-
-/**
- * Log调试对话框操作回调
- * @author tongchenfei
- */
-public interface ILogDialogListener {
- /**
- * 点击了开始抓日志
- */
- void onLogStart();
-
- /**
- * 点击了结束抓日志
- */
- void onLogStop();
-}
diff --git a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/dialog/LogDebugDialog.java b/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/dialog/LogDebugDialog.java
deleted file mode 100644
index b26eb35859..0000000000
--- a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/dialog/LogDebugDialog.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package com.zhidao.mogo.module.monitor.dialog;
-
-import android.content.Context;
-
-import androidx.annotation.NonNull;
-
-import com.mogo.module.common.dialog.BaseFloatDialog;
-import com.zhidao.mogo.module.monitor.R;
-
-/**
- * 日志手动调用开始结束的对话框,兼容了智慧出行,覆盖adas浮窗
- *
- * @author tongchenfei
- */
-public class LogDebugDialog extends BaseFloatDialog {
- public LogDebugDialog(@NonNull Context context) {
- super(context);
- setContentView(R.layout.dialog_log_debug);
- findViewById(R.id.btnStart).setOnClickListener(v -> {
- if (dialogListener != null) {
- dialogListener.onLogStart();
- }
- dismiss();
- });
- findViewById(R.id.btnStop).setOnClickListener(v->{
- if (dialogListener != null) {
- dialogListener.onLogStop();
- }
-
- dismiss();
- });
- findViewById(R.id.btnForceClearNotice).setOnClickListener(v->{
- dismiss();
- });
- findViewById(R.id.btnRetryFlow).setOnClickListener(v->{
- dismiss();
- });
- }
-
- private ILogDialogListener dialogListener;
-
- public void setDialogListener(ILogDialogListener dialogListener) {
- this.dialogListener = dialogListener;
- }
-
-}
diff --git a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/log/MogoLogMonitor.java b/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/log/MogoLogMonitor.java
deleted file mode 100644
index 5b2f42734b..0000000000
--- a/modules/mogo-module-monitor/src/main/java/com/zhidao/mogo/module/monitor/log/MogoLogMonitor.java
+++ /dev/null
@@ -1,199 +0,0 @@
-package com.zhidao.mogo.module.monitor.log;
-
-import android.content.ComponentName;
-import android.content.Context;
-import android.content.Intent;
-import android.os.Handler;
-import android.os.Message;
-import android.widget.Toast;
-
-import com.mogo.commons.AbsMogoApplication;
-import com.mogo.commons.context.ContextHolderUtil;
-import com.mogo.commons.debug.DebugConfig;
-import com.mogo.eagle.core.network.NetConfig;
-import com.mogo.eagle.core.network.utils.GsonUtil;
-import com.mogo.module.common.MogoApisHandler;
-import com.mogo.service.cloud.socket.IMogoOnMessageListener;
-import com.mogo.service.monitor.IMogoMonitorLog;
-import com.mogo.utils.logger.LogLevel;
-import com.mogo.utils.logger.Logger;
-import com.zhidao.mogo.module.monitor.MogoMonitorConst;
-import com.zhidao.mogo.module.monitor.bean.RemoteLogPushContent;
-import com.zhidao.mogo.module.monitor.dialog.ILogDialogListener;
-import com.zhidao.mogo.module.monitor.dialog.LogDebugDialog;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import static com.zhidao.mogo.module.monitor.MogoMonitorConst.LOG_PUSH_TYPE;
-import static com.zhidao.mogo.module.monitor.MogoMonitorConst.MODULE_NAME;
-
-public class MogoLogMonitor implements IMogoOnMessageListener, IMogoMonitorLog,
- ILogDialogListener, Handler.Callback {
-
- private static final String TAG = MODULE_NAME + "-Log";
-
- private static volatile MogoLogMonitor mogoLogMonitor;
-
- private MogoLogMonitor() {
-
- }
-
- public static MogoLogMonitor getInstance() {
- if (mogoLogMonitor == null) {
- synchronized (MogoLogMonitor.class) {
- if (mogoLogMonitor == null) {
- mogoLogMonitor = new MogoLogMonitor();
- }
- }
- }
- return mogoLogMonitor;
- }
-
- private static final int MSG_TRY_CLOSE_LOG = 1001;
- private static final String MANUAL_CATCH_PKG_NAME = "manual-catch-log";
- private LogDebugDialog logDebugDialog;
- private RemoteLogPushContent manualContent = new RemoteLogPushContent(60,
- MANUAL_CATCH_PKG_NAME);
-
- private Handler handler = new Handler(this);
-
- private List catchingList = new ArrayList<>();
-
- public void init(Context context) {
- MogoApisHandler.getInstance().getApis()
- .getSocketManagerApi(AbsMogoApplication.getApp().getApplicationContext())
- .registerOnMessageListener(LOG_PUSH_TYPE, this);
- startRemoteCtrl(context);
- }
-
- private void startRemoteCtrl(Context context) {
- Intent intent = new Intent("com.mogo.remotecontrol.action");
- intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- ComponentName comp = new ComponentName("com.mogo.remotecontrol",
- "com.mogo.remotecontrol.RemoteCtrlService");
- intent.setComponent(comp);
- context.startService(intent);
- Logger.d(TAG, "startRemoteCtrl");
- }
-
- @Override
- public boolean handleMessage(Message msg) {
- if (msg.what == MSG_TRY_CLOSE_LOG) {
- closeLoggerLevel();
- return true;
- }
- return false;
- }
-
- @Override
- public Class target() {
- return RemoteLogPushContent.class;
- }
-
- @Override
- public void onMsgReceived(RemoteLogPushContent obj) {
- Logger.d(TAG, "收到push消息: " + obj);
- switch (obj.getType()) {
- case MogoMonitorConst.START_CATCH_LOG:
- if (!catchingList.contains(obj.getPkgName())) {
- startCatchLog(obj);
- }
- break;
- case MogoMonitorConst.STOP_CATCH_LOG:
- stopCatchLog(obj);
- break;
- case MogoMonitorConst.LOCAL_CONFIG_OPEN_LOG:
- openLoggerLevel();
- break;
- case MogoMonitorConst.LOCAL_CONFIG_CLOSE_LOG:
- closeLoggerLevel();
- break;
- default:
- break;
- }
- }
-
- @Override
- public void onLogStart() {
- // 这个是通过对话框点击开始的回调
- if (catchingList.contains(MANUAL_CATCH_PKG_NAME)) {
- Toast.makeText(ContextHolderUtil.getContext(), "已经在抓日志了", Toast.LENGTH_LONG).show();
- } else {
- Logger.d(TAG, "开始抓取日志====");
- manualContent.setType(MogoMonitorConst.START_CATCH_LOG);
- startCatchLog(manualContent);
- }
- }
-
- @Override
- public void onLogStop() {
- // 这个是通过对话框点击结束的回调
- Logger.d(TAG, "结束抓取日志====");
- manualContent.setType(MogoMonitorConst.STOP_CATCH_LOG);
- stopCatchLog(manualContent);
- }
-
- public void sendCtrlBroadcast(RemoteLogPushContent content) {
- startRemoteCtrl(ContextHolderUtil.getContext());
- Intent intent = new Intent(MogoMonitorConst.BROADCAST_LOG_CTRL);
- intent.putExtra("content", GsonUtil.jsonFromObject(content));
- intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
- intent.addFlags(Intent.FLAG_EXCLUDE_STOPPED_PACKAGES);
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- Logger.d(TAG, "sendCtrlBroadcast: " + content);
- ContextHolderUtil.getContext().sendBroadcast(intent);
- }
-
- /**
- * 放开Logger的限制
- */
- private void openLoggerLevel() {
- Logger.init(LogLevel.DEBUG);
- }
-
- /**
- * 根据状态收紧Logger的限制
- */
- private void closeLoggerLevel() {
- if (!catchingList.isEmpty()) {
- Logger.init(DebugConfig.isDebug() ? LogLevel.DEBUG : LogLevel.OFF);
- NetConfig.instance().setLoggable(DebugConfig.isDebug());
- }
- }
-
- private void startCatchLog(RemoteLogPushContent content) {
- catchingList.add(content.getPkgName());
-
- long delay = content.getDuration() * 60 * 1000;
- handler.removeMessages(MSG_TRY_CLOSE_LOG);
- if (delay <= 0) {
- // 如果push 下来的delay小于等于0,那就给个默认最大值一小时
- delay = 60 * 60 * 1000L;
- }
- handler.sendEmptyMessageDelayed(MSG_TRY_CLOSE_LOG, delay);
- openLoggerLevel();
- sendCtrlBroadcast(content);
- }
-
- private void stopCatchLog(RemoteLogPushContent content) {
- catchingList.remove(content.getPkgName());
- if (catchingList.isEmpty()) {
- handler.removeMessages(MSG_TRY_CLOSE_LOG);
- }
- sendCtrlBroadcast(content);
- closeLoggerLevel();
- }
-
- @Override
- public void showLogDebugDialog() {
- if (logDebugDialog == null) {
- logDebugDialog = new LogDebugDialog(ContextHolderUtil.getContext());
- logDebugDialog.setDialogListener(this);
- }
- if (logDebugDialog.isShowing()) {
- return;
- }
- logDebugDialog.show();
- }
-}
diff --git a/modules/mogo-module-monitor/src/main/res/drawable/log_debug_dialog_bg.xml b/modules/mogo-module-monitor/src/main/res/drawable/log_debug_dialog_bg.xml
deleted file mode 100644
index 012558ce6d..0000000000
--- a/modules/mogo-module-monitor/src/main/res/drawable/log_debug_dialog_bg.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-monitor/src/main/res/drawable/log_debug_retry_btn_bg.xml b/modules/mogo-module-monitor/src/main/res/drawable/log_debug_retry_btn_bg.xml
deleted file mode 100644
index 0cb65e7650..0000000000
--- a/modules/mogo-module-monitor/src/main/res/drawable/log_debug_retry_btn_bg.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-monitor/src/main/res/drawable/log_debug_start_btn_bg.xml b/modules/mogo-module-monitor/src/main/res/drawable/log_debug_start_btn_bg.xml
deleted file mode 100644
index c21ba027d9..0000000000
--- a/modules/mogo-module-monitor/src/main/res/drawable/log_debug_start_btn_bg.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-monitor/src/main/res/drawable/log_debug_stop_btn_bg.xml b/modules/mogo-module-monitor/src/main/res/drawable/log_debug_stop_btn_bg.xml
deleted file mode 100644
index d8e32b922f..0000000000
--- a/modules/mogo-module-monitor/src/main/res/drawable/log_debug_stop_btn_bg.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/modules/mogo-module-monitor/src/main/res/layout/dialog_log_debug.xml b/modules/mogo-module-monitor/src/main/res/layout/dialog_log_debug.xml
deleted file mode 100644
index fd3a32aa17..0000000000
--- a/modules/mogo-module-monitor/src/main/res/layout/dialog_log_debug.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/services/mogo-service-api/src/main/java/com/mogo/service/IMogoServiceApis.java b/services/mogo-service-api/src/main/java/com/mogo/service/IMogoServiceApis.java
index cfc591106d..ba17ce6c05 100644
--- a/services/mogo-service-api/src/main/java/com/mogo/service/IMogoServiceApis.java
+++ b/services/mogo-service-api/src/main/java/com/mogo/service/IMogoServiceApis.java
@@ -21,7 +21,6 @@ import com.mogo.service.map.IMogoMapService;
import com.mogo.service.module.IMogoActionManager;
import com.mogo.service.module.IMogoMarkerService;
import com.mogo.service.module.IMogoRegisterCenter;
-import com.mogo.service.monitor.IMogoMonitorProvider;
import com.mogo.service.network.IMogoNetwork;
import com.mogo.service.obu.IMogoCrashWarnProvider;
import com.mogo.service.share.IMogoShareManager;
@@ -227,13 +226,6 @@ public interface IMogoServiceApis extends IProvider {
*/
IMogoTanluProvider getTanluApi();
- /**
- * 获取Monitor相关api
- *
- * @return
- */
- IMogoMonitorProvider getMogoMonitorApi();
-
/**
* 获取探路ui服务
*
diff --git a/services/mogo-service-api/src/main/java/com/mogo/service/monitor/IMogoMonitorLog.java b/services/mogo-service-api/src/main/java/com/mogo/service/monitor/IMogoMonitorLog.java
deleted file mode 100644
index 7b302679c3..0000000000
--- a/services/mogo-service-api/src/main/java/com/mogo/service/monitor/IMogoMonitorLog.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package com.mogo.service.monitor;
-
-public interface IMogoMonitorLog {
-
- /**
- * 显示日志抓取窗口
- */
- void showLogDebugDialog();
-}
diff --git a/services/mogo-service-api/src/main/java/com/mogo/service/monitor/IMogoMonitorProvider.java b/services/mogo-service-api/src/main/java/com/mogo/service/monitor/IMogoMonitorProvider.java
deleted file mode 100644
index 7d04148976..0000000000
--- a/services/mogo-service-api/src/main/java/com/mogo/service/monitor/IMogoMonitorProvider.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package com.mogo.service.monitor;
-
-import android.content.Context;
-
-import com.alibaba.android.arouter.facade.template.IProvider;
-
-/**
- * monitor接口
- * @author tongchenfei
- */
-public interface IMogoMonitorProvider extends IProvider {
-
- /**
- * 获取日志监控接口
- * @return
- */
- IMogoMonitorLog getMogoMonitorLog();
-
-}
diff --git a/services/mogo-service/src/main/java/com/mogo/service/impl/MogoServiceApis.java b/services/mogo-service/src/main/java/com/mogo/service/impl/MogoServiceApis.java
index a48b5e2482..f3c900cd2e 100644
--- a/services/mogo-service/src/main/java/com/mogo/service/impl/MogoServiceApis.java
+++ b/services/mogo-service/src/main/java/com/mogo/service/impl/MogoServiceApis.java
@@ -29,7 +29,6 @@ import com.mogo.service.map.IMogoMapService;
import com.mogo.service.module.IMogoActionManager;
import com.mogo.service.module.IMogoMarkerService;
import com.mogo.service.module.IMogoRegisterCenter;
-import com.mogo.service.monitor.IMogoMonitorProvider;
import com.mogo.service.network.IMogoNetwork;
import com.mogo.service.share.IMogoShareManager;
import com.mogo.service.share.IMogoTanluProvider;
@@ -196,11 +195,6 @@ public class MogoServiceApis implements IMogoServiceApis {
return getApiInstance(IMogoTanluProvider.class, MogoServicePaths.PATH_TANLU_API);
}
- @Override
- public IMogoMonitorProvider getMogoMonitorApi() {
- return getApiInstance(IMogoMonitorProvider.class, MogoServicePaths.PATH_MOGO_MONITOR);
- }
-
@Override
public IMogoTanluUiProvider getTanluUiApi() {
return getApiInstance(IMogoTanluUiProvider.class, MogoServicePaths.PATH_TANLU_UI_API);
diff --git a/settings.gradle b/settings.gradle
index 715103f943..f11d232630 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -15,6 +15,10 @@ include ':core:mogo-core-network'
include ':core:mogo-core-function-api'
// 模块对外暴露等调用接口
include ':core:mogo-core-function-call'
+
+// deva开发工具套件
+include ':core:function-impl:mogo-core-function-devatools'
+
// 业务实现
// Main 应用主入口封装,在这里进行初始化应用
include ':core:function-impl:mogo-core-function-main'
@@ -54,7 +58,6 @@ include ':libraries:map-autonavi'
include ':libraries:mogo-map'
// OLD业务模块
-include ':modules:mogo-module-monitor'
include ':modules:mogo-module-adas'
include ':modules:mogo-module-map'
include ':modules:mogo-module-common'