Skip to content

Commit

Permalink
Add crashlytics to standard builds
Browse files Browse the repository at this point in the history
  • Loading branch information
AntsyLich committed Sep 3, 2024
1 parent fc1c804 commit 3c611b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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" }

Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit 3c611b9

Please sign in to comment.