2021-02-10 06:38:05 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
2022-06-06 08:56:20 +00:00
|
|
|
apply from: './versions.gradle'
|
|
|
|
addRepos(repositories) //增加代码仓库
|
2021-02-10 06:38:05 +00:00
|
|
|
dependencies {
|
2022-06-06 08:56:20 +00:00
|
|
|
classpath deps.android_gradle_plugin
|
|
|
|
classpath deps.android_maven_gradle_plugin
|
|
|
|
//图片压缩
|
2021-09-29 08:16:40 +00:00
|
|
|
classpath 'com.chenenyu:img-optimizer:1.2.0'
|
2022-06-06 08:56:20 +00:00
|
|
|
//美团多渠道打包
|
|
|
|
classpath 'com.meituan.android.walle:plugin:1.1.6'
|
|
|
|
//滴滴的质量优化框架
|
|
|
|
if (isNeedPackage.toBoolean() && isUseBooster.toBoolean()) {
|
|
|
|
classpath deps.booster.gradle_plugin
|
|
|
|
classpath deps.booster.task_processed_res
|
|
|
|
classpath deps.booster.task_resource_deredundancy
|
|
|
|
}
|
|
|
|
//AndServer
|
|
|
|
classpath 'com.yanzhenjie.andserver:plugin:2.1.10'
|
2021-02-10 06:38:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-06 08:56:20 +00:00
|
|
|
//allprojects {
|
|
|
|
// addRepos(repositories)
|
|
|
|
//}
|
|
|
|
|
2021-02-10 06:38:05 +00:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2022-01-09 06:47:03 +00:00
|
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/central' }
|
|
|
|
maven { url 'https://maven.aliyun.com/repository/public' }
|
2022-06-06 08:56:20 +00:00
|
|
|
mavenCentral()
|
2021-02-10 06:38:05 +00:00
|
|
|
google()
|
2021-02-12 10:34:05 +00:00
|
|
|
maven { url "https://jitpack.io" }
|
2021-09-29 07:16:44 +00:00
|
|
|
maven { url 'https://repo1.maven.org/maven2/' }
|
2021-02-10 06:38:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
2022-06-06 08:56:20 +00:00
|
|
|
|
|
|
|
FileTree tree = fileTree(dir: rootProject.getRootDir())
|
|
|
|
tree.each { File file ->
|
|
|
|
if (file.toString().contains("ajcore") && file.toString().endsWith(".txt")) {
|
|
|
|
delete file
|
|
|
|
}
|
|
|
|
}
|
2021-02-10 06:38:05 +00:00
|
|
|
}
|
2022-06-06 08:56:20 +00:00
|
|
|
|