Implements robust, testable in-app purchase systems using StoreKit 2 with a testing-first workflow and centralized transaction handling.
Streamlines the implementation of digital products and subscriptions in xOS applications by enforcing a StoreKit 2 testing-first architecture. It guides developers through creating .storekit configuration files, establishing a centralized StoreManager as a single source of truth, and implementing secure transaction verification. The skill covers consumables, non-consumables, and auto-renewable subscriptions, ensuring compliance with App Store Review requirements like 'Restore Purchases' while utilizing modern Swift concurrency patterns and the latest iOS 18+ features.
主要功能
01Robust transaction verification using VerificationResult and mandatory finishing calls
02Comprehensive subscription management including status tracking and renewal handling
03Centralized StoreManager architecture using Swift concurrency and @MainActor
0461 GitHub stars
05Testing-first workflow using .storekit configuration for immediate product ID validation
06Implementation guidance for modern iOS 18+ features like UI-contextual purchase sheets
使用场景
01Adding consumable or non-consumable digital products to an iOS, iPadOS, or watchOS app
02Implementing auto-renewable subscription tiers with proper entitlement and status tracking
03Hardening existing IAP logic to correctly handle edge cases like 'Ask to Buy' or signature failures