Skip to content

Commit

Permalink
Fix experimental usage error (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
igordmn committed Jul 18, 2023
1 parent d1f0cf6 commit d42d317
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compose/foundation/foundation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ if (AndroidXComposePlugin.isMultiplatformEnabled(project)) {

nativeTest.dependsOn(jsNativeTest)
jsTest.dependsOn(jsNativeTest)

configureEach {
languageSettings.optIn("androidx.compose.foundation.ExperimentalFoundationApi")
}
}
}
dependencies {
Expand Down
4 changes: 4 additions & 0 deletions compose/material/material/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ if(AndroidXComposePlugin.isMultiplatformEnabled(project)) {
implementation(libs.junit)
implementation(libs.skikoCurrentOs)
}

configureEach {
languageSettings.optIn("androidx.compose.material.ExperimentalMaterialApi")
}
}
}
dependencies {
Expand Down
4 changes: 4 additions & 0 deletions compose/material3/material3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ if(AndroidXComposePlugin.isMultiplatformEnabled(project)) {
implementation(libs.junit)
implementation(libs.skikoCurrentOs)
}

configureEach {
languageSettings.optIn("androidx.compose.material3.ExperimentalMaterial3Api")
}
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions compose/ui/ui-text/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ if(AndroidXComposePlugin.isMultiplatformEnabled(project)) {
}
nativeTest.dependsOn(jsNativeTest)
jsTest.dependsOn(jsNativeTest)

configureEach {
languageSettings.optIn("androidx.compose.ui.text.ExperimentalTextApi")
}
}
}
dependencies {
Expand Down
4 changes: 4 additions & 0 deletions compose/ui/ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ if(AndroidXComposePlugin.isMultiplatformEnabled(project)) {
implementation(project(":compose:material:material"))
implementation(project(":compose:ui:ui-test-junit4"))
}

configureEach {
languageSettings.optIn("androidx.compose.ui.ExperimentalComposeUiApi")
}
}
}
dependencies {
Expand Down

0 comments on commit d42d317

Please sign in to comment.