update android build

This commit is contained in:
wgh19
2024-04-18 12:56:21 +08:00
parent 6ec3c33ed7
commit aeda79cf0d
33 changed files with 121 additions and 297 deletions

View File

@@ -1,17 +1,13 @@
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
import org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile
allprojects {
tasks.withType(AbstractKotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
apiVersion = "1.8"
languageVersion = "1.8"
}
}
repositories {
google()
mavenCentral()
@@ -26,6 +22,6 @@ subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}