From 4449e3420c355a712323f3e507d0b14c395f43d9 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期一, 28 十月 2024 15:13:32 +0800
Subject: [PATCH] 2024年10月28日15:13:28
---
build.gradle | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/build.gradle b/build.gradle
index 05c8bec..701432e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
-
+apply from:"config.gradle"
buildscript {
repositories {
@@ -52,4 +52,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