Allow activating subscription for internal users via debug menu #3117
+122
−37
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.
Task/Issue URL: https://app.asana.com/0/72649045549333/1207811184536020/f
Description:
Add to debug menu option to start the subscription activation flow. This option is to allow access to the flow even when the purchase is disallowed in given region (App Store build for non-US user).
Additional changes are renaming and cleanup of obsolete items in the "Subscription" debug menu.
Steps to test this PR:
(Test using Alpha target)
Test the above but use quick open shortcut for the debug menu (long press on the settings cog)
Test the above for the setup where purchase platform is set to App Store and no subscription products are available so there are no purchase entry points shown in the app. This can be achieved by altering the app's identifier for a given build (so it does not matches one we have subscriptions defined in the App Store). Other option is to hardcode the "Privacy Pro" to be hidden by fixing
iOS/DuckDuckGo/SettingsViewModel.swift
Line 704 in b908108
false
Definition of Done (Internal Only):
Internal references:
Software Engineering Expectations
Technical Design Template