android / Build + lint + test (push) Successful in 4m19s
Typography.kt resolved Fraunces, Inter and JetBrains Mono through the Play Services font provider, which fetches them over the network on first use. Same rule-164 problem the web client had, with a second failure mode on top: the provider is absent entirely on devices without Play Services, so the app fell back to the platform default and stopped looking like Minstrel — quietly, with no error. The five static instances now live in res/font, vendored by the same tools/vendor-fonts.py that produces the web bundle. Both clients draw from one list of faces so they cannot drift apart. Cost is ~0.86 MB of APK; the runtime path is removed rather than kept as a fallback — the ui-text-google-fonts dependency, its version-catalog entry and the provider certificate hashes in font_certs.xml are all gone. Two things about fetching TTFs that are worth writing down, because both fail by succeeding: Google Fonts picks the format from the User-Agent, and there is no parameter to ask for one. A modern UA gets woff2, which res/font cannot load. The obvious "use an old UA" fix gets EOT — an IE-only format that downloads happily, has a plausible size, and is entirely useless here. An Android 4.4 UA is what actually yields TrueType. css2 also collapses a multi-weight request to 400 for legacy clients, so asking for Medium silently returns Regular: a valid TrueType file that renders at the wrong weight everywhere. Each weight is therefore fetched on its own URL, and the script now asserts OS/2 usWeightClass on every download — that field is the only thing distinguishing the two files. Verified before wiring: all five carry TrueType magic, the 400/500 pairs differ, and their usWeightClass reads 400/400/500/500/400 as declared beside them in the FontFamily. Not covered: there is no guard for this on the Android side. The web equivalent is asserted by no-external-assets.test.ts, but the Android tree has no source-inspection test pattern to follow and no way to falsify one without a local Gradle run. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SQ31KQpYbStyK5y58UmPLH
104 lines
6.4 KiB
TOML
104 lines
6.4 KiB
TOML
[versions]
|
|
# Pinned for JDK 25 + AGP 9 + KSP-built-in-Kotlin compat:
|
|
# - Gradle 9.1.0 supports JDK 25 (see gradle-wrapper.properties)
|
|
# - AGP 9.0.1 requires Gradle 9.1.0+
|
|
# - Kotlin 2.3.x: AGP 9's built-in Kotlin path; the older kotlin-android
|
|
# plugin can't cast AGP 9's ApplicationExtension to the removed
|
|
# BaseExtension, and KSP 1.x isn't compatible with built-in Kotlin
|
|
# - KSP 2.3.x (PR #2674, merged Oct 2025): adds AGP 9 built-in Kotlin
|
|
# support, so we don't need the kotlin-android plugin at all
|
|
agp = "9.0.1"
|
|
kotlin = "2.3.21"
|
|
ksp = "2.3.8"
|
|
hilt = "2.59.2"
|
|
hilt-androidx = "1.2.0"
|
|
compose-bom = "2026.05.01"
|
|
nav-compose = "2.8.3"
|
|
room = "2.8.4"
|
|
retrofit = "2.11.0"
|
|
okhttp = "4.12.0"
|
|
kotlinx-serialization = "1.7.3"
|
|
kotlinx-coroutines = "1.9.0"
|
|
kotlinx-datetime = "0.6.1"
|
|
kotlinx-serialization-converter = "1.0.0"
|
|
media3 = "1.10.1"
|
|
mediarouter = "1.7.0"
|
|
coil = "3.0.0-rc02"
|
|
palette = "1.0.0"
|
|
timber = "5.0.1"
|
|
work = "2.10.0"
|
|
lifecycle = "2.8.7"
|
|
junit-jupiter = "5.11.3"
|
|
turbine = "1.2.0"
|
|
mockk = "1.13.13"
|
|
compose-test = "1.7.5"
|
|
ktlint-gradle = "12.1.1"
|
|
detekt = "2.0.0-alpha.3"
|
|
kxml2 = "2.3.0"
|
|
|
|
[libraries]
|
|
androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.13.1" }
|
|
androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle" }
|
|
androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycle" }
|
|
androidx-lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version.ref = "lifecycle" }
|
|
androidx-activity-compose = { module = "androidx.activity:activity-compose", version = "1.9.3" }
|
|
androidx-nav-compose = { module = "androidx.navigation:navigation-compose", version.ref = "nav-compose" }
|
|
androidx-hilt-nav-compose = { module = "androidx.hilt:hilt-navigation-compose", version.ref = "hilt-androidx" }
|
|
androidx-hilt-work = { module = "androidx.hilt:hilt-work", version.ref = "hilt-androidx" }
|
|
androidx-hilt-compiler = { module = "androidx.hilt:hilt-compiler", version.ref = "hilt-androidx" }
|
|
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "work" }
|
|
compose-bom = { module = "androidx.compose:compose-bom", version.ref = "compose-bom" }
|
|
compose-ui = { module = "androidx.compose.ui:ui" }
|
|
compose-ui-graphics = { module = "androidx.compose.ui:ui-graphics" }
|
|
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
|
|
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
|
|
compose-material3 = { module = "androidx.compose.material3:material3" }
|
|
hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt" }
|
|
hilt-compiler = { module = "com.google.dagger:hilt-compiler", version.ref = "hilt" }
|
|
room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
|
|
room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
|
|
room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
|
|
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
|
|
retrofit-kotlinx-serialization-converter = { module = "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter", version.ref = "kotlinx-serialization-converter" }
|
|
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
|
|
okhttp-logging = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp" }
|
|
okhttp-sse = { module = "com.squareup.okhttp3:okhttp-sse", version.ref = "okhttp" }
|
|
okhttp-mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okhttp" }
|
|
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" }
|
|
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinx-coroutines" }
|
|
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinx-coroutines" }
|
|
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinx-datetime" }
|
|
media3-exoplayer = { module = "androidx.media3:media3-exoplayer", version.ref = "media3" }
|
|
media3-session = { module = "androidx.media3:media3-session", version.ref = "media3" }
|
|
media3-datasource-okhttp = { module = "androidx.media3:media3-datasource-okhttp", version.ref = "media3" }
|
|
media3-ui = { module = "androidx.media3:media3-ui", version.ref = "media3" }
|
|
mediarouter = { module = "androidx.mediarouter:mediarouter", version.ref = "mediarouter" }
|
|
coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil" }
|
|
coil-network-okhttp = { module = "io.coil-kt.coil3:coil-network-okhttp", version.ref = "coil" }
|
|
androidx-palette = { module = "androidx.palette:palette-ktx", version.ref = "palette" }
|
|
# CMP (Compose Multiplatform) variant — provides icons as ImageVector
|
|
# objects (e.g. `Icon(Lucide.Disc3, ...)`). The -android variant ships
|
|
# Vector Drawable XML accessed via painterResource(), which is less
|
|
# idiomatic for Compose code. CMP works fine in pure-Android Compose;
|
|
# "CMP" doesn't mean multiplatform-required.
|
|
icons-lucide = { module = "com.composables:icons-lucide-cmp", version = "2.2.1" }
|
|
timber = { module = "com.jakewharton.timber:timber", version.ref = "timber" }
|
|
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" }
|
|
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version = "1.11.3" }
|
|
turbine = { module = "app.cash.turbine:turbine", version.ref = "turbine" }
|
|
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
|
|
compose-ui-test = { module = "androidx.compose.ui:ui-test-junit4" }
|
|
compose-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest" }
|
|
kxml2 = { module = "net.sf.kxml:kxml2", version.ref = "kxml2" }
|
|
|
|
[plugins]
|
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
|
androidx-room = { id = "androidx.room", version.ref = "room" }
|
|
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
|
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
|
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
|
|
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
|
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint-gradle" }
|
|
detekt = { id = "dev.detekt", version.ref = "detekt" }
|