Skip to content
Merged
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
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ kotlin.incremental.native=true
kotlin.js.runViaBuildToolsApi=true
kotlin.wasm.runViaBuildToolsApi=true
kotlin.metadata.runViaBuildToolsApi=true
# Detekt gradle plugin is not compatible with configuration cache
#org.gradle.configuration-cache=true
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ androidMinSdk = "28"
#noinspection UnusedVersionCatalogEntry
androidTargetSdk = "36"
androidx-compose = "1.12.1"
androidx-compose-material3 = "1.5.0-alpha28"
androidx-compose-material3 = "1.5.0-alpha29"
appdirs = "1.5.0"
circuit = "0.39.0"
coil = "3.6.3"
Expand Down Expand Up @@ -38,7 +38,7 @@ kotlinx-coroutines = "1.11.0"
kotlinx-serialization = "1.11.0"
ksp = "2.3.12"
ktor = "3.6.0"
metro = "1.4.4"
metro = "1.4.5"
room = "3.0.3"
sqlite = "2.7.1"
store = "5.1.0-beta01"
Expand Down Expand Up @@ -125,7 +125,7 @@ dataresultStore5 = { module = "io.github.solcott:dataresult-store5", version.ref
uistate = { module = "io.github.solcott:uistate", version.ref = "dataresult" }
uistateCircuit = { module = "io.github.solcott:uistate-circuit", version.ref = "dataresult" }
#noinspection UnusedVersionCatalogEntry
detekt-compose-rules = { module = "io.nlopez.compose.rules:detekt", version = "0.6.6" }
detekt-compose-rules = { module = "io.nlopez.compose.rules:detekt", version = "0.6.7" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
kermit = { module = "co.touchlab:kermit", version.ref = "kermit" }
kermit-core = { module = "co.touchlab:kermit-core", version.ref = "kermit" }
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
distributionSha256Sum=bafd5ce9cfaea0fbccfdc8439a1ac42fbd4cd9c89dc9a988228d8a2639a58e6c
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.0-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.scottolcott.recipe

import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
import androidx.compose.runtime.compositionLocalOf
import com.scottolcott.recipe.domain.isCupertino
import com.scottolcott.recipe.domain.presenter.RecipeScaffoldState
Expand Down Expand Up @@ -29,6 +30,7 @@ val LocalAppBarShowsScreenTitle = compositionLocalOf { false }
* [LocalAppBarShowsScreenTitle] to decide whether to head themselves.
*/
@Composable
@ReadOnlyComposable
internal fun RecipeScaffoldState.appBarShowsScreenTitle(): Boolean = isCupertino && !searchVisible

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.widthIn
import androidx.compose.foundation.layout.wrapContentWidth
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
Expand All @@ -26,6 +27,7 @@ import com.scottolcott.recipe.domain.isPointer
* the horizontal recipe card and the wider grid cell that card needs.
*/
@Composable
@ReadOnlyComposable
fun isShortWindow(): Boolean =
!LocalWindowSizeClass.current.isHeightAtLeastBreakpoint(HEIGHT_DP_MEDIUM_LOWER_BOUND)

Expand Down
Loading