Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-02 19:19:33 +05:00
parent 26bba893ff
commit 51e650c360
47 changed files with 1628 additions and 73 deletions

1
features/force-update/api/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/build

View file

@ -0,0 +1,19 @@
plugins {
alias(deps.plugins.android.library)
alias(deps.plugins.kotlin.android)
id("configuration")
}
android {
namespace = "com.tangem.features.forceupdate.api"
}
dependencies {
/* Project - Core */
implementation(projects.core.decompose)
implementation(projects.core.ui)
/* Compose */
implementation(deps.compose.runtime)
}

View file

@ -0,0 +1,13 @@
package com.tangem.features.forceupdate
import com.tangem.core.decompose.factory.ComponentFactory
import com.tangem.core.ui.decompose.ComposableContentComponent
interface ForceUpdateComponent : ComposableContentComponent {
interface Factory : ComponentFactory<Params, ForceUpdateComponent>
data class Params(val mode: Mode)
enum class Mode { Force, Brick, OsTooOld, Optional }
}

View file

@ -0,0 +1,14 @@
package com.tangem.features.forceupdate
/**
* Resumes the regular app startup after an optional update screen is dismissed.
*
* The startup awaits [awaitDismiss] while the optional update is shown, and the screen calls
* [dismiss] on "Later" to let the normal startup (and its side effects) run afterwards.
*/
interface ForceUpdateContinuation {
suspend fun awaitDismiss()
fun dismiss()
}

View file

@ -0,0 +1,6 @@
package com.tangem.features.forceupdate
interface ForceUpdateFeatureToggles {
val isForceUpdateEnabled: Boolean
}