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
8 changes: 4 additions & 4 deletions .github/workflows/Nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,20 +272,20 @@ jobs:
-eType HTML \
-rType ALL

- name: Generate mendable JSON report (warnings only)
- name: Generate mendable JSON report
run: |
java -jar tools/mendable.jar \
-i build/compose_metrics \
-sr \
-o build/mendable-output \
-oName mendable-warnings \
-oName mendable-all \
-eType JSON \
-rType WITH_WARNINGS
-rType ALL

- name: Check Compose metrics (skippable ratio)
run: |
python3 scripts/check_compose_metrics.py \
build/mendable-output/mendable-warnings.json \
build/mendable-output/mendable-all.json \
--threshold 100

- name: Upload mendable HTML report
Expand Down
1 change: 1 addition & 0 deletions wear/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ dependencies {
implementation(libs.androidx.compose.tooling.preview)
implementation(libs.androidx.wear.compose.foundation)
implementation(libs.androidx.wear.compose.material3)
implementation(libs.kotlinx.collections.immutable)

testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
package team.aliens.dms.android.wear.data

import kotlinx.collections.immutable.persistentListOf
import team.aliens.dms.android.wear.model.WearNoticeUiModel
import team.aliens.dms.android.wear.model.WearSnapshot

internal object WearStubRepository {
fun loadSnapshot(): WearSnapshot = WearSnapshot(
primaryMealLabel = "์ ์‹ฌ",
primaryMealMenu = listOf(
primaryMealMenu = persistentListOf(
"์น˜ํ‚จ๋งˆ์š”๋ฎ๋ฐฅ",
"๋ฏธ์†Œ๊ตญ",
"๊ณ„์ ˆ ์ƒ๋Ÿฌ๋“œ",
),
statusTitle = "์ž”๋ฅ˜ ์ƒํƒœ",
statusValue = "์˜ค๋Š˜ ์ž”๋ฅ˜ ์˜ˆ์ •",
syncedAt = "10:30",
notices = listOf(
notices = persistentListOf(
WearNoticeUiModel(
title = "์ฃผ๋ง ์ ํ˜ธ ์‹œ๊ฐ„ ๋ณ€๊ฒฝ",
dateText = "์˜ค๋Š˜",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package team.aliens.dms.android.wear.model

import androidx.compose.runtime.Immutable
import kotlinx.collections.immutable.ImmutableList

@Immutable
data class WearSnapshot(
val primaryMealLabel: String,
val primaryMealMenu: List<String>,
val primaryMealMenu: ImmutableList<String>,
val statusTitle: String,
val statusValue: String,
val syncedAt: String,
val notices: List<WearNoticeUiModel>,
val notices: ImmutableList<WearNoticeUiModel>,
)
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import androidx.compose.ui.unit.dp
import androidx.wear.compose.material3.Button
import androidx.wear.compose.material3.MaterialTheme
import androidx.wear.compose.material3.Text
import kotlinx.collections.immutable.ImmutableList

@Composable
internal fun WearScreen(
Expand Down Expand Up @@ -45,7 +46,7 @@ internal fun WearScreen(

@Composable
internal fun WearBulletList(
items: List<String>,
items: ImmutableList<String>,
modifier: Modifier = Modifier,
) {
Column(
Expand Down
Loading