Skip to content

Commit

Permalink
Add firebase crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
iamoscarliang committed Nov 23, 2024
1 parent 66739d6 commit 8003895
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
alias libs.plugins.android.application
alias libs.plugins.google.services
alias libs.plugins.firebase.crashlytics
}

android {
Expand Down Expand Up @@ -65,6 +66,7 @@ dependencies {
implementation platform(libs.firebase.bom)
implementation libs.firebase.firestore
implementation libs.firebase.analytics
implementation libs.firebase.crashlytics
implementation libs.firebase.auth
implementation libs.dagger.core
implementation libs.dagger.android.core
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
alias libs.plugins.android.application apply false
alias libs.plugins.android.library apply false
alias libs.plugins.google.services apply false
alias libs.plugins.firebase.crashlytics apply false
}

tasks.register('clean', Delete) {
Expand Down
5 changes: 4 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[versions]
androidGradlePlugin = "7.2.0"
googleGradlePlugin = "4.3.0"
crashlyticsGradlePlugin = "2.9.9"
androidxAppCompat = "1.6.1"
androidxConstraintlayout = "2.1.4"
androidxNavigation = "2.4.0"
Expand Down Expand Up @@ -39,6 +40,7 @@ androidx-fragment-testing = { group = "androidx.fragment", name = "fragment-test
firebase-bom = { group = "com.google.firebase", name = "firebase-bom", version.ref = "firebaseBom" }
firebase-firestore = { group = "com.google.firebase", name = "firebase-firestore" }
firebase-analytics = { group = "com.google.firebase", name = "firebase-analytics" }
firebase-crashlytics = { group = "com.google.firebase", name = "firebase-crashlytics" }
firebase-auth = { group = "com.google.firebase", name = "firebase-auth" }
dagger-core = { group = "com.google.dagger", name = "dagger", version.ref = "dagger" }
dagger-compiler = { group = "com.google.dagger", name = "dagger-compiler", version.ref = "dagger" }
Expand All @@ -57,4 +59,5 @@ mockito-android = { group = "org.mockito", name = "mockito-android", version.ref
[plugins]
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" }
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" }
google-services = { id = "com.google.gms.google-services", version.ref = "googleGradlePlugin" }
google-services = { id = "com.google.gms.google-services", version.ref = "googleGradlePlugin" }
firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "crashlyticsGradlePlugin" }

0 comments on commit 8003895

Please sign in to comment.