Repository navigation
Store support - #143
Merged
Merged
Store support#143
Conversation
The Store build reads the app's Store-managed consumable add-ons whose product ID starts with "Donation" (at most five, cheapest first, title and price from the Store in the user's language and currency). While there are any, a heart button in the mixer footer and a tray menu item open a support dialog: the heart and title, one sentence, the tiers with the middle one as the accent button. A tier opens the Store's purchase window; a purchase is reported as used up right away, and leftovers at startup, so a tier can be bought again. After a purchase the dialog turns into a thank-you. The add-ons are read in parallel with the startup and retried while the Store can't be reached. The popup stays open while the Store's window has the focus. Nothing shows in other builds or in markets where the Store offers no add-ons. Strings in all 12 languages. Debug runs show fake tiers with VOLUMEY_FAKE_SUPPORT=1 (or "long"). Unit tests for the view model, the filter and the price reading; UI tests for the heart, the tray item, the dialog and the thank-you.
The Store build offers its own donation add-ons, so the About page lists none of the links from links.json there, and links.json isn't downloaded. The GitHub build keeps them.
The title order depended on the language.
…s report A failed report after the payment showed "The purchase didn't go through". An "already purchased" answer is an earlier payment that was never reported: it's reported now and counts as the purchase. A report that fails is retried at the next launch.
Not now is disabled and closing is ignored until the purchase ends.
…ure/store-support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.