From fed04784dbe125ffa27e4e4fade0ce9c94a14dc7 Mon Sep 17 00:00:00 2001 From: tarsin Date: Tue, 17 May 2022 22:48:54 +0800 Subject: [PATCH] Use kotlin --- app/build.gradle | 6 ++++++ build.gradle | 1 + 2 files changed, 7 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 68073d7e5..4f03758a6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,6 +2,8 @@ import java.nio.file.Paths plugins { id 'com.android.application' + id 'org.jetbrains.kotlin.android' + id 'kotlin-kapt' } android { @@ -46,6 +48,10 @@ android { targetCompatibility JavaVersion.VERSION_11 } + kotlinOptions { + jvmTarget = '11' + } + lint { abortOnError true checkReleaseBuilds false diff --git a/build.gradle b/build.gradle index 6cc2458a9..f463d285c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id 'com.android.application' version '7.2.0' apply false + id 'org.jetbrains.kotlin.android' version '1.6.21' apply false } task clean(type: Delete) {