diff --git a/gradle.properties b/gradle.properties index 0ec71697..0a80141d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,7 +19,7 @@ android.useAndroidX=true android.enableJetifier=true GROUP=com.kuaishou.koom -VERSION_NAME=2.2.0 +VERSION_NAME=2.2.1 POM_URL=https://github.com/KwaiAppTeam/KOOM POM_SCM_URL=https://github.com/KwaiAppTeam/KOOM/tree/master diff --git a/koom-native-leak/build.gradle b/koom-native-leak/build.gradle index f283ff71..11c9c0ac 100644 --- a/koom-native-leak/build.gradle +++ b/koom-native-leak/build.gradle @@ -54,8 +54,11 @@ android { dimension "stl_mode" ext.artifactIdSuffix = '' externalNativeBuild { + // Because koom-native-leak hook memory allocator, and hook implementation using some apis(may invoke memory allocator) from + // libc++, then infinite recursive call lead stack overflow. so we always using "c++_static", and this increase package size, + // you can dynamic delivery native-leak module using plugin technology cmake { - arguments = ["-DANDROID_STL=c++_shared"] + arguments = ["-DANDROID_STL=c++_static"] } } }