mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-25 17:00:39 +00:00
removed MockIAPProductsProvider
This commit is contained in:
parent
a19d08dcec
commit
3c4d959cc6
2 changed files with 10 additions and 5 deletions
|
@ -19,8 +19,13 @@ extension WidgetTesterCommonActions on WidgetTester {
|
||||||
Film selectedFilm = const Film.other(),
|
Film selectedFilm = const Film.other(),
|
||||||
}) async {
|
}) async {
|
||||||
await pumpWidget(
|
await pumpWidget(
|
||||||
MockIAPProductsProvider(
|
IAPProducts(
|
||||||
productStatus: productStatus,
|
products: [
|
||||||
|
IAPProduct(
|
||||||
|
storeId: IAPProductType.paidFeatures.storeId,
|
||||||
|
status: productStatus,
|
||||||
|
),
|
||||||
|
],
|
||||||
child: ApplicationWrapper(
|
child: ApplicationWrapper(
|
||||||
const Environment.dev(),
|
const Environment.dev(),
|
||||||
child: MockIAPProviders(
|
child: MockIAPProviders(
|
||||||
|
|
|
@ -7,9 +7,9 @@ import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart';
|
||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
runApp(
|
runApp(
|
||||||
const MockIAPProductsProvider(
|
IAPProducts(
|
||||||
productStatus: IAPProductStatus.purchasable,
|
products: [IAPProduct(storeId: IAPProductType.paidFeatures.storeId)],
|
||||||
child: ApplicationWrapper(
|
child: const ApplicationWrapper(
|
||||||
Environment.dev(),
|
Environment.dev(),
|
||||||
child: Application(),
|
child: Application(),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue