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

UI preview mode: disable cache updates #4809

Merged
merged 11 commits into from
Feb 21, 2025
Merged

Conversation

ajpallares
Copy link
Member

Checklist

  • If applicable, unit tests

Motivation

In UI preview mode, there's no need to update the any caches, as the required data is always obtained on demand (e.g. Offerings).

Description

This PR disables the caches updates that currently happen when:

  • When the SDK is initialized while the app is in the foreground (Purchases.updateCachesIfInForeground())
  • The app enters in the foreground (Purchases.applicationWillEnterForeground())

@ajpallares ajpallares requested a review from a team February 21, 2025 13:26
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Looks good!

@ajpallares ajpallares merged commit b19f66b into main Feb 21, 2025
10 checks passed
@ajpallares ajpallares deleted the uiPreviewMode/no-cache-updates branch February 21, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants