RevenueCat / RevenueCat/purchases-flutter

Add the type to Product

Open
#320 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement status: needs-additional-info triaged
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.