Add crashlytics to standard builds

This commit is contained in:
AntsyLich 2024-09-03 15:45:19 +06:00
parent fc1c804bfd
commit 3c611b95fb
No known key found for this signature in database
3 changed files with 12 additions and 2 deletions

View file

@ -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)

View file

@ -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

View file

@ -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"]