From 1da2690b7b61bca0ffedca931c18de329b4596b8 Mon Sep 17 00:00:00 2001 From: Igor Demin Date: Tue, 18 Jul 2023 14:56:20 +0200 Subject: [PATCH] Fix experimental usage error (#687) It is okay to use experimental annotations, if it is in the same module. iOS can't be built without suppressing this warning: https://teamcity.jetbrains.com/buildConfiguration/JetBrainsPublicProjects_Compose_BuildNativeForPullRequests/4232288?hideProblemsFromDependencies=false&hideTestsFromDependencies=false&expandPull+Request+Details=true&expandBuildProblemsSection=true&expandBuildChangesSection=true --- compose/material3/material3/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) 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") + } } } }