127 version with all updates, credential.txt file location changed, Ui updated.
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 128,
|
||||
"versionName": "2.1.128",
|
||||
"versionCode": 127,
|
||||
"versionName": "2.1.127",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
],
|
||||
|
||||
@@ -74,6 +74,7 @@ class HemoCubeViewModel @Inject constructor(
|
||||
private val localFileDataSource: LocalFileDataSource,
|
||||
context: Context,
|
||||
) : ViewModel() {
|
||||
private var testUpload: Boolean = false
|
||||
var isServiceConnected = false
|
||||
val progressBar = MutableLiveData(false)
|
||||
private val testDetails = DataHolder.selectedTest?.toHemoCubeTestData()
|
||||
@@ -316,7 +317,12 @@ class HemoCubeViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(testUpload){
|
||||
fireBaseBulkUpload.postValue("Success")
|
||||
}
|
||||
// else{
|
||||
// fireBaseBulkUpload.postValue("Error")
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
@@ -590,13 +596,13 @@ class HemoCubeViewModel @Inject constructor(
|
||||
).format(Calendar.getInstance().time)
|
||||
when (repository.addTestToDatabase(userData)) {
|
||||
is Response.Success -> {
|
||||
fireBaseBulkUpload.postValue("Success")
|
||||
testUpload = true
|
||||
userData.localFlag = true
|
||||
updateLocalFlag(userData._id)
|
||||
}
|
||||
|
||||
else -> {
|
||||
fireBaseBulkUpload.postValue("Error")
|
||||
testUpload = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user