Skip to content

Commit

Permalink
πŸ“ˆ Setup Firebase Analytics and Crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovngl committed Apr 25, 2023
1 parent d66f347 commit d57c983
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/build
/release
/release
google-services.json
8 changes: 8 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id 'kotlin-android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
}

apply plugin: 'com.google.dagger.hilt.android'
Expand Down Expand Up @@ -114,4 +116,10 @@ dependencies {
// To use Kotlin annotation processing tool (kapt)
kapt "androidx.room:room-compiler:$room_version"

// Firebase
// https://firebase.google.com/docs/android/setup#available-libraries
implementation platform('com.google.firebase:firebase-bom:31.3.0')
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.firebase:firebase-crashlytics-ktx'

}
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.google.gms:google-services:4.3.15'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.5'
}
ext {
dagger_version = '2.45'
hilt_version = '2.45'
kotlin_version = '1.8.20'
compose_version = '1.3.3'
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.

plugins {
id 'com.android.application' version '8.0.0' apply false
id 'com.android.library' version '8.0.0' apply false
Expand Down

0 comments on commit d57c983

Please sign in to comment.