Skip to content

Commit

Permalink
Skip switch to production when install is the first install
Browse files Browse the repository at this point in the history
  • Loading branch information
hueachilles committed Sep 5, 2023
1 parent b02ce39 commit d1d4bb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {

android {
defaultConfig {
val buildVersion = 144
val buildVersion = 146
applicationId = "com.crisiscleanup"
versionCode = buildVersion
versionName = "0.7.${buildVersion - 140}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,13 @@ class CrisisCleanupDataManagementRepository @Inject constructor(
}

externalScope.launch(ioDispatcher) {
clearAppDataError = ClearAppDataStep.None

try {
clearAppDataError = ClearAppDataStep.None
if (incidentsRepository.getTableCount() == 0) {
appMetricsRepository.setProductionApiSwitch()
return@launch
}

accountDataRepository.clearAccountTokens()

Expand Down

0 comments on commit d1d4bb9

Please sign in to comment.