From cdf49871675e42a5576f725a93eec7ca15294c6f Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期二, 15 四月 2025 17:22:34 +0800 Subject: [PATCH] Merge branch '1.5.2' --- build.gradle | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 05c8bec..df77750 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,10 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. - +apply from:"config.gradle" buildscript { + ext { + agp_version = '4.1.3' + } repositories { google() mavenCentral() @@ -14,7 +17,7 @@ } dependencies { - classpath "com.android.tools.build:gradle:4.1.2" + classpath "com.android.tools.build:gradle:$agp_version" classpath 'io.github.didi.dokit:dokitx-plugin:3.5.0.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -52,4 +55,17 @@ task clean(type: Delete) { delete rootProject.buildDir +} + +// 淇濊瘉dex_files鏂囦欢涓寚瀹氱殑鏂囦欢閮藉姞杞藉埌Main Dex涓� +afterEvaluate { + tasks.matching { + it.name.startsWith('dex') + }.each { dx -> + if (dx.additionalParameters == null) { + dx.additionalParameters = [] + } + dx.additionalParameters += '--multi-dex' + dx.additionalParameters += "--main-dex-list=$projectDir/dex_files".toString() + } } \ No newline at end of file -- Gitblit v1.8.0