From 5986275d82f7c5c3142be8adbb0934414a08f6b9 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Mon, 23 Jun 2025 10:41:34 -0400 Subject: [PATCH] [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 --- .../example/integration_test/in_app_purchase_test.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/in_app_purchase/in_app_purchase_android/example/integration_test/in_app_purchase_test.dart b/packages/in_app_purchase/in_app_purchase_android/example/integration_test/in_app_purchase_test.dart index 8ed5de2ce4b6..c528c7f87a9e 100644 --- a/packages/in_app_purchase/in_app_purchase_android/example/integration_test/in_app_purchase_test.dart +++ b/packages/in_app_purchase/in_app_purchase_android/example/integration_test/in_app_purchase_test.dart @@ -106,6 +106,8 @@ void main() { testWidgets('BillingClient.queryPurchaseHistory', (WidgetTester tester) async { try { + // Intentional use of a deprecated method to make sure it still works. + // ignore: deprecated_member_use await billingClient.queryPurchaseHistory(ProductType.inapp); } on MissingPluginException { fail('Method channel is not setup correctly');