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

23. Subscriptions: - Feature Flags #2605

Merged
merged 108 commits into from
Mar 19, 2024
Merged

Conversation

afterxleep
Copy link
Collaborator

@afterxleep afterxleep commented Mar 16, 2024

Task/Issue URL: https://app.asana.com/0/0/1206807550798011/f
Plan: https://app.asana.com/0/0/1206820386373649/f
BSK PR: https://github.com/duckduckgo/BrowserServicesKit/pull/717/files

Description:

  • Adds feature flags for Subscriptions availability (Core logic in BSK)
  • Adds compiler flags for Subscription environment

How to test (Feature Availability):

  • Build DDG-Alpha target
  • Confirm Subscription is available in settings
  • Go to Debug Settings > UnCheck Internal User State
  • Confirm Subscription is NOT available in settings

How to test (Disallowing Purchases):

  • Invert conditional in SubscriptionPagesUseSubscriptionFeature > getSubscriptionOptions() so it returns an SubscriptionOptions.empty
  • Go to Settings > Privacy Pro > Get Privacy Pro
  • Confirm Purchase buttons are not visible. (See image below)

Optional:
Test with a custom privacy config URL > Flags available in: duckduckgo/privacy-configuration#1887

Screenshot 2024-03-16 at 1 18 35 AM

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
…l/subscriptions/20.caching

# Conflicts:
#	DuckDuckGo/SettingsSubscriptionView.swift
#	DuckDuckGo/SettingsViewModel.swift
…ons/21.manage.other.purchases

# Conflicts:
#	DuckDuckGo/Subscription/ViewModel/SubscriptionSettingsViewModel.swift
@afterxleep afterxleep removed the bot: not in app board Added by automation for pull requests with tasks not added to iOS App Board Asana project label Mar 16, 2024
@afterxleep afterxleep changed the title Subscriptions: 23 - Feature Flags 23. Subscriptions: - Feature Flags Mar 16, 2024
@afterxleep afterxleep marked this pull request as ready for review March 16, 2024 01:50
# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
@miasma13 miasma13 merged commit 933d14e into main Mar 19, 2024
13 checks passed
@miasma13 miasma13 deleted the daniel/subscriptions/23.FeatureFlags branch March 19, 2024 21:35
samsymons added a commit that referenced this pull request Mar 20, 2024
# By Anh Do (2) and others
# Via GitHub
* main:
  23. Subscriptions:  - Feature Flags (#2605)
  fix settings maestro text (#2613)
  Web pixels (handlers + pixels) (#2611)
  Handle subscription-related iOS use cases (#2597)
  Remove hardcoded NetP staging endpoint (#2612)
  Add Privacy Manifests to app extensions (#2608)
  Add a VPN metadata section to the debug UI (#2502)
  Use History in Suggestions on iOS (#2552)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
samsymons added a commit that referenced this pull request Mar 21, 2024
# By Sam Symons (3) and others
# Via GitHub
* main:
  Entitlements cache fixes (#2620)
  BSK update for RMF app build version improvement (#2564)
  Surface the last-used password first in autofill prompt when filling passwords (#2600)
  VPN UI improvements part 1 - basic copy and UI changes (#2580)
  Add setting to display full URL address (#2587)
  Don't refresh swipe tabs model on background changes (#2610)
  23. Subscriptions:  - Feature Flags (#2605)
  fix settings maestro text (#2613)
  Web pixels (handlers + pixels) (#2611)
  Handle subscription-related iOS use cases (#2597)
  Remove hardcoded NetP staging endpoint (#2612)
  Add Privacy Manifests to app extensions (#2608)
  Add a VPN metadata section to the debug UI (#2502)
  Use History in Suggestions on iOS (#2552)

# 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.

3 participants