From 3fb3d9dd5a4307c4110a4d2cfd0ce35b2a840de3 Mon Sep 17 00:00:00 2001 From: Daniel Frett Date: Tue, 14 May 2024 08:46:19 -0600 Subject: [PATCH] track where the app was installed from for Crashlytics --- app/src/main/kotlin/org/cru/godtools/GodToolsApplication.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/kotlin/org/cru/godtools/GodToolsApplication.kt b/app/src/main/kotlin/org/cru/godtools/GodToolsApplication.kt index 434eccf9c0..83e6c18258 100644 --- a/app/src/main/kotlin/org/cru/godtools/GodToolsApplication.kt +++ b/app/src/main/kotlin/org/cru/godtools/GodToolsApplication.kt @@ -54,6 +54,7 @@ open class GodToolsApplication : Application(), Configuration.Provider { private fun initializeCrashlytics() { FirebaseCrashlytics.getInstance().apply { setCustomKey("InstantApp", InstantApps.isInstantApp(this@GodToolsApplication)) + setCustomKey("InstallerPackage", packageManager.getInstallerPackageName(packageName).orEmpty()) setCustomKey("SystemLanguageRaw", Locale.getDefault().toString()) setCustomKey("SystemLanguage", Locale.getDefault().toLanguageTag()) }