Updated on 2026-08-14
This commit is contained in:
parent
26bba893ff
commit
51e650c360
47 changed files with 1628 additions and 73 deletions
1
features/force-update/api/.gitignore
vendored
Normal file
1
features/force-update/api/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/build
|
||||
19
features/force-update/api/build.gradle.kts
Normal file
19
features/force-update/api/build.gradle.kts
Normal 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)
|
||||
}
|
||||
|
|
@ -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 }
|
||||
}
|
||||
|
|
@ -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()
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
package com.tangem.features.forceupdate
|
||||
|
||||
interface ForceUpdateFeatureToggles {
|
||||
|
||||
val isForceUpdateEnabled: Boolean
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue