Fix: move update check to after login and bump version to 1.0.2
Android Release / build (push) Canceled after 1m10s
Android Release / build (push) Canceled after 1m10s
This commit is contained in:
1 parent
28a3d5d9a6
commit
96d37007fb
3 files changed
+16
-9
No files matched your search
@@ -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 ->
|
||||
|
||||
Reference in new issue
Block a user