Skip to content
Closed
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
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ core-splashscreen = { group = "androidx.core", name = "core-splashscreen", versi
datastore-preferences = { module = "androidx.datastore:datastore-preferences", version = "1.3.0" }
detekt-formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "detekt" }
detekt-compose-rules = { module = "io.nlopez.compose.rules:detekt", version = "0.6.8" }
firebase-bom = { module = "com.google.firebase:firebase-bom", version = "34.8.0" }
firebase-bom = { module = "com.google.firebase:firebase-bom", version = "35.1.0" }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app no longer compiles with this BoM: firebase-messaging 26 deprecates two APIs the app uses, and allWarningsAsErrors makes those warnings errors.

BoM 35.x moves firebase-messaging from 25.0.1 to 26.0.1, which deprecates onNewToken and deleteToken. build-and-test fails at :app:compileDevDebugKotlin (run 43028926903):

w: .../app/src/main/java/to/bitkit/fcm/FcmService.kt:35:18 This declaration overrides a deprecated member but is not marked as deprecated itself. ...
w: .../app/src/main/java/to/bitkit/usecases/WipeWalletUseCase.kt:109:54 'fun deleteToken(): Task<Void!>' is deprecated. Deprecated in Java.
e: warnings found and -Werror specified

Both APIs still exist in 26.x, and the app uses nothing else from Firebase. That is FcmService.onMessageReceived/onNewToken and deleteToken() on wipe. minSdk 28 meets messaging 26's minimum of 24. So the narrow fix keeps behaviour as it is:

  • FcmService.kt:35: mark the override @Deprecated("..."), or narrowly @Suppress("OVERRIDE_DEPRECATION").
  • WipeWalletUseCase.kt:109: @Suppress("DEPRECATION") on the call site.

Moving to the Firebase installation ID registration is the longer-term route. Once this compiles, a device check should cover a wallet wipe (deleteToken) and one FCM push received.

glance-appwidget = { module = "androidx.glance:glance-appwidget", version.ref = "glance" }
glance-material3 = { module = "androidx.glance:glance-material3", version.ref = "glance" }
firebase-messaging = { module = "com.google.firebase:firebase-messaging" }
Expand Down
Loading