mirror of
https://github.com/ankidroid/Anki-Android.git
synced 2024-09-20 03:52:15 +02:00
95624d8760
## Deprecations * `@Deprecated`/ `@Suppress("OVERRIDE_DEPRECATION")` ==== This declaration overrides a deprecated member but is not marked as deprecated itself. Please add the '@Deprecated' annotation or suppress the diagnostic. See https://youtrack.jetbrains.com/issue/KT-47902 for details ## `LinkedList.first` * `LinkedList.first` to `LinkedList.first()` ---- 'val first' is deprecated. This declaration will be renamed in a future version of Kotlin. Please consider using the 'first()' stdlib extension if the collection supports fast random access. ## `kotlinOptions` * `kotlinOptions` -> `compilerOptions` 'kotlinOptions(KotlinJvmOptionsDeprecated /* = KotlinJvmOptions */.() -> Unit): Unit' is deprecated. Please migrate to the compilerOptions DSL. More details are here: https://kotl.in/u1r8ln
31 lines
893 B
Plaintext
31 lines
893 B
Plaintext
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("kotlin")
|
|
}
|
|
|
|
tasks.withType(JavaCompile::class).configureEach {
|
|
sourceCompatibility = JavaVersion.VERSION_11.toString()
|
|
targetCompatibility = JavaVersion.VERSION_11.toString()
|
|
}
|
|
|
|
tasks.withType(KotlinCompile::class).all {
|
|
compilerOptions {
|
|
// starting with AGP 7.4.0 we need to target JVM 11 bytecode
|
|
jvmTarget = JvmTarget.JVM_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(libs.android.lint.api)
|
|
compileOnly(libs.android.lint)
|
|
testImplementation(libs.hamcrest)
|
|
testImplementation(libs.hamcrest.library)
|
|
testImplementation(libs.junit.jupiter)
|
|
testImplementation(libs.junit.vintage.engine)
|
|
testImplementation(libs.android.lint.api)
|
|
testImplementation(libs.android.lint)
|
|
testImplementation(libs.android.lint.tests)
|
|
}
|