加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.15 KB
一键复制 编辑 原始数据 按行查看 历史
ymz 提交于 2022-12-16 11:30 . navigation导航
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
maven {
url 'https://maven.aliyun.com/repository/public'
}
google()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven { url 'https://jitpack.io' }
}
dependencies {
//最低支持的gradle版本是6.1.1
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url 'https://maven.aliyun.com/repository/public'
}
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
arouter_compiler_version = "1.5.1"
arouter_api_version = "1.5.1"
dependenciesID = [
"appcompat" : "androidx.appcompat:appcompat:1.2.0",
"material" : "com.google.android.material:material:1.2.1",
"constraintlayout": "androidx.constraintlayout:constraintlayout:2.0.4",
"recyclerview" : "androidx.recyclerview:recyclerview:1.1.0",
"arouterApi" : "com.alibaba:arouter-api:${arouter_api_version}",
"arouterCompiler" : "com.alibaba:arouter-compiler:${arouter_compiler_version}",
"fragment" : "androidx.fragment:fragment:1.1.0",
"autoservice" : "com.google.auto.service:auto-service:1.0.1"
]
sdkID = [
"compileSdkVersion": 30,
"buildToolsVersion": "30.0.3",
"minSdkVersion" : 21,
"targetSdkVersion" : 30
]
okhttpVersion = "3.14.9"
retrofitVersion = "2.9.0"
glideVersion = "4.10.0"
gsonVersion = "2.8.7"
workVersion = "2.6.0"
navigationVersion = "2.3.1"
materialVersion = "1.2.1"
//true 表示各组件共同构成一个应用, false表示各组件可单独成为应用
isRunTotalApp = true
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化