From 3c4d959cc68ab48c8f7c1221626e7a7264e9e2c0 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Thu, 19 Oct 2023 00:24:49 +0200 Subject: [PATCH] removed `MockIAPProductsProvider` --- integration_test/utils/widget_tester_actions.dart | 9 +++++++-- lib/main_dev.dart | 6 +++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/integration_test/utils/widget_tester_actions.dart b/integration_test/utils/widget_tester_actions.dart index 8fc7883..8411634 100644 --- a/integration_test/utils/widget_tester_actions.dart +++ b/integration_test/utils/widget_tester_actions.dart @@ -19,8 +19,13 @@ extension WidgetTesterCommonActions on WidgetTester { Film selectedFilm = const Film.other(), }) async { await pumpWidget( - MockIAPProductsProvider( - productStatus: productStatus, + IAPProducts( + products: [ + IAPProduct( + storeId: IAPProductType.paidFeatures.storeId, + status: productStatus, + ), + ], child: ApplicationWrapper( const Environment.dev(), child: MockIAPProviders( diff --git a/lib/main_dev.dart b/lib/main_dev.dart index 24191be..b43352f 100644 --- a/lib/main_dev.dart +++ b/lib/main_dev.dart @@ -7,9 +7,9 @@ import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart'; Future main() async { WidgetsFlutterBinding.ensureInitialized(); runApp( - const MockIAPProductsProvider( - productStatus: IAPProductStatus.purchasable, - child: ApplicationWrapper( + IAPProducts( + products: [IAPProduct(storeId: IAPProductType.paidFeatures.storeId)], + child: const ApplicationWrapper( Environment.dev(), child: Application(), ),