Skip to content

Commit 192dcf6

Browse files
authored
Feature/add catalog list book foldable UI (#20)
* feat(mobile-app): Added condition for catalog list book foldable portrait ui * feat(catalog-source): Updated catalog source information * Updated version catalog * feat(mobile-app): Updated build file
1 parent 970ba52 commit 192dcf6

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

apps/mobile-app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ android {
5252

5353
}
5454
composeOptions {
55-
kotlinCompilerExtensionVersion = libs.versions.kotlin.compose.compiler.get()
55+
kotlinCompilerExtensionVersion = libs.versions.kotlinComposeCompiler.get()
5656
}
5757
packaging {
5858
resources {

apps/mobile-app/src/main/kotlin/dev/marlonlom/apps/cappajv/features/catalog_list/CatalogListContent.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ fun CatalogListContent(
4343
onCatalogItemSelected: (Long) -> Unit,
4444
) {
4545
when {
46+
47+
(appState.devicePosture is DevicePosture.Separating.Book).and(appState.isCompactHeight.not())
48+
.and(appState.isLandscape.not()) -> {
49+
50+
}
51+
4652
appState.isLandscape.and(appState.devicePosture == DevicePosture.Normal).and(appState.isCompactHeight) -> {
4753
LandscapeCompactCatalogListScreen(
4854
appState = appState,

features/core/catalog-source/src/main/resources/en/catalog.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"picture": "https://juanvaldez.com/wp-content/uploads/2022/10/Afogatto-Juan-Valdez.jpg",
88
"punctuations": [
99
{
10-
"label": "Affogato",
10+
"label": "Unit",
1111
"pointsQty": 1750
1212
}
1313
]
@@ -360,7 +360,7 @@
360360
},
361361
{
362362
"id": "12971",
363-
"title": "Nevado cafe",
363+
"title": "Nevado café",
364364
"category": "Cold drinks",
365365
"detail": "It is a creamy cold coffee-based drink decorated with Chantilly.",
366366
"picture": "https://juanvaldez.com/wp-content/uploads/2023/02/nevado_de_cafe___300ml_700x700px.jpg",

features/core/catalog-source/src/main/resources/es/catalog.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"picture": "https://juanvaldez.com/wp-content/uploads/2022/10/Afogatto-Juan-Valdez.jpg",
88
"punctuations": [
99
{
10-
"label": "Affogato",
10+
"label": "Unidad",
1111
"pointsQty": 1750
1212
}
1313
]
@@ -360,7 +360,7 @@
360360
},
361361
{
362362
"id": "12971",
363-
"title": "Nevado cafe",
363+
"title": "Nevado café",
364364
"category": "Bebidas frías",
365365
"detail": "Es una cremosa bebida fría a base de café decorada con Chantilly.",
366366
"picture": "https://juanvaldez.com/wp-content/uploads/2023/02/nevado_de_cafe___300ml_700x700px.jpg",

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
agp = "8.3.0"
33
kotlin = "1.9.22"
4-
kotlin-compose-compiler = "1.5.8"
4+
kotlinComposeCompiler = "1.5.8"
55
ksp = "1.9.22-1.0.18"
66

77
[libraries]

0 commit comments

Comments
 (0)