Upgrades to Kotlin 2.0.0

This commit is contained in:
Vitor Pamplona
2024-07-03 11:00:45 -04:00
parent 27c2c71879
commit 692f7c4270
9 changed files with 58 additions and 51 deletions

View File

@@ -1,6 +1,9 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.jetbrainsKotlinAndroid)
alias(libs.plugins.jetbrainsComposeCompiler)
}
android {
@@ -28,20 +31,23 @@ android {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
freeCompilerArgs += "-Xstring-concat=inline"
}
buildFeatures {
compose true
}
composeOptions {
// Should match compose version : https://developer.android.com/jetpack/androidx/releases/compose-kotlin
kotlinCompilerExtensionVersion "1.5.14"
}
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
freeCompilerArgs.add("-Xstring-concat=inline")
}
}
composeCompiler {
reportsDestination = layout.buildDirectory.dir("compose_compiler")
}
dependencies {
implementation project(path: ':quartz')