Add Firebase analytics, crashlytics and performance monitoring

This commit is contained in:
Kirill Kamakin
2022-05-26 11:19:37 +02:00
parent b895ba0c91
commit 1b218fcc7b
3 changed files with 63 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ plugins {
id 'androidx.navigation.safeargs.kotlin'
id 'dagger.hilt.android.plugin'
id 'org.jetbrains.kotlin.plugin.serialization'
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
id 'com.google.firebase.firebase-perf'
}
android {
@@ -178,6 +181,12 @@ dependencies {
// https://developer.android.com/jetpack/androidx/releases/security
implementation "androidx.security:security-crypto:1.0.0"
// https://mvnrepository.com/artifact/com.google.firebase/firebase-bom?repo=google
implementation platform("com.google.firebase:firebase-bom:30.0.2")
implementation "com.google.firebase:firebase-analytics-ktx"
implementation "com.google.firebase:firebase-crashlytics-ktx"
implementation "com.google.firebase:firebase-perf-ktx"
// https://github.com/junit-team/junit4/releases
testImplementation "junit:junit:4.13.2"

47
app/google-services.json Normal file
View File

@@ -0,0 +1,47 @@
{
"project_info": {
"project_number": "884522665560",
"project_id": "mealient",
"storage_bucket": "mealient.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:884522665560:android:929b43ee82b13a95f3ac2d",
"android_client_info": {
"package_name": "gq.kirmanak.mealient"
}
},
"oauth_client": [
{
"client_id": "884522665560-frdmmbdqh789nmdashj3fu4alk67pvjr.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "gq.kirmanak.mealient",
"certificate_hash": "c6b9c7bcf7148e9c92a88f0992d5175e4144ca2b"
}
},
{
"client_id": "884522665560-hgumk6mcc0tq32kuhb71d7jbt4ml5ifd.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyChGzjbOrF_aPwenmI85-sbV8zV_aSG6DY"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "884522665560-hgumk6mcc0tq32kuhb71d7jbt4ml5ifd.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}