Skip to content

Releases: insurely/insurely-sdk-android-distribution

Release list

1.2.1

Choose a tag to compare

@SammiKliv SammiKliv released this 03 Jun 09:17

What's new

Distribution-only release. The InsurelySDK binary is identical to 1.2.0 — this release ships only a README update.

Required transitive dependencies documented

End-to-end integration testing surfaced that the SDK's transitive dependencies (Ktor and kotlinx.serialization) must be declared explicitly in the consumer's app. AAR + flatDir does not propagate transitive dependencies the way Maven coordinates do, and without them the SDK compiles successfully but crashes at runtime with NoClassDefFoundError when InsurelyView is first composed.

A new Required dependencies section in the README lists the six required libraries with pinned versions:

  • org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3
  • io.ktor:ktor-client-core:2.3.10
  • io.ktor:ktor-client-cio:2.3.10
  • io.ktor:ktor-client-logging:2.3.10
  • io.ktor:ktor-client-content-negotiation:2.3.10
  • io.ktor:ktor-serialization-kotlinx-json:2.3.10

Upgrade notes

No code changes. Customers consuming 1.2.0 should update to 1.2.1 only for the documentation improvement. If your integration is already working (i.e. you have the dependencies above declared), no further action is required.

Assets

  • InsurelySDK-release.aar — identical to the 1.2.0 asset.

1.2.0

Choose a tag to compare

@SammiKliv SammiKliv released this 03 Jun 08:39

What's new

First release of the Insurely Android SDK via this distribution repository.

Theme Mode API

InsurelyConfig now accepts an optional themeMode parameter for controlling light, dark, and system-driven theme resolution:

InsurelyConfig(
    customerId = "...",
    configName = "...",
    themeMode = InsurelyThemeMode.System,   // .Light, .Dark, or .System
)
  • InsurelyThemeMode.Light or InsurelyThemeMode.Dark — render the corresponding theme variant unconditionally.
  • InsurelyThemeMode.System — follow the host's color scheme via prefers-color-scheme. The embedded WebView already inherits the system color scheme on Android 10+, so this typically does the right thing without further configuration.
  • Omitted — no preference is sent; blocks resolves the theme using its own defaults.

Dark mode rendering requires your BlocksConfig to include at least one ConnectedTheme. With both light and dark identifiers configured, InsurelyThemeMode.System will follow the device automatically.

Backward compatibility

Integrators that do not set themeMode see no change in behavior. The JSON wire payload sent to blocks is unchanged when themeMode is null (the default).

Installation

See the README for full instructions on the two supported installation methods (vendored clone and direct AAR download).

Assets

  • InsurelySDK-release.aar — the SDK binary for direct integration (also present at the root of this repository for clone-based installation).