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

Add Internal support for draft paywall previews #4761

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ajpallares
Copy link
Member

Checklist

  • If applicable, unit tests

Motivation

We need a way to show paywalls in the draft state for the Paywall Previews functionality in the RC app

Description

Adds some new @_spi-protected public APIs regarding draft paywalls:
* draftPaywallComponents property in Offering, to know if there's a draft paywall available.
* A new init in PaywallView that adds the useDraftPaywall parameter to show the draft paywall instead of the published one.

@ajpallares ajpallares requested review from joshdholtz, aboedo and a team February 5, 2025 14:10
Copy link
Member

@JayShortway JayShortway left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

)
}

// swiftlint:disable:next missing_docs
Copy link
Member Author

Choose a reason for hiding this comment

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

Idk if we should be documenting these public-but-not-public APIs 🤔 WDYT @RevenueCat/coresdk?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm IMO, I think it's fine to not document them. It's not meant for public usage yeah.

@ajpallares ajpallares marked this pull request as ready for review February 7, 2025 13:22
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.

This LGTM!

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.

3 participants