support for sdk <24

This commit is contained in:
Cloudburst 2022-08-10 22:02:18 +02:00 committed by GitHub
parent 9176ce91b9
commit d8b094bcbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,18 +43,18 @@ subprojects {
compileSdkVersion(30)
defaultConfig {
minSdk = 24
minSdk = 21
targetSdk = 30
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "11" // Required
jvmTarget = "1.8" // Required
// Disables some unnecessary features
freeCompilerArgs = freeCompilerArgs +
"-Xno-call-assertions" +