Skip to content

Commit eebdfd3

Browse files
author
zhangxingting
committed
线程监控支持的版本上限到Android14(含)
1 parent 07bf417 commit eebdfd3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
ext.versions = [
3-
'compileSdkVersion': 31,
3+
'compileSdkVersion': 34,
44
'buildToolsVersion': '31.0.0',
55
'minSdkVersion' : 18,
66
'targetSdkVersion' : 26,

koom-thread-leak/src/main/java/com/kwai/performance/overhead/thread/monitor/ThreadMonitor.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ object ThreadMonitor : LoopMonitor<ThreadMonitorConfig>() {
6666
}
6767

6868
private fun handleNativeInit(): Boolean {
69-
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.O || Build.VERSION.SDK_INT > Build
70-
.VERSION_CODES.R) {
71-
monitorConfig.listener?.onError("not support P below or R above now!")
69+
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.O || Build.VERSION.SDK_INT > Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
70+
monitorConfig.listener?.onError("not support P below or UPSIDE_DOWN_CAKE above now!")
7271
return false
7372
}
7473
if (!isArm64()) {

0 commit comments

Comments
 (0)