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(), ),