zuraffa_purchase_ios
The iOS adapter of the zuraffa_purchase family: StoreKit, reached
through package:in_app_purchase (in_app_purchase_storekit).
Part of the zuraffa_purchase federated monorepo, built on the Zuraffa framework.
Use
import 'package:zuraffa_purchase_ios/zuraffa_purchase_ios.dart';
import 'package:zuraffa_purchase/zuraffa_purchase.dart';
registerIosPurchaseDependencies(getIt); // the StoreApi on the locator
registerPurchaseDependencies(getIt); // the port, the service, the store
Afterwards the app resolves PurchaseService and PurchaseSubscriptionStore
from the locator like any other Zuraffa service. Native failures are
classified into a typed taxonomy (IosPurchaseException) with a
recoverable flag.
The adapter pins in_app_purchase_storekit: ^0.4.15 — past 0.4.13, so the
app's iOS build carries none of the StoreKit 1 deprecation warnings
(SKPaymentTransaction, SKPayment, SKProduct).
Develop
flutter pub get
flutter test
Libraries
- zuraffa_purchase_ios
- zuraffa_purchase_ios — the iOS adapter of the
zuraffa_purchasefederated family: StoreKit, reached throughpackage:in_app_purchase.