DropletHostDescriptor

What one host advertises to the handshake.

struct DropletHostDescriptor

Initializers

init(supportedABIRange:apiVersion:appVersion:)

init(supportedABIRange: ClosedRange<Int>, apiVersion: SemanticVersion, appVersion: String)

Creates a descriptor.

Properties

apiVersion

let apiVersion: SemanticVersion

The host's DroppyKit API version.

appVersion

let appVersion: String

The host app's marketing version, compared numerically like the runtime manifests compare minAppVersion.

supportedABIRange

let supportedABIRange: ClosedRange<Int>

ABI generations this host can load, as a closed range.

Type methods

numericVersionCompare(_:isAtLeast:)

static func numericVersionCompare(_ version: String, isAtLeast minimum: String) -> Bool

Numeric dotted-version comparison, mirroring the host's runtime manifest rule: split on dots, compare components as integers, missing components count as zero. Unparseable components compare as zero rather than failing closed.

Methods

evaluate(_:)

func evaluate(_ info: DropletBundleInfo) -> DropletCompatibilityVerdict

Evaluates a bundle's declared requirements against this host. Order matters for error reporting only; every gate is checked the same way regardless of order.