diff --git a/build.gradle b/build.gradle index 962835b..d8dcdb9 100644 --- a/build.gradle +++ b/build.gradle @@ -10,23 +10,23 @@ ext { libraries = [ appcompat : "1.2.0", - kotlinx_coroutines_core: "1.3.8", + kotlinx_coroutines_core: "1.3.9", rxandroid : "2.1.1", rxjava : "2.2.19", retrofit : "2.9.0", - okhttp3 : "4.8.0", + okhttp3 : "4.9.0", gson : "2.8.6", - coroutines_utils : "1.1.1" + coroutines_utils : "1.1.2" ] } buildscript { System.properties['com.android.build.gradle.overrideVersionCheck'] = 'true' - ext.kotlin_version = '1.3.72' - ext.l_version = '2.5.1' + ext.kotlin_version = '1.4.10' + ext.l_version = '2.5.2' repositories { google() diff --git a/debug_view/src/main/java/com/safframework/log/debugview/modules/TimerModule.kt b/debug_view/src/main/java/com/safframework/log/debugview/modules/TimerModule.kt index 54ecd22..ca1f178 100644 --- a/debug_view/src/main/java/com/safframework/log/debugview/modules/TimerModule.kt +++ b/debug_view/src/main/java/com/safframework/log/debugview/modules/TimerModule.kt @@ -99,7 +99,7 @@ object TimerModule: AbstractDebugModule>(TimerDataModule(), TimerVi val begin = timerDataMap[model] as Long timerDataMap.remove(model) val msg = getCost(begin, end) ?: return - while (timerList.size >= maxLines) { + while (timerList.size>0 && timerList.size >= maxLines) { timerList.removeAt(0) } timerList.add(obj.javaClass.simpleName + ":" + msg)