Repository navigation
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/sdkand
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
wsfrom 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
jstarget and a facade for JavaScript and TypeScript,cloud.squiddy.sdk.web:
initialize(options)takes a plain object and returns aSquiddywithconfig,gateandstrings(the same
object while they do not change),string(key, fallback?), the listenersonConfig,onGateandonStrings(each
returns the function that stops it),settled()(aPromiseof the first state that is notpending),
setLanguage,refreshandclose. The states, gates and errors have akindstring, a closed set like their
Kotlin classes. In a page the SDK calls Squiddy withfetch, through the data plane's CORS, names itself in
X-User-Agent, sendsapp_typeweb, keeps its archive and installation id inlocalStorage(in memory where the
browser refuses it), checks while the page is visible (document.visibilityState) and follows
navigator.language. Its TypeScript declarations are dumped insquiddy/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 thejstarget: a Kotlin Multiplatform
project with ajstarget takes it throughcloud.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 withcontact@squiddy.cloudandhttps://squiddy.cloud. The API of Android, the JVM and iOS does not change.