diff --git a/app/build.gradle b/app/build.gradle index 2758e8edee..ad4227bc40 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -279,6 +279,10 @@ dependencies { androidTestImplementation rootProject.ext.dependencies.androidx_espresso_core androidTestImplementation rootProject.ext.dependencies.localbroadcastmanager androidTestImplementation rootProject.ext.dependencies.mogo_v2x + + if (isAndroidTestBuild()) { + implementation "com.mogo.thread.opt:lib:${THREAD_OPT_VERSION}" + } } if (!isAndroidTestBuild()) { diff --git a/build.gradle b/build.gradle index a1ad739077..2f4bb19cd6 100644 --- a/build.gradle +++ b/build.gradle @@ -34,7 +34,7 @@ buildscript { classpath "com.mogo.cloud:hook:${HOOK_LOG_VERSION}" classpath "com.mogo.cloud:bizconfig:${BIZCONFIG_VERSION}" classpath 'com.volcengine:apm_insight_plugin:1.4.1' - classpath 'com.mogo.thread.opt:plg:3.0.0' + classpath "com.mogo.thread.opt:plg:${THREAD_OPT_VERSION}" classpath 'com.mogo.cloud:systrace:1.0.1' classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18' classpath 'com.mogo.sticky:service:1.0.8' diff --git a/gradle.properties b/gradle.properties index 18446ff6a9..83a086b0dd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -172,3 +172,7 @@ ADAS_LIB_CHILD_VERSION=.0 ADAS_DATA_LIB_GROUP=com.zhjt.mogo.adas.data ADAS_DATA_LIB_POM_ARTIFACT_ID=adas-data ADAS_DATA_LIB_CHILD_VERSION=.0 + + +# 线程优化版本 +THREAD_OPT_VERSION=3.0.0