Skip to content

Add launchIfNeeded with offeringIdentifier#1533

Merged
vegaro merged 3 commits into
mainfrom
add-offeringid-launch-paywall
Dec 22, 2023
Merged

Add launchIfNeeded with offeringIdentifier#1533
vegaro merged 3 commits into
mainfrom
add-offeringid-launch-paywall

Conversation

@vegaro

@vegaro vegaro commented Dec 22, 2023

Copy link
Copy Markdown
Member

We need a version of launchIfNeeded that accepts a offeringIdentifier for purchases-hybrid-common to be able to call the function from PaywallFragment

@vegaro vegaro requested a review from a team December 22, 2023 10:43

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just one question but looks good!

* @param shouldDisplayDismissButton Whether to display the dismiss button in the paywall.
*/
@JvmOverloads
fun launchIfNeeded(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we also need a version of the launch method that accepts an offeringIdentifier?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes. I missed that

@JvmOverloads
fun launchIfNeeded(
requiredEntitlementIdentifier: String,
offeringIdentifier: String? = null,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ohh we might want to make this parameter not optional. Otherwise it collides with the other method.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

oh right, it makes sense

@vegaro vegaro requested a review from tonidero December 22, 2023 10:56
@vegaro vegaro requested a review from tonidero December 22, 2023 11:32
@vegaro vegaro enabled auto-merge (squash) December 22, 2023 11:39
@vegaro vegaro merged commit baca350 into main Dec 22, 2023
@vegaro vegaro deleted the add-offeringid-launch-paywall branch December 22, 2023 11:48
vegaro pushed a commit that referenced this pull request Dec 22, 2023
**This is an automatic release.**

### RevenueCatUI
* Add `launchIfNeeded` with `offeringIdentifier` (#1533) via Cesar de la
Vega (@vegaro)
* Hide action bar from paywall activity (#1532) via Toni Rico
(@tonidero)
* Paywalls: improve Chinese localization (#1529) via Andy Boedo
(@aboedo)
### Other Changes
* Wait for tests to pass when deploying (#1521) via Cesar de la Vega
(@vegaro)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
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