Fix: move update check to after login and bump version to 1.0.2
Android Release / build (push) Canceled after 1m10s

This commit is contained in:
oqba26 committed 2026-08-02 19:16:19 +03:30
1 parent 28a3d5d9a6
commit 96d37007fb
3 files changed
+16 -9

No files matched your search

+2 -2
View File
@@ -30,8 +30,8 @@ android {
applicationId = "com.oqba26.monthlypaymentapp"
minSdk = 25
targetSdk = 34
versionCode = 1
versionName = "1.0"
versionCode = 3
versionName = "1.0.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables { useSupportLibrary = true }
}
@@ -164,17 +164,24 @@ fun MainAppHost(viewModel: PersonViewModel) {
}
LaunchedEffect(Unit) {
delay(2000.milliseconds)
updateInfo = updateManager.checkForUpdate()
val allGranted = requiredPermissions.all {
ContextCompat.checkSelfPermission(context, it) == PackageManager.PERMISSION_GRANTED
}
if (!allGranted) {
delay(2000.milliseconds)
showPermissionsDialog = true
}
}
LaunchedEffect(authState) {
if (authState is AuthState.Authenticated) {
delay(2000.milliseconds)
updateInfo = updateManager.checkForUpdate()
} else {
updateInfo = null
}
}
LaunchedEffect(Unit) {
launch {
viewModel.toastMessage.collect { message ->