add download file size in MB and error code
This commit is contained in:
@@ -68,7 +68,7 @@ class DashboardActivity : AppCompatActivity() {
|
||||
.addOnProgressListener { updateProgress ->
|
||||
Toast.makeText(
|
||||
this,
|
||||
"FirebaseAppDistribution progress: ${updateProgress.updateStatus}. ${updateProgress.apkBytesDownloaded}/${updateProgress.apkFileTotalBytes}",
|
||||
"${updateProgress.updateStatus}. ${updateProgress.apkBytesDownloaded / 1048576} /${updateProgress.apkFileTotalBytes / 1048576} MB",
|
||||
Toast.LENGTH_SHORT
|
||||
).show()
|
||||
}
|
||||
@@ -82,6 +82,7 @@ class DashboardActivity : AppCompatActivity() {
|
||||
|
||||
else -> {
|
||||
// Handle other errors.
|
||||
Toast.makeText(this, "AppDistribution error, status: ${e.errorCode}", Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
FirebaseCrashlytics.getInstance().recordException(e)
|
||||
|
||||
Reference in New Issue
Block a user