chore(deps): update Compose to 1.13.1

Update the Compose BOM to 2026.12.00 and pass system locales
explicitly to TextMeasurer.
This commit is contained in:
OneWay committed 2026-12-06 01:06:06 +08:00
1 parent 6ad9b92a31
commit cc9b1987f9
3 files changed
+9 -3

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ The main search screen remains usable as long as at least one indexed dictionary
## Tech Stack
- Kotlin 2.5.0
- Jetpack Compose 1.13 (BOM 2026.11.01)
- Jetpack Compose 1.13.1 (BOM 2026.12.00)
- Material 3 1.5.0
- Coroutines and Flow 1.11.0
- DataStore Preferences 1.3.0
@@ -3,6 +3,7 @@ package com.example.research.ui.article
import android.content.Context
import androidx.compose.ui.text.TextMeasurer
import androidx.compose.ui.text.font.createFontFamilyResolver
import androidx.compose.ui.text.intl.LocaleList
import androidx.compose.ui.unit.Constraints
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
@@ -26,6 +27,11 @@ object ArticleTextWarmUp {
defaultFontFamilyResolver = createFontFamilyResolver(context),
defaultDensity = density,
defaultLayoutDirection = LayoutDirection.Ltr,
defaultLocaleList = LocaleList(
List(context.resources.configuration.locales.size()) { index ->
androidx.compose.ui.text.intl.Locale(context.resources.configuration.locales[index].toLanguageTag())
},
),
cacheSize = 0,
)
val widthPx = with(density) { WARM_UP_WIDTH.toPx().toInt() }
+2 -2
View File
@@ -4,8 +4,8 @@ activity_compose = "1.13.0"
agp = "9.5.3"
baselineprofile = "1.5.0"
benchmark_macro = "1.5.0"
compose_bom = "2026.11.01"
compose_runtime = "1.13.0"
compose_bom = "2026.12.00"
compose_runtime = "1.13.1"
core = "1.19.1"
datastore_preferences = "1.3.0"
documentfile = "1.1.0"