Package-level declarations

Types

Link copied to clipboard
abstract class BaseViewModel<State, Event>(initialState: State) : ViewModel

Base ViewModel with a StateFlow-driven unidirectional data flow.

Link copied to clipboard
interface KommonLogger

Minimal logging seam so shared-library modules (sync, auth-session bootstrap, etc.) can log without depending on any specific logging framework (Timber, java.util.logging, etc.).

Link copied to clipboard
data class LoadingError(val message: String, val isRetryable: Boolean = true)

Error wrapper for loading failures with user-friendly messages.

Link copied to clipboard
sealed class LoadingState<out T>

Generic loading state for async data-fetching operations backed by a kotlinx.coroutines.flow.StateFlow.

Link copied to clipboard

A KommonLogger that discards everything. Safe default for libraries and tests.

Link copied to clipboard
class TimberLogger(tagPrefix: String) : KommonLogger

KommonLogger implementation backed by Timber, with a configurable tagPrefix (ported from Novalingo's Logger singleton) and a built-in release tree that suppresses verbose/debug/info logs, forwarding only warnings and errors (e.g. to crash reporting).

Functions

Link copied to clipboard

True when the trimmed string parses as a syntactically valid email address.