From 3f8f1590859188c334739f76f1d64c2b6c2bfd55 Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 31 十月 2024 17:01:06 +0800 Subject: [PATCH] 2024年10月31日17:01:04 --- build.gradle | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/build.gradle b/build.gradle index 05c8bec..1ef1aa7 100644 --- a/build.gradle +++ b/build.gradle @@ -20,6 +20,7 @@ // in the individual module build.gradle files //澧炲姞AGC鎻掍欢閰嶇疆锛屼互渚胯兘鍚屾鈥渁gconnect-services.json鈥濇枃浠朵腑鐨勪俊鎭�.锛堝崕涓烘瀬鍏夋帹閫侊級 classpath 'com.huawei.agconnect:agcp:1.6.1.300' + classpath 'io.github.didi.dokit:dokitx-plugin:3.5.0.1' } } @@ -52,4 +53,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