1 Star 10 Fork 8

一头不安分的蜗牛/commons-android

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
zeng_fs 提交于 2024-09-21 08:29 . 适配MANAGE_EXTERNAL_STORAGE权限申请
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
compileSdkVersion = 30
minSdkVersion = 21
targetSdkVersion = 29
kotlin_version = '1.7.20'
appcompat_version = '1.3.1'
exifinterface_version = '1.3.3'
documentfile_version = '1.0.1'
retrofit2_version = '2.9.0'
ver_rxandroid = '2.1.1'
ver_rxkotlin = '2.4.0'
glide_version = '4.9.0'
ver_easyhttp = '2.2.0'
ver_lifecycle = '2.2.0'
fastjson_version = '1.1.71.android'
}
repositories {
google()
maven { url 'https://maven.aliyun.com/repository/public' }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
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 {
google()
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://jitpack.io' }
mavenCentral()
}
// 指定编码
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
tasks.withType(Javadoc).configureEach {
enabled = false
options {
encoding "UTF-8"
charSet 'UTF-8'
}
options.addStringOption('Xdoclint:none', '-quiet')
}
tasks.withType(KotlinCompile).configureEach {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
kotlinOptions {
jvmTarget = '1.8'
}
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/fszeng/commons-android.git
git@gitee.com:fszeng/commons-android.git
fszeng
commons-android
commons-android
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385