larryaasen / upgrader

A Flutter package for prompting users to upgrade when there is a newer version of the app in the store.
MIT License
558 stars 271 forks source link

Stream fix #318

Closed larryaasen closed 1 year ago

larryaasen commented 1 year ago

Fixed issue #312 when multiple instances of UpgradeAlert or UpgradeCard were used and the stream had already been listened to.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 56.17% and project coverage change: -2.24% :warning:

Comparison is base (db563d2) 92.38% compared to head (18ba1ca) 90.15%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #318 +/- ## ========================================== - Coverage 92.38% 90.15% -2.24% ========================================== Files 11 11 Lines 1037 1066 +29 ========================================== + Hits 958 961 +3 - Misses 79 105 +26 ``` | [Files Changed](https://app.codecov.io/gh/larryaasen/upgrader/pull/318?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen) | Coverage Δ | | |---|---|---| | [lib/src/itunes\_search\_api.dart](https://app.codecov.io/gh/larryaasen/upgrader/pull/318?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen#diff-bGliL3NyYy9pdHVuZXNfc2VhcmNoX2FwaS5kYXJ0) | `69.51% <41.17%> (-10.77%)` | :arrow_down: | | [lib/src/play\_store\_search\_api.dart](https://app.codecov.io/gh/larryaasen/upgrader/pull/318?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen#diff-bGliL3NyYy9wbGF5X3N0b3JlX3NlYXJjaF9hcGkuZGFydA==) | `85.04% <50.00%> (-10.92%)` | :arrow_down: | | [lib/src/upgrade\_alert.dart](https://app.codecov.io/gh/larryaasen/upgrader/pull/318?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen#diff-bGliL3NyYy91cGdyYWRlX2FsZXJ0LmRhcnQ=) | `89.47% <71.42%> (-4.28%)` | :arrow_down: | | [lib/src/upgrade\_card.dart](https://app.codecov.io/gh/larryaasen/upgrader/pull/318?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen#diff-bGliL3NyYy91cGdyYWRlX2NhcmQuZGFydA==) | `98.57% <80.00%> (-1.43%)` | :arrow_down: | | [lib/src/upgrader.dart](https://app.codecov.io/gh/larryaasen/upgrader/pull/318?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen#diff-bGliL3NyYy91cGdyYWRlci5kYXJ0) | `89.48% <86.66%> (-0.18%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.