Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/library.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ android {
languageVersion.set(JavaLanguageVersion.of(21))
}
unitTests.all { it.javaLauncher.set(javaLauncher) }
unitTests.isReturnDefaultValues = true
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

package com.orange.ouds.core.theme

import androidx.compose.material3.adaptive.currentWindowSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalWindowInfo
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.toSize
Expand Down Expand Up @@ -79,4 +79,4 @@ enum class WindowWidthSizeClass {
* Returns the current window width in dp.
*/
@Composable
internal fun currentWindowWidth() = with(LocalDensity.current) { currentWindowSize().toSize().toDpSize().width }
internal fun currentWindowWidth() = with(LocalDensity.current) { LocalWindowInfo.current.containerSize.toSize().toDpSize().width }
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ androidCompileSdk = "37"
androidMinSdk = "23"
androidTargetSdk = "37"
browser = "1.10.0"
composeBom = "2026.06.01"
composeBom = "2026.08.00"
constraintlayoutCompose = "1.1.2"
core = "1.19.0"
dokka = "2.2.0"
Expand Down