Skip to content

Commit b8cc5d4

Browse files
committed
fix(deps): declare Material Components, lost with the Navigation 2 removal
Theme.Code extends Theme.MaterialComponents.DayNight.NoActionBar, but com.google.android.material:material was never declared in the build — it resolved transitively through navigation-ui, whose POM pins it at 1.4.0. Dropping navigation-ui took it off the resource path and broke processDebugResources on the theme parent and its colorPrimaryVariant, colorOnPrimary, colorSecondary, colorSecondaryVariant and colorOnSecondary attributes. Declare it at 1.4.0, the version already resolving, so this stays a build-graph change rather than a theming one. Material 1.5 reworked the color attributes, so a bump is worth doing on its own.
1 parent 455957b commit b8cc5d4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/flipcash/app/build.gradle.kts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ dependencies {
295295
implementation(libs.androidx.lifecycle.viewmodel)
296296
implementation(libs.androidx.work)
297297
implementation(libs.androidx.webkit)
298+
// Resources only: Theme.Code in res/values/themes.xml extends Theme.MaterialComponents.
299+
implementation(libs.google.material)
298300

299301
//hilt dependency injection
300302
implementation(libs.hilt.android)

‎gradle/libs.versions.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ play-service-ml-barcode = "18.3.1"
5555
play-services-auth-api-phone = "18.3.1"
5656
google-play-billing = "9.1.0"
5757
google-play-updates = "2.1.0"
58+
google-material = "1.4.0"
5859

5960
grpc = "1.83.1"
6061
grpc-okhttp = "1.83.1"
@@ -245,6 +246,7 @@ google-play-billing-runtime = { module = "com.android.billingclient:billing", ve
245246
google-play-billing-ktx = { module = "com.android.billingclient:billing-ktx", version.ref = "google-play-billing" }
246247
google-play-app-updates-runtime = { module = "com.google.android.play:app-update", version.ref = "google-play-updates" }
247248
google-play-app-updates-ktx = { module = "com.google.android.play:app-update-ktx", version.ref = "google-play-updates" }
249+
google-material = { module = "com.google.android.material:material", version.ref = "google-material" }
248250

249251
# Kin
250252
kin-sdk = { module = "org.kin.sdk.android:base", version.ref = "kin-sdk" }

0 commit comments

Comments
 (0)