Docs
SDK

Versioning

How the SDK packages are versioned, what stays compatible, and how new components and display formats reach older sites and apps.

Packages

PlatformPackageVersion
Web@miniwall/web0.1.0. Exports version with the same number.
React@miniwall/react0.1.0. Depends on @miniwall/web. Peer dependency: React 18 or later.
iOSMiniwallSDK and MiniwallCore (Swift Package Manager, CocoaPods)0.1.1
Androidapp.miniwall:sdk0.1.1
React Native@miniwall/react-native0.1.0
Flutterminiwall_flutter0.1.0

All use semver. While the major version is 0, a minor bump may include breaking changes, so pin the version. The hosted script tag always serves the latest web release; to pin a version on the web, install from npm. React Native and Flutter depend on the native SDKs of the same version.

Web changes are listed in each package's CHANGELOG.md. Release 0.1.0 was the first and includes every display format (modal, full screen, banner, slide-in, toast, drawer, launcher) and startAutoPlacements().

The mobile SDK version is exposed as Miniwall.version on iOS and Miniwall.VERSION on Android, and sent with every request in the X-Miniwall-SDK header (for example ios/0.1.0).

Requirements

PlatformMinimum
WebCurrent Chrome, Edge, Firefox and Safari (last two versions), iOS Safari 16 and later and Android Chrome.
iOSiOS 16, Swift 5.9
AndroidAPI 24 (Android 7.0). Variable fonts need API 26; on older versions the font's default weight is used.
React Native0.74
Flutter3.22

Compatibility rules

  • Screen JSON is not versioned by the SDK: it draws the format the editor produces. Publishing a screen does not need an SDK update or an app release.
  • Components an app does not know. When you publish a screen that uses a component a user's installed SDK version cannot draw (web or mobile), the SDK draws that component's fallback if the screen has one, and otherwise leaves it out. It never crashes. Update the SDK to see the new component.
  • New options are additive. Existing calls behave as before. Result types only grow: code that checks for purchased and closed keeps working when action and skipped exist.
  • Display formats. The SDK asks the API with v=2. On web, an older SDK that does not send it is never given toast, drawer or launcher settings: for those it gets no display and opens a popup, and placements with those formats are left out of its auto list. A newer web SDK that meets a format it does not know draws a modal. Mobile sends v=2, so it receives every format; formats a phone has no equivalent for are mapped to the nearest one (see Display modes).
  • Triggers. An app is only given triggers it can fire (app open, delay, event). Website triggers are never sent to it, and app triggers are never sent to websites.
  • Open-source code. The web bundles include Svelte and other libraries, with licenses in dist/THIRD_PARTY_LICENSES.md. The package is MIT.

On this page