From 3c611b95fb79e5ac972019b76c7b24f46a3087fd Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Tue, 3 Sep 2024 15:45:19 +0600 Subject: [PATCH] Add crashlytics to standard builds --- app/build.gradle.kts | 7 ++++++- build.gradle.kts | 1 + gradle/libs.versions.toml | 6 +++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fbcdb0204..4eb9d6561 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -12,7 +12,10 @@ plugins { } if (gradle.startParameter.taskRequests.toString().contains("Standard")) { - pluginManager.apply(libs.plugins.google.services.get().pluginId) + pluginManager.apply { + apply(libs.plugins.google.services.get().pluginId) + apply(libs.plugins.firebase.crashlytics.get().pluginId) + } } shortcutHelper.setFilePath("./shortcuts.xml") @@ -240,7 +243,9 @@ dependencies { implementation(libs.logcat) // Crash reports/analytics + "standardImplementation"(platform(libs.firebase.bom)) "standardImplementation"(libs.firebase.analytics) + "standardImplementation"(libs.firebase.crashlytics) // Shizuku implementation(libs.bundles.shizuku) diff --git a/build.gradle.kts b/build.gradle.kts index 4ef17d6bc..afe089a60 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,6 +7,7 @@ buildscript { plugins { alias(kotlinx.plugins.serialization) apply false alias(libs.plugins.aboutLibraries) apply false + alias(libs.plugins.firebase.crashlytics) apply false alias(libs.plugins.google.services) apply false alias(libs.plugins.moko) apply false alias(libs.plugins.sqldelight) apply false diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1263cecc2..f8615ddb5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -10,6 +10,7 @@ sqlite = "2.4.0" voyager = "1.0.0" spotless = "6.25.0" ktlint-core = "1.3.1" +firebase-bom = "33.2.0" [libraries] desugar = "com.android.tools:desugar_jdk_libs:2.1.1" @@ -71,7 +72,9 @@ moko-core = { module = "dev.icerock.moko:resources", version.ref = "moko" } logcat = "com.squareup.logcat:logcat:0.1" -firebase-analytics = "com.google.firebase:firebase-analytics:22.1.0" +firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebase-bom" } +firebase-analytics = { module = "com.google.firebase:firebase-analytics" } +firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics" } aboutLibraries-compose = { module = "com.mikepenz:aboutlibraries-compose-m3", version.ref = "aboutlib_version" } @@ -103,6 +106,7 @@ google-services = { id = "com.google.gms.google-services", version = "4.4.2" } aboutLibraries = { id = "com.mikepenz.aboutlibraries.plugin", version.ref = "aboutlib_version" } sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" } moko = { id = "dev.icerock.mobile.multiplatform-resources", version.ref = "moko" } +firebase-crashlytics = { id = "com.google.firebase.crashlytics", version = "3.0.2" } [bundles] okhttp = ["okhttp-core", "okhttp-logging", "okhttp-brotli", "okhttp-dnsoverhttps"]