add devatools
This commit is contained in:
@@ -5,7 +5,7 @@ import com.mogo.eagle.core.function.api.devatools.IMoGoDevaToolsListener
|
||||
import com.mogo.eagle.core.utilcode.util.LogUtils
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
|
||||
object CallDevaToolsListenerManager {
|
||||
object CallerDevaToolsListenerManager {
|
||||
|
||||
private const val TAG = "CallDevaToolsListenerManager"
|
||||
|
||||
@@ -56,7 +56,7 @@ object CallDevaToolsListenerManager {
|
||||
}
|
||||
}
|
||||
|
||||
fun invokeDevaToolsLogCatch() {
|
||||
fun invokeDevaToolsLogCatchClose() {
|
||||
M_DEVA_TOOLS_LISTENER.forEach {
|
||||
val listener = it.value
|
||||
listener.onLogCatchClose()
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user