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 ->
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"versionCode": 2,
|
||||
"versionName": "1.0.1",
|
||||
"url": "https://github.com/oqba26/MonthlyPaymentApp/releases/download/v1.0.1/MonthlyPaymentApp-v1.0.1.apk",
|
||||
"releaseNotes": "اصلاحات اخیر:\n- رفع تداخل در مهاجرت دیتابیس Room.\n- مرتبسازی تبها و بهبود چیدمان.\n- شخصیسازی عناوین برای صفحات آرشیو، تنظیمات و مسجد.",
|
||||
"versionCode": 3,
|
||||
"versionName": "1.0.2",
|
||||
"url": "https://github.com/oqba26/MonthlyPaymentApp/releases/download/v1.0.2/MonthlyPaymentApp-v1.0.2.apk",
|
||||
"releaseNotes": "بهروزرسانی به نسخه ۱.۰.۲:\n- رفع مشکل چرخه بیانتهای آپدیت.\n- هماهنگسازی نسخههای بیلد و فایل تنظیمات سرور.",
|
||||
"isForceUpdate": true
|
||||
}
|
||||
Reference in new issue
Block a user