flutter / flutter/website

In App Purchase codelab: `androidPublisher.purchases.subscriptions.get` deprecated, replaced by `subscriptionsv2`

Open
#13,812 0 comments 0 reactions 0 assignees View on GitHub
a.tut.codelab-google p2-medium
Dominant language
Dart
Stars
3.1k
Forks
3.5k
Avg merge
2d 4h
Merged PRs (30d)
95

Description

The `in_app_purchases` codelab, published as [Adding in-app purchases to your Flutter app](https://codelabs.developers.google.com/codelabs/flutter-in-app-purchases) needs to be updated for Subscriptions v2.

From [CI](https://github.com/flutter/codelabs/actions/runs/19258320984/job/55057232524?pr=2361#step:7:10299):

```console
== Testing
Analyzing dart-backend...

info - lib/google_play_purchase_handler.dart:110:71 - 'get' is deprecated and shouldn't be used. Not supported. Member documentation may have more information. Try replacing the use of the deprecated member with the replacement. - deprecated_member_use

1 issue found.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.