RevenueCat / RevenueCat/purchases-flutter
Add the type to Product
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 720
- Forks
- 209
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 30
Description
It would be handy to have the type of the Product in the Product type. I know I could deduce it because I load them with Purchases.getProducts(ids, type: PurchaseType.subs) or Purchases.getProducts(ids, type: PurchaseType.inapp), but you could too. Having to wrap your product just to add this field is not that clean.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Product type and the getProducts API described in the issue. Trace how the requested PurchaseType is represented across the Flutter plugin, then add the product type where appropriate and verify that products returned for subscriptions and in-app purchases expose it consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev, payments
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100