Skip to content

Commit b798b66

Browse files
committed
fix(app): exclude transitive firebase-crashlytics to prevent release crash
The Crashlytics SDK is pulled in via firebase-bom but without the Crashlytics Gradle plugin no build ID resource is generated, causing a fatal IllegalStateException in FirebaseInitProvider on startup.
1 parent 8fe2071 commit b798b66

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/flipcash/app/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ android {
6262
isMinifyEnabled = true
6363
isShrinkResources = true
6464
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
65-
6665
}
6766
getByName("debug") {
6867
applicationIdSuffix = ".dev"
@@ -98,6 +97,10 @@ configurations.all {
9897
// protobuf-javalite 4.x already includes well-known types, making
9998
// Firebase's protolite-well-known-types redundant and conflicting.
10099
exclude(group = "com.google.firebase", module = "protolite-well-known-types")
100+
// Crashlytics SDK is pulled transitively via firebase-bom but we use Bugsnag
101+
// for error reporting. Without the Crashlytics Gradle plugin the SDK crashes
102+
// at startup due to a missing build ID resource.
103+
exclude(group = "com.google.firebase", module = "firebase-crashlytics")
101104
}
102105

103106
versioning {

0 commit comments

Comments
 (0)