Skip to content

[AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.1.0#938

Merged
joshdholtz merged 3 commits into
mainfrom
bump-phc/10.1.0
Mar 13, 2024
Merged

[AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.1.0#938
joshdholtz merged 3 commits into
mainfrom
bump-phc/10.1.0

Conversation

@RCGitBot

@RCGitBot RCGitBot commented Mar 11, 2024

Copy link
Copy Markdown
Contributor

This is an automatic bump.

Updates purchases-hybrid-common to 10.1.0

@RCGitBot RCGitBot requested a review from a team March 11, 2024 18:36
…chases.syncAttributesAndOfferingsIfNeeded()` (#925)

## Motivation

Bump to PHC `10.1.0` and add support for new Targeting methods

## Description

### Get Current Offering for Placement

Get an offering specific to the place of your paywall (eg: onboarding,
settings, feature gate, etc). This is determined by Targeting.

```ts
let offering = await Purchases.getCurrentOfferingForPlacement("your-placement-identifier")
if (offering) {
    // Navigate to paywall
} else {
    // Do nothing or continue to another screen
}
```

### Sync Attributes and Offerings

A blocking call to sync attributes and fetch new offerings to to be used
with Targeting that uses Custom Attributes.

```ts
// Using this result is optional - offerings will be cached for next Purchases.getOfferings() call
let offerings = await Purchases.syncAttributesAndOfferingsIfNeeded()
```
@joshdholtz joshdholtz merged commit a3d1f06 into main Mar 13, 2024
@joshdholtz joshdholtz deleted the bump-phc/10.1.0 branch March 13, 2024 13:42
This was referenced Mar 13, 2024
vegaro pushed a commit that referenced this pull request Mar 14, 2024
**This is an automatic release.**

### New Features
* Add `displayCloseButton` option to `PaywallView` (#913) via Cesar de
la Vega (@vegaro)
### Dependency Updates
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.2.0 (#940) via
RevenueCat Git Bot (@RCGitBot)
* [Android
7.7.2](https://github.com/RevenueCat/purchases-android/releases/tag/7.7.2)
* [iOS
4.39.0](https://github.com/RevenueCat/purchases-ios/releases/tag/4.39.0)
* [iOS
4.38.1](https://github.com/RevenueCat/purchases-ios/releases/tag/4.38.1)
* [iOS
4.38.0](https://github.com/RevenueCat/purchases-ios/releases/tag/4.38.0)
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.1.0 (#938) via
RevenueCat Git Bot (@RCGitBot)
* [Android
7.7.2](https://github.com/RevenueCat/purchases-android/releases/tag/7.7.2)
* [iOS
4.39.0](https://github.com/RevenueCat/purchases-ios/releases/tag/4.39.0)
* [iOS
4.38.1](https://github.com/RevenueCat/purchases-ios/releases/tag/4.38.1)
* [iOS
4.38.0](https://github.com/RevenueCat/purchases-ios/releases/tag/4.38.0)
### Other Changes
* Make hotfixes not deploy with the latest tag nor update latest docs
(#937) via Toni Rico (@tonidero)
* Update RELEASING.md (#936) via Cesar de la Vega (@vegaro)
* Add 6.7.2 to changelog (#935) via Cesar de la Vega (@vegaro)

---------

Co-authored-by: RevenueCat CI <dev+ci@revenuecat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants