For #12725: Upgrade compose to 1.2.1 version.

Split versioning of compose compiler.
Enable Xjvm-default to allow inheriting from interfaces with '@JvmDefault' members
like AbstractComposeView, NestedScrollConnection.
This commit is contained in:
mcarare 2022-09-01 15:24:50 +03:00 committed by mergify[bot]
parent e51ec147c5
commit bcfd0eb125
3 changed files with 4 additions and 3 deletions

View File

@ -224,7 +224,7 @@ android {
}
composeOptions {
kotlinCompilerExtensionVersion = Versions.androidx_compose
kotlinCompilerExtensionVersion = Versions.androidx_compose_compiler
}
}

View File

@ -144,7 +144,7 @@ allprojects {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += [
"-Xopt-in=kotlin.RequiresOptIn"
"-Xopt-in=kotlin.RequiresOptIn", "-Xjvm-default=enable"
]
}
}

View File

@ -20,7 +20,8 @@ object Versions {
const val detekt = "1.19.0"
const val jna = "5.8.0"
const val androidx_compose = "1.1.1"
const val androidx_compose = "1.2.1"
const val androidx_compose_compiler = "1.1.1"
const val androidx_appcompat = "1.3.0"
const val androidx_benchmark = "1.0.0"
const val androidx_biometric = "1.1.0"