Skip to content

Commit

Permalink
refactor: add language tag to log data
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Jul 22, 2023
1 parent 3a09079 commit ea7ff1d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ class MainApplication : Application(), SharedPreferences.OnSharedPreferenceChang
CrashlyticsImpl.setCustomKey("buildType", BuildConfig.BUILD_TYPE)
CrashlyticsImpl.setCustomKey("buildCommit", BuildConfig.COMMIT_SHA)
CrashlyticsImpl.setCustomKey("flavor", BuildConfig.FLAVOR)
try {
CrashlyticsImpl.setCustomKey(
"language",
resources.configuration.locales.get(0).language
)
}
catch (ex: Exception) {
// Just in case the locale array is empty
Timber.e(ex)
}
}

/**
Expand Down

0 comments on commit ea7ff1d

Please sign in to comment.