diff options
author | renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> | 2024-05-22 07:12:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 07:12:27 +0000 |
commit | 8bae8dfe257eefa555edf8753850f070de3dafac (patch) | |
tree | 8bf8363631e0b44ed18ff4f910c58fa00dbcc579 /build-logic | |
parent | dd4a7023cd3f3e260319610eb0b73d0eb084a8ec (diff) |
fix(deps): update kotlin and compose to v2 (major) (#3064)
* fix(deps): update kotlin and compose to v2
* fix(build): switch to Kotlin Compose Compiler
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'build-logic')
-rw-r--r-- | build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt index 221aefef..46a5eb30 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinAndroidPlugin.kt @@ -6,15 +6,12 @@ package app.passwordstore.gradle import app.passwordstore.gradle.KotlinCommonPlugin.Companion.JVM_TOOLCHAIN_ACTION -import org.gradle.accessors.dm.LibrariesForLibs import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.kotlin.dsl.apply import org.gradle.kotlin.dsl.getByType -import org.gradle.kotlin.dsl.withType import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension import org.jetbrains.kotlin.gradle.plugin.KotlinAndroidPluginWrapper -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @Suppress("Unused") class KotlinAndroidPlugin : Plugin<Project> { @@ -25,30 +22,5 @@ class KotlinAndroidPlugin : Plugin<Project> { apply(KotlinCommonPlugin::class) } project.extensions.getByType<KotlinProjectExtension>().jvmToolchain(JVM_TOOLCHAIN_ACTION) - val libs = project.extensions.getByName("libs") as LibrariesForLibs - val composeCompilerVersion = libs.versions.composeCompiler.get() - val kotlinVersion = libs.versions.kotlin.get() - val matches = COMPOSE_COMPILER_VERSION_REGEX.find(composeCompilerVersion) - - project.tasks.withType<KotlinCompile>().configureEach { - compilerOptions.freeCompilerArgs.addAll( - "-P", - "plugin:androidx.compose.compiler.plugins.kotlin:featureFlag=StrongSkipping", - ) - if (matches != null) { - val (compilerKotlinVersion) = matches.destructured - if (compilerKotlinVersion != kotlinVersion) { - compilerOptions.freeCompilerArgs.addAll( - "-P", - "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=$kotlinVersion", - ) - } - } - } - } - - private companion object { - // Matches against 1.5.0-dev-k1.9.0-6a60475e07f - val COMPOSE_COMPILER_VERSION_REGEX = "\\d.\\d.\\d-dev-k(\\d.\\d.\\d+)-[a-z0-9]+".toRegex() } } |