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

Subscriptions: Implement Caching for Subscription Info #710

Merged
merged 13 commits into from
Mar 11, 2024

Conversation

afterxleep
Copy link
Collaborator

@afterxleep afterxleep commented Mar 9, 2024

Task/Issue URL: https://app.asana.com/0/0/1206800657723184/f
iOS PR: duckduckgo/iOS#2569
macOS PR: duckduckgo/macos-browser#2368
What kind of version bump will this require?: Minor

Description:

  • Implements basic caching for Subscription info
  • Maintains current static approach for SubscriptionService
  • Adds proper UserDefault keys to avoid conflicts
  • Makes AppGroup optional in UserDefaultsCache
  • Adds method to reset cache in SubscriptionService and call from Signout

Steps to test this PR:

  1. Subscription fetch should continue to work as expected (No changes required on clients)

Internal references:

Software Engineering Expectations
Technical Design Template

@afterxleep afterxleep merged commit 4042a8e into main Mar 11, 2024
7 checks passed
@afterxleep afterxleep deleted the daniel/subscription.cache branch March 11, 2024 22:05
afterxleep added a commit to duckduckgo/iOS that referenced this pull request Mar 11, 2024
Task/Issue URL: https://app.asana.com/0/0/1206800657723184/f
BSK PR: duckduckgo/BrowserServicesKit#710

Description:

Bumps BSK to use subscription caching:
Push Purchase Cancel update to Webview on user cancellation
Minor presentation updates for sheets and subscription-related Settings cleanup

Co-authored-by: Michal Smaga <[email protected]>
afterxleep added a commit to duckduckgo/macos-browser that referenced this pull request Mar 11, 2024
Task/Issue URL: https://app.asana.com/0/0/1206800657723184/f
BSK PR: duckduckgo/BrowserServicesKit#710

Description:

Bumps BSK to use subscription caching and updates previously used cache in Settings
Push canceled event to the Weview on user cancellation
---------

Co-authored-by: Michal Smaga <[email protected]>
samsymons added a commit that referenced this pull request Mar 13, 2024
* main:
  Subscriptions: Implement Caching for Subscription Info (#710)
  add history to ios (#693)
  Reports on toggle protections off (#696)
  Move vpnFirstEnabled and networkPathChange out of VPNSettings (#707)
  Implement simple Subscription Caching mechanism using UserDefaults (#703)
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