From e3306ab3ba793c125c024afec5dffd3242738a4e Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Sun, 17 Mar 2024 18:58:47 +0100 Subject: [PATCH] fixed integration tests --- .github/workflows/run_integration_tests.yml | 6 ++---- iap/lib/src/providers/iap_products_provider.dart | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run_integration_tests.yml b/.github/workflows/run_integration_tests.yml index b0d9d50..8279225 100644 --- a/.github/workflows/run_integration_tests.yml +++ b/.github/workflows/run_integration_tests.yml @@ -19,10 +19,8 @@ jobs: with: submodules: recursive - - name: Connect private iap package - uses: webfactory/ssh-agent@v0.8.0 - with: - ssh-private-key: ${{ secrets.M3_LIGHTMETER_IAP_KEY }} + - name: Override iap package with stub + run: bash ./.github/scripts/stub_iap.sh - name: Restore secrets run: | diff --git a/iap/lib/src/providers/iap_products_provider.dart b/iap/lib/src/providers/iap_products_provider.dart index 799e8a6..c8ad2ba 100644 --- a/iap/lib/src/providers/iap_products_provider.dart +++ b/iap/lib/src/providers/iap_products_provider.dart @@ -54,10 +54,10 @@ class IAPProducts extends InheritedModel { } @override - bool updateShouldNotify(IAPProducts oldWidget) => false; + bool updateShouldNotify(IAPProducts oldWidget) => true; @override - bool updateShouldNotifyDependent(IAPProducts oldWidget, Set dependencies) => false; + bool updateShouldNotifyDependent(IAPProducts oldWidget, Set dependencies) => true; IAPProduct? _findProduct(IAPProductType type) { try {