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

Check for updates every time the app resumes from the background #302

Closed larryaasen closed 1 year ago

larryaasen commented 1 year ago

Added support for checking for updates every time the app resumes from the background. (#272)

Changed the way Upgrader is initialized to support a stream of evaluation requests. The stream is updated each time the app resumes from the background.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 94.84% and project coverage change: +1.37 :tada:

Comparison is base (6ae4721) 91.00% compared to head (a09eb3c) 92.38%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #302 +/- ## ========================================== + Coverage 91.00% 92.38% +1.37% ========================================== Files 11 11 Lines 1023 1037 +14 ========================================== + Hits 931 958 +27 + Misses 92 79 -13 ``` | [Impacted Files](https://app.codecov.io/gh/larryaasen/upgrader/pull/302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen) | Coverage Δ | | |---|---|---| | [lib/src/upgrader.dart](https://app.codecov.io/gh/larryaasen/upgrader/pull/302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen#diff-bGliL3NyYy91cGdyYWRlci5kYXJ0) | `89.66% <80.00%> (-0.34%)` | :arrow_down: | | [lib/src/upgrade\_alert.dart](https://app.codecov.io/gh/larryaasen/upgrader/pull/302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen#diff-bGliL3NyYy91cGdyYWRlX2FsZXJ0LmRhcnQ=) | `93.75% <90.90%> (+0.41%)` | :arrow_up: | | [lib/src/upgrade\_base.dart](https://app.codecov.io/gh/larryaasen/upgrader/pull/302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen#diff-bGliL3NyYy91cGdyYWRlX2Jhc2UuZGFydA==) | `83.33% <100.00%> (+3.33%)` | :arrow_up: | | [lib/src/upgrade\_card.dart](https://app.codecov.io/gh/larryaasen/upgrader/pull/302?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen#diff-bGliL3NyYy91cGdyYWRlX2NhcmQuZGFydA==) | `100.00% <100.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/larryaasen/upgrader/pull/302/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Larry+Aasen)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.