File tree Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Expand file tree Collapse file tree 3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ android {
3636 compose true
3737 }
3838 composeOptions {
39- kotlinCompilerExtensionVersion " 1.2.0-dev-k1.6.20-M1-5b767693182 "
39+ kotlinCompilerExtensionVersion " 1.2.0-dev-k1.6.20-RC-01cb55170f9 "
4040 }
4141 packagingOptions {
4242 resources {
@@ -58,4 +58,15 @@ dependencies {
5858 androidTestImplementation ' androidx.test.espresso:espresso-core:3.4.0'
5959 androidTestImplementation " androidx.compose.ui:ui-test-junit4:$compose_version "
6060 debugImplementation " androidx.compose.ui:ui-tooling:$compose_version "
61- }
61+ }
62+
63+
64+ tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
65+ kotlinOptions {
66+ jvmTarget = " 1.8"
67+ freeCompilerArgs + = [
68+ " -P" ,
69+ " plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
70+ ]
71+ }
72+ }
Original file line number Diff line number Diff line change @@ -6,9 +6,19 @@ buildscript {
66plugins {
77 id ' com.android.application' version ' 7.1.1' apply false
88 id ' com.android.library' version ' 7.1.1' apply false
9- id ' org.jetbrains.kotlin.android' version ' 1.6.20-M1 ' apply false
9+ id ' org.jetbrains.kotlin.android' version ' 1.6.20-RC ' apply false
1010}
1111
1212task clean (type : Delete ) {
1313 delete rootProject. buildDir
14+ }
15+
16+ tasks. withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile ). configureEach {
17+ kotlinOptions {
18+ jvmTarget = " 1.8"
19+ freeCompilerArgs + = [
20+ " -P" ,
21+ " plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
22+ ]
23+ }
1424}
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ pluginManagement {
33 gradlePluginPortal()
44 google()
55 mavenCentral()
6+ maven {
7+ url " https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/"
8+ }
69 }
710}
811dependencyResolutionManagement {
@@ -13,6 +16,9 @@ dependencyResolutionManagement {
1316 maven {
1417 url " https://androidx.dev/storage/compose-compiler/repository/"
1518 }
19+ maven {
20+ url " https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/"
21+ }
1622 }
1723}
1824rootProject. name = " ComposeAppUsingPrereleaseComposeCompiler"
You can’t perform that action at this time.
0 commit comments