Skip to content

v0.1.0 — initial release

Choose a tag to compare

@proggeramlug proggeramlug released this 07 May 09:05
· 3 commits to main since this release

First release of @perryts/storekit — StoreKit 2 in-app purchase bindings for Perry.

Closes PerryTS/perry#537.

Highlights

  • Built against perry-ffi = "0.5" (declares perry.nativeLibrary.abiVersion: "0.5").
  • Six FFI exports — js_storekit_load_products / purchase / restore / has_subscription / get_jws / start_listener — wired to a Swift bridge over StoreKit 2 (Product.products(for:), Product.purchase(), AppStore.sync(), Transaction.currentEntitlements, Transaction.updates).
  • iOS 16+ and macOS 13+ build the Swift bridge via crate-ios/build.rs. Non-Apple targets fall back to crate-stub so calling code can use the same imports without #ifdef-style platform checks.
  • TypeScript exports the typed Product / PurchaseResult / HasSubscriptionResult / JwsResult / RestoreResult shapes alongside the raw FFI declarations. README has a copy-pasteable typed wrapper layer.

Still open

Google Play Billing for Android is a separate binding (same TS surface, different native side) — out of scope for this release.