Skip to content

v0.2.0

Latest

Choose a tag to compare

@inTouchSRL inTouchSRL released this 20 Nov 15:20

The Squiddy SDK 0.2.0 for iOS, as a Swift package: add https://github.com/squiddy-cloud/squiddy-swift in Xcode, or .package(url: "https://github.com/squiddy-cloud/squiddy-swift", from: "0.2.0") in a Package.swift. Android and JVM projects take the same version from Maven Central, cloud.squiddy:squiddy:0.2.0.

SquiddyCore.xcframework.zip is the SDK's Kotlin framework, which the package downloads (checksum 0694f0bf9159ee88807ec6a18e54d7aa868d28cbe04295c216f6039115314f69).

Added

  • On npm, for the browser. Web apps add npm install @squiddy-cloud/sdk and
    import { initialize } from "@squiddy-cloud/sdk": the SDK compiled with Kotlin/JS to a library of ES modules, with
    TypeScript declarations, for a bundler (Vite, webpack, esbuild) or a <script type="module">. Its one dependency is
    ws from 8.21.3, a dependency of Ktor that the browser never loads but that a bundler resolves. Node.js is not a
    supported runtime.
  • The browser target. A js target and a facade for JavaScript and TypeScript, cloud.squiddy.sdk.web:
    initialize(options) takes a plain object and returns a Squiddy with config, gate and strings (the same
    object while they do not change), string(key, fallback?), the listeners onConfig, onGate and onStrings (each
    returns the function that stops it), settled() (a Promise of the first state that is not pending),
    setLanguage, refresh and close. The states, gates and errors have a kind string, a closed set like their
    Kotlin classes. In a page the SDK calls Squiddy with fetch, through the data plane's CORS, names itself in
    X-User-Agent, sends app_type web, keeps its archive and installation id in localStorage (in memory where the
    browser refuses it), checks while the page is visible (document.visibilityState) and follows
    navigator.language. Its TypeScript declarations are dumped in squiddy/api/js/squiddy.d.mts. There is no push
    update in a page: a page cannot subscribe to a topic of Firebase Cloud Messaging, and it checks whenever it becomes
    visible.
  • Kotlin/JS on Maven Central. cloud.squiddy:squiddy-js, the klib of the js target: a Kotlin Multiplatform
    project with a js target takes it through cloud.squiddy:squiddy:0.2.0, and calls
    Squiddy.initialize(SquiddyOptions(...)), as on the other platforms.

Changed

  • The POM names the SDK's guide, https://docs.squiddy.cloud/sdk/, as the project's page, and the developer
    Squiddy with contact@squiddy.cloud and https://squiddy.cloud. The API of Android, the JVM and iOS does not change.