Add firebase analytics and crashlytics
This commit is contained in:
parent
22f461dabc
commit
fb47021cff
4 changed files with 13 additions and 2 deletions
|
@ -3,6 +3,8 @@ plugins {
|
||||||
id("kotlin-android")
|
id("kotlin-android")
|
||||||
id("kotlin-kapt")
|
id("kotlin-kapt")
|
||||||
id("dagger.hilt.android.plugin")
|
id("dagger.hilt.android.plugin")
|
||||||
|
id("com.google.gms.google-services")
|
||||||
|
id("com.google.firebase.crashlytics")
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
@ -62,6 +64,9 @@ dependencies {
|
||||||
implementation(libs.accompanist.webview)
|
implementation(libs.accompanist.webview)
|
||||||
implementation(libs.bundles.compose)
|
implementation(libs.bundles.compose)
|
||||||
implementation(libs.lifecycle)
|
implementation(libs.lifecycle)
|
||||||
|
implementation(platform(libs.firebase.bom))
|
||||||
|
implementation(libs.firebase.analytics)
|
||||||
|
implementation(libs.firebase.crashlytics)
|
||||||
implementation(libs.hilt.android.core)
|
implementation(libs.hilt.android.core)
|
||||||
kapt(libs.hilt.android.kapt)
|
kapt(libs.hilt.android.kapt)
|
||||||
implementation(libs.hilt.navigation.compose)
|
implementation(libs.hilt.navigation.compose)
|
||||||
|
|
|
@ -10,6 +10,8 @@ buildscript {
|
||||||
classpath("com.android.tools.build:gradle:7.3.0")
|
classpath("com.android.tools.build:gradle:7.3.0")
|
||||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
|
||||||
classpath("com.google.dagger:hilt-android-gradle-plugin:$hiltVersion")
|
classpath("com.google.dagger:hilt-android-gradle-plugin:$hiltVersion")
|
||||||
|
classpath("com.google.gms:google-services:4.3.14")
|
||||||
|
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.2")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
||||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
# Automatically convert third-party libraries to use AndroidX
|
# Automatically convert third-party libraries to use AndroidX
|
||||||
android.enableJetifier=true
|
android.enableJetifier=false
|
||||||
# Kotlin code style for this project: "official" or "obsolete":
|
# Kotlin code style for this project: "official" or "obsolete":
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
|
org.gradle.unsafe.configuration-cache=true
|
|
@ -38,6 +38,9 @@ compose-test = { module = "androidx.compose.ui:ui-test-junit4", version.ref = "c
|
||||||
navigation-compose = { module = "androidx.navigation:navigation-compose", version = "2.5.2" }
|
navigation-compose = { module = "androidx.navigation:navigation-compose", version = "2.5.2" }
|
||||||
coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
|
coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
|
||||||
coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
|
coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
|
||||||
|
firebase-bom = { module = "com.google.firebase:firebase-bom", version = "31.1.0" }
|
||||||
|
firebase-analytics = { module = "com.google.firebase:firebase-analytics-ktx" }
|
||||||
|
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics-ktx" }
|
||||||
preference = { module = "androidx.preference:preference-ktx", version = "1.2.0" }
|
preference = { module = "androidx.preference:preference-ktx", version = "1.2.0" }
|
||||||
lifecycle = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version = "2.5.1" }
|
lifecycle = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version = "2.5.1" }
|
||||||
hilt-android-core = { module = "com.google.dagger:hilt-android", version.ref = "hilt-android" }
|
hilt-android-core = { module = "com.google.dagger:hilt-android", version.ref = "hilt-android" }
|
||||||
|
|
Loading…
Reference in a new issue