Skip to content

Small version update to in_app_purchase has undocumented breaking changes #127766

@kinex

Description

@kinex

Is there an existing issue for this?

Steps to reproduce

  1. Create a Flutter project and add this to your pubspec.yaml:
    in_app_purchase: 3.1.5
  2. In your test app access members GooglePlayProductDetails.skuDetails, PurchaseWrapper.skus and SkuDetailsWrapper
  3. Make sure the project builds successfully.
  4. Update pubspec.yaml as follows:
    in_app_purchase: ^3.1.5
  5. Upgrade the packages in your project with:
    flutter packages upgrade

Expected results

The project should build successfully also after upgraded packages. If there were breaking changes the package should increase its major/minor version number and document the breaking changes in the change log.

Actual results

The build fails as there are breaking changes, but only the patch number of the package version was increased. Errors include:

The getter 'skuDetails' isn't defined for the type 'GooglePlayProductDetails'.
The getter 'skus' isn't defined for the type 'PurchaseWrapper'.
Undefined class 'SkuDetailsWrapper'.

There could be also other breaking changes, I listed here only those which I see in my project. The current change log of in_app_purchase does not mention any breaking changes after 3.1.5.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions