diff --git a/compose/foundation/foundation/build.gradle b/compose/foundation/foundation/build.gradle index 46d4ef4d75399..02f2834258a7d 100644 --- a/compose/foundation/foundation/build.gradle +++ b/compose/foundation/foundation/build.gradle @@ -226,6 +226,10 @@ if (AndroidXComposePlugin.isMultiplatformEnabled(project)) { nativeTest.dependsOn(jsNativeTest) jsTest.dependsOn(jsNativeTest) + + configureEach { + languageSettings.optIn("androidx.compose.foundation.ExperimentalFoundationApi") + } } } dependencies { diff --git a/compose/material/material/build.gradle b/compose/material/material/build.gradle index a7ccf89d03109..31eddde2dd25e 100644 --- a/compose/material/material/build.gradle +++ b/compose/material/material/build.gradle @@ -170,6 +170,10 @@ if(AndroidXComposePlugin.isMultiplatformEnabled(project)) { implementation(libs.junit) implementation(libs.skikoCurrentOs) } + + configureEach { + languageSettings.optIn("androidx.compose.material.ExperimentalMaterialApi") + } } } dependencies { diff --git a/compose/material3/material3/build.gradle b/compose/material3/material3/build.gradle index 9763ec288c582..5cb5fab1771ca 100644 --- a/compose/material3/material3/build.gradle +++ b/compose/material3/material3/build.gradle @@ -166,6 +166,10 @@ if(AndroidXComposePlugin.isMultiplatformEnabled(project)) { implementation(libs.junit) implementation(libs.skikoCurrentOs) } + + configureEach { + languageSettings.optIn("androidx.compose.material3.ExperimentalMaterial3Api") + } } } } diff --git a/compose/ui/ui-text/build.gradle b/compose/ui/ui-text/build.gradle index 0ec34237467e3..5f3a3e04c0c47 100644 --- a/compose/ui/ui-text/build.gradle +++ b/compose/ui/ui-text/build.gradle @@ -230,6 +230,10 @@ if(AndroidXComposePlugin.isMultiplatformEnabled(project)) { } nativeTest.dependsOn(jsNativeTest) jsTest.dependsOn(jsNativeTest) + + configureEach { + languageSettings.optIn("androidx.compose.ui.text.ExperimentalTextApi") + } } } dependencies { diff --git a/compose/ui/ui/build.gradle b/compose/ui/ui/build.gradle index 2b59d04337e5f..a013109f9dadb 100644 --- a/compose/ui/ui/build.gradle +++ b/compose/ui/ui/build.gradle @@ -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 {