ui:material3: switch default activities/windows to AdaptiveOpenSourceDependenciesScreen
--- a/ui/material3/build.gradle.kts Sun Apr 27 16:32:52 2025 -0400
+++ b/ui/material3/build.gradle.kts Sun Apr 27 16:47:27 2025 -0400
@@ -72,7 +72,6 @@
api(libs.androidx.activity)
implementation(dependencies.platform(libs.androidx.compose.bom))
implementation(libs.androidx.activity.compose)
- implementation(libs.androidx.compose.ui.tooling)
}
}
}
@@ -123,6 +122,9 @@
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.ext.junit)
androidTestImplementation(libs.espresso.core)
+ afterEvaluate {
+ "androidDebugImplementation"(libs.androidx.compose.ui.tooling)
+ }
}
publishing {
--- a/ui/material3/src/androidMain/kotlin/OpenSourceLicensesActivity.kt Sun Apr 27 16:32:52 2025 -0400
+++ b/ui/material3/src/androidMain/kotlin/OpenSourceLicensesActivity.kt Sun Apr 27 16:47:27 2025 -0400
@@ -61,7 +61,7 @@
enableEdgeToEdge()
setContent {
themeProvider {
- OpenSourceDependenciesNavHost(
+ AdaptiveOpenSourceDependenciesScreen(
openSourceLicensesViewModel = viewModel,
navigateUp = {
if (!onNavigateUp()) {
--- a/ui/material3/src/desktopMain/kotlin/OpenSourceLicensesWindow.kt Sun Apr 27 16:32:52 2025 -0400
+++ b/ui/material3/src/desktopMain/kotlin/OpenSourceLicensesWindow.kt Sun Apr 27 16:47:27 2025 -0400
@@ -54,7 +54,7 @@
) {
val title = stringResource(Res.string.title_oss_licenses)
Window(onCloseRequest = onCloseRequest, state = state, title = title) {
- OpenSourceDependenciesNavHost(
+ AdaptiveOpenSourceDependenciesScreen(
openSourceLicensesViewModel = viewModel,
navigateUp = {
onCloseRequest()