Skip to content

Add subscription helpers, group lookups, and DocC; refresh entitlement handling#4

Merged
Ramiz69 merged 1 commit intomainfrom
feature/entitlements
Aug 30, 2025
Merged

Add subscription helpers, group lookups, and DocC; refresh entitlement handling#4
Ramiz69 merged 1 commit intomainfrom
feature/entitlements

Conversation

@Ramiz69
Copy link
Owner

@Ramiz69 Ramiz69 commented Aug 30, 2025

  • Add StoreProduct.subscriptionGroupID
  • Add PurchasesProtocol helpers:
    • hasEntitlement(for:)
    • entitlementProductIDs()
    • activeSubscriptions()
    • activeSubscription(inGroup:)
  • Implement helpers in PurchasesManager (Swift Concurrency, actor-safe)
  • Refactor entitlement refresh:
    • new refreshEntitlements() used after fetch/restore
    • requestProducts(includingCache: true) now refreshes entitlements in background when returning cache
  • DocC: comments + updated Getting Started, RKPurchaseKit index, new sections for subscriptions
  • No breaking changes; purely additive API

…t handling

- Add StoreProduct.subscriptionGroupID
- Add PurchasesProtocol helpers:
  - hasEntitlement(for:)
  - entitlementProductIDs()
  - activeSubscriptions()
  - activeSubscription(inGroup:)
- Implement helpers in PurchasesManager (Swift Concurrency, actor-safe)
- Refactor entitlement refresh:
  - new refreshEntitlements() used after fetch/restore
  - requestProducts(includingCache: true) now refreshes entitlements in background when returning cache
- DocC: comments + updated Getting Started, RKPurchaseKit index, new sections for subscriptions
- No breaking changes; purely additive API
@Ramiz69 Ramiz69 self-assigned this Aug 30, 2025
@Ramiz69 Ramiz69 merged commit ecfc608 into main Aug 30, 2025
1 check passed
@Ramiz69 Ramiz69 deleted the feature/entitlements branch August 30, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments