From 16787451d10076eb72dc87aba0d20dc060be9b67 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期三, 29 五月 2024 14:50:02 +0800
Subject: [PATCH] Merge branch 'wjc_new' into lwj_new
---
build.gradle | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/build.gradle b/build.gradle
index a255faa..15d7362 100644
--- a/build.gradle
+++ b/build.gradle
@@ -10,12 +10,16 @@
maven {
url "https://jitpack.io"
}
+ maven { url 'https://developer.huawei.com/repo/' }//锛堝崕涓烘瀬鍏夋帹閫侊級
+
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.2"
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
+ //澧炲姞AGC鎻掍欢閰嶇疆锛屼互渚胯兘鍚屾鈥渁gconnect-services.json鈥濇枃浠朵腑鐨勪俊鎭�.锛堝崕涓烘瀬鍏夋帹閫侊級
+ classpath 'com.huawei.agconnect:agcp:1.6.1.300'
}
}
@@ -39,9 +43,26 @@
}
url 'https://packages.aliyun.com/maven/repository/2012126-release-Mc0DNo/'
}
+ //锛堝崕涓烘瀬鍏夋帹閫侊級
+ maven {
+ url 'https://developer.huawei.com/repo/'
+ }
}
}
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