Coverage Summary for Class: AppVersionStatus (com.georgeci.moneysurfer.domain.model)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| AppVersionStatus$Supported |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(2/2)
|
| AppVersionStatus$Unsupported |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(7/7)
|
| AppVersionStatus$UpdateAvailable |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(7/7)
|
| Total |
100%
(3/3)
|
|
100%
(3/3)
|
100%
(16/16)
|
package com.georgeci.moneysurfer.domain.model
/**
* Result of comparing the local build against the remote app-version gate.
*
* - [Supported] — version is current or newer than `latestAppVersionCode`.
* - [UpdateAvailable] — soft prompt; sync still allowed.
* - [Unsupported] — hard block; sync and write-usecases must refuse.
*
* See block.md.
*/
sealed interface AppVersionStatus {
data object Supported : AppVersionStatus
data class UpdateAvailable(val message: String?) : AppVersionStatus
data class Unsupported(val message: String) : AppVersionStatus
}