Skip to content

Commit 5986275

Browse files
[in_app_purchase] Annotate deprecation in test
Annotate an intentional use of a deprecated method in an integration test, so that it doesn't show up in deprecation audits. See https://github.com/flutter/flutter/blob/main/docs/infra/Packages-Gardener-Rotation.md#deprecations
1 parent 0ec4053 commit 5986275

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/in_app_purchase/in_app_purchase_android/example/integration_test/in_app_purchase_test.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ void main() {
106106
testWidgets('BillingClient.queryPurchaseHistory',
107107
(WidgetTester tester) async {
108108
try {
109+
// Intentional use of a deprecated method to make sure it still works.
110+
// ignore: deprecated_member_use
109111
await billingClient.queryPurchaseHistory(ProductType.inapp);
110112
} on MissingPluginException {
111113
fail('Method channel is not setup correctly');

0 commit comments

Comments
 (0)