Package-level declarations

Types

Link copied to clipboard
object Dbc

Global configuration and switches for design-by-contract checks.

Link copied to clipboard
object DbcAndroid

Configuration helper and state holder for Android applications.

Link copied to clipboard

Automatic initializer for design-by-contract on Android.

Link copied to clipboard

Categories of contract checks that you can configure independently.

Functions

Link copied to clipboard
internal fun envName(key: String): String

Convert a dot-separated configuration key into an uppercase environment variable name.

Link copied to clipboard
internal actual fun hostSetting(key: String): String?

Retrieve the host configuration setting for key on iOS.

internal actual fun hostSetting(key: String): String?

Retrieve the host configuration setting for key on Linux ARM64.

internal actual fun hostSetting(key: String): String?

Retrieve the host configuration setting for key on Linux X64.

internal actual fun hostSetting(key: String): String?

Retrieve the host configuration setting for key on macOS ARM64.

internal expect fun hostSetting(key: String): String?

Retrieve the host operating system configuration setting for key before consulting environment variables.

Link copied to clipboard
internal fun parseFlag(value: String?): Boolean?

Parse a string value into a boolean flag.

Link copied to clipboard
internal actual fun platformDebugDefault(): Boolean

Determine if contract checks are enabled by default based on the Android debuggable flag.

internal expect fun platformDebugDefault(): Boolean

Determine if contract checks are enabled by default on the platform when no configuration exists.

internal actual fun platformDebugDefault(): Boolean

Determine if contract checks are enabled by default in JavaScript environments.

internal actual fun platformDebugDefault(): Boolean

Determine if contract checks are enabled by default on the JVM platform.

internal actual fun platformDebugDefault(): Boolean

Determine if contract checks are enabled by default on Kotlin/Native platforms.

Determine if contract checks are enabled by default in WebAssembly JavaScript environments.

internal actual fun platformDebugDefault(): Boolean

Determine if contract checks are enabled by default in WebAssembly WASI environments.

Link copied to clipboard
internal actual fun platformSetting(key: String): String?

Retrieve the configuration value for key from Android metadata, system properties, or debug properties.

internal expect fun platformSetting(key: String): String?

Retrieve the raw configuration value for key from the platform environment.

internal actual fun platformSetting(key: String): String?

Retrieve the configuration value for key in JavaScript environments.

internal actual fun platformSetting(key: String): String?

Retrieve the configuration value for key on the JVM platform.

internal actual fun platformSetting(key: String): String?

Retrieve the configuration value for key on Kotlin/Native platforms.

Retrieve the configuration value for key in WebAssembly JavaScript environments.

internal actual fun platformSetting(key: String): String?

Retrieve the configuration value for key in WebAssembly WASI environments.

Link copied to clipboard
internal fun resolveFlag(kind: DbcKind, setting: (String) -> String?, debugDefault: Boolean): Boolean

Resolve the boolean configuration flag for a specified check category.