Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Thread safety fixes and subscription management#3

Merged
hyochan merged 1 commit intomainfrom
feature/thread-safety-and-subscription-management
Sep 4, 2025
Merged

Thread safety fixes and subscription management#3
hyochan merged 1 commit intomainfrom
feature/thread-safety-and-subscription-management

Conversation

@hyochan
Copy link
Member

@hyochan hyochan commented Sep 4, 2025

Changes

  • Critical thread safety fixes: Added @MainActor to OpenIapModule to prevent crashes during subscription purchases
  • Receipt validation flow: Added comprehensive server-side validation examples and transaction finishing logic
  • Subscription management: Users can now cancel/reactivate subscriptions with proper UI states
  • PaymentDiscount → DiscountOffer: Renamed for better API consistency
  • Moved sandbox tools: Debug tools now in My Purchases for better UX
  • Types documentation: Added comprehensive types.md for cross-platform compatibility

Testing

  • All tests passing
  • Thread safety crash resolved
  • Subscription cancellation/reactivation flow tested

- Add @mainactor to OpenIapModule for main thread execution
- Fix transaction listener with proper MainActor isolation
- Remove redundant helper methods for direct property access
- Emit purchase errors for transaction verification failures
- Ensure thread-safe dictionary access for pendingTransactions
@hyochan hyochan added the 🛠 bugfix All kinds of bug fixes label Sep 4, 2025
@hyochan hyochan merged commit 8a2d665 into main Sep 4, 2025
1 check passed
@hyochan hyochan deleted the feature/thread-safety-and-subscription-management branch September 4, 2025 23:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🛠 bugfix All kinds of bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant