Skip to content

1.2.0

Choose a tag to compare

@SammiKliv SammiKliv released this 03 Jun 08:39
· 1 commit to main since this release

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).