From c82f0a6af3189daab1a403583ed21315726f26bc Mon Sep 17 00:00:00 2001 From: Marco Romano Date: Fri, 10 Mar 2023 14:49:33 +0100 Subject: [PATCH] Add Crashlytics in release builds (#9) --- app/build.gradle.kts | 7 ++++--- app/google-services.json | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 app/google-services.json diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fd0a41c0..758ae7c0 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -5,9 +5,8 @@ plugins { id(libs.plugins.android.application.get().pluginId) id(libs.plugins.kotlin.android.get().pluginId) id(libs.plugins.kotlin.kapt.get().pluginId) - // TODO // id(libs.plugins.google.services.get().pluginId) - // TODO // id(libs.plugins.google.firebase.crashlytics.get().pluginId) - // TODO // id(libs.plugins.google.firebase.appDistribution.get().pluginId) + id(libs.plugins.google.services.get().pluginId) + id(libs.plugins.google.firebase.crashlytics.get().pluginId) // TODO // id(libs.plugins.playPublisher.get().pluginId) id(libs.plugins.dagger.hilt.get().pluginId) id(libs.plugins.google.secrets.get().pluginId) @@ -143,6 +142,8 @@ dependencies { implementation(platform(libs.androidx.compose.bom)) debugImplementation(libs.androidx.composeUiTestManifest) debugImplementation(libs.androidx.composeUiTooling) + releaseImplementation(platform(libs.google.firebase.bom)) + releaseImplementation(libs.google.firebase.crashlytics) kapt(libs.google.daggerHiltCompiler) testImplementation(libs.junit) androidTestImplementation(libs.androidx.composeUiTestJunit4) diff --git a/app/google-services.json b/app/google-services.json new file mode 100644 index 00000000..e2ce51c7 --- /dev/null +++ b/app/google-services.json @@ -0,0 +1,39 @@ +{ + "project_info": { + "project_number": "613195079771", + "project_id": "tmdb-explorer-bbf2a", + "storage_bucket": "tmdb-explorer-bbf2a.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:613195079771:android:67d1b6616df0d59c9edf7e", + "android_client_info": { + "package_name": "net.marcoromano.tmdb" + } + }, + "oauth_client": [ + { + "client_id": "613195079771-5m56hfai0d4sbtrgo7rbaehv0vg2lfhq.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyAhyWAOTU8800vwrQ9FhX0iV_vT7fAM0DY" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "613195079771-5m56hfai0d4sbtrgo7rbaehv0vg2lfhq.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file