Add account ID to crashlytics reports.

- Added the account ID to the crashlytics reports so that we can verify if a crash can be related to an account specific situation.
master
Severiano Jaramillo 2019-09-04 11:49:00 -05:00
parent b10d9e0196
commit fa8d6cb85f
2 changed files with 6 additions and 0 deletions

View File

@ -185,6 +185,9 @@ abstract class ConnectedActivity : AppCompatActivity(), ServiceConnection {
.getString(Constants.KEY_CURRENT_ACCOUNT_ID, "") ?: ""
if (userId != "")
mCurrentAccount = UserAccount(userId)
// Make sure crashlytics reports contains the account ID
Crashlytics.setString(Constants.CRASHLYTICS_KEY_ACCOUNT_ID, userId)
}
/**

View File

@ -136,4 +136,7 @@ object Constants {
/** Key used to add the device language to the Crashlytics report */
const val CRASHLYTICS_KEY_LANGUAGE = "crashlytics_key_language"
/** Key used to add the account ID to the Crashlytics report*/
const val CRASHLYTICS_KEY_ACCOUNT_ID = "crashlytics_key_account_id"
}