diff options
Diffstat (limited to 'app/build.gradle.kts')
-rw-r--r-- | app/build.gradle.kts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3bf71c6f..25e7e68d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,5 +1,6 @@ import org.gradle.api.JavaVersion.* import org.jetbrains.kotlin.config.KotlinCompilerVersion +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { id("com.android.application") @@ -95,3 +96,16 @@ dependencies { androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0-alpha02") androidTestImplementation("androidx.test.espresso:espresso-intents:3.3.0-alpha02") } + +tasks { + withType<JavaCompile> { + options.compilerArgs.add("-Xlint:unchecked") + options.isDeprecation = true + } + withType<KotlinCompile> { + kotlinOptions { + jvmTarget = "1.8" + freeCompilerArgs += "-Xnew-inference" + } + } +} |