Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If no App Store subscriptions option are available return empty options object #3188

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

miasma13
Copy link
Contributor

@miasma13 miasma13 commented Aug 5, 2024

Task/Issue URL: https://app.asana.com/0/1203936086921904/1207934463147478/f

Description:
In case no App Store subscription objects are available we should return a proper SubscriptionOptions.empty object.

Steps to test this PR:
Mock no subscription products available in the App Store (change app identifier or fix DefaultStorePurchaseManager subscriptionOptions() to return nil)

  1. Open Settings -> Debug -> Subscription -> I Have a Subscription
  2. Sing in to active staging subscription via OTP
  3. Click "Done" on the success page
  4. Ensure that subscription "Welcome" page is loaded

Definition of Done (Internal Only):


Internal references:

Software Engineering Expectations
Technical Design Template

Copy link
Member

@federicocappelli federicocappelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@miasma13 miasma13 merged commit 11839fd into main Aug 5, 2024
16 checks passed
@miasma13 miasma13 deleted the michal/fix-empty-purchase-options branch August 5, 2024 12:30
samsymons added a commit that referenced this pull request Aug 7, 2024
# By Mariusz Śpiewak (7) and others
# Via Diego Rey Mendez (1) and GitHub (1)
* main:
  Bump BSK to 181.1.0 (sets Privacy Dashboard to 5.0.0) (#3166)
  Animate transition between New Tab Page and tab switcher (#3196)
  Fix New Tab Page UI issues on iOS 15 (#3198)
  Push domain exclusions to internal release (#3195)
  Show shortcuts for enabled features only (#3193)
  Translate strings introduced in New Tab Page improvements (#3174)
  Update release workflow to use S3 bucket name from secrets (#3120)
  Handle contingency settings state on remote config (#3190)
  Add UI for displaying Duck Player contingency message #3065 (#3181)
  Open keyboard on New Tab Page based on Settings (#3187)
  Integrated macOS VPN Domain exclusion (internal release) changes into iOS. (#3164)
  Release 7.132.0-0 (#3194)
  Increase testPixelDebouncePreventsFiringWithinInterval test timeout (#3192)
  Update toolbar items for New Tab Page (#3185)
  new pixel and parameter for monitoring clearing of data stores (#3186)
  ensure new data clearing api is being used (#3191)
  If no App Store subscriptions option are available return empty options object (#3188)
  Show Intro message for existing users on New Tab Page (#3173)
  Experiment Contextual onboarding (#3160)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants