SankofaDeployOptions class
Per-module options for Sankofa Deploy (OTA updates).
Passed to Sankofa.init as deployOptions: when enableDeploy: true.
The apiKey + endpoint are inherited from the parent Sankofa.init
call so the host never has to repeat them.
Constructors
Properties
- appReadyTimeout → Duration
-
Maximum time we'll wait for the host's
Sankofa.deploy.notifyAppReady()call before assuming the new patch boot-looped and triggering a rollback. Mirrors the same timer in the Rust updater'snotify_app_ready_timeoutfield.final - autoCheckOnStartup → bool
-
When true, the SDK fires off an update check during init —
equivalent to calling
Sankofa.deploy.checkForUpdate()manually at startup. Defaults to true because the common case is "ship patches on launch."final - engineVersion → String?
-
Sankofa-engine identity this app was built against
(e.g.
3.44.0+sankofa-1). Used as the defaultengineVersionpassed to/api/deploy/checkwhenever the host callsSankofa.deploy.checkForKbcUpdate()/downloadKbcUpdate/fetchAndApplyKbcPatchwithout an explicit override.final - hashCode → int
-
The hash code for this object.
no setterinherited
- platformOverride → String?
-
Default platform string sent to
/api/deploy/checkwhen the host doesn't override it. When null, the SDK derives it fromPlatform.isIOS/Platform.isAndroidat call time. Override only when running on an exotic host the SDK can't detect (e.g. integration tests with a faked Platform).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signingPubkeyB64 → String?
-
v2 envelope MVP — Ed25519 public key (base64 of the raw 32-byte
point) that authorizes patches for this app. When set, the SDK
rejects any KBC patch whose envelope is unsigned, signed with a
different algorithm, or whose signature does not verify.
final
Methods
-
copyWith(
{Duration? appReadyTimeout, bool? autoCheckOnStartup, String? signingPubkeyB64, String? engineVersion, String? platformOverride}) → SankofaDeployOptions -
Returns a copy with
engineVersionoverridden — used by SankofaBootstrap.run to bind the engine version read fromsankofa.yamlwithout making the host re-construct the options object themselves. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
{required String apiKey, required String endpoint}) → Map< String, dynamic> -
Serialized form sent over the platform channel to the Kotlin/Swift
side. Keys mirror the receiving
SankofaDeployPlugin.ktparameter names exactly. signingPubkeyB64 is NOT forwarded — the Dart side is the only consumer (envelope verification happens before bytes hit the platform plugin). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited