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

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

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

RCGitBot
Copy link
Contributor

@RCGitBot RCGitBot commented Mar 11, 2024

This is an automatic bump.

Updates purchases-hybrid-common to 10.1.0

…chases.syncAttributesAndOfferingsIfNeeded()` (#1014)

## Motivation

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

## Description

⚠️ This removes `offeringIdentifier`/`presentedOfferingIdentifier` from
the constructor for `Package`, `StoreProduct`, and `SubscriptionOption`
which is _technically_ a breaking change

However, the property for
`offeringIdentifier`/`presentedOfferingIdentifier` still exists (as an
extension) which is how most developer should be using it.

### 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.

```dart
final offering = await Purchases.getCurrentOfferingForPlacement("your-placement-identifier")
if (offering != null) {
    // 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.

```dart
// Using this result is optional - offerings will be cached for next Purchases.getOfferings() call
final offerings = await Purchases.syncAttributesAndOfferingsIfNeeded()
```
@joshdholtz joshdholtz merged commit f066031 into main Mar 13, 2024
8 checks passed
@joshdholtz joshdholtz deleted the bump-phc/10.1.0 branch March 13, 2024 13:43
This was referenced Mar 13, 2024
tonidero added a commit that referenced this pull request Mar 14, 2024
**This is an automatic release.**

### New Features
* Add `onDismiss` handler and `displayCloseButton` to `PaywallView` and
`PaywallFooterView` (#1009) via Toni Rico (@tonidero)
* Add `PaywallFooterView` listeners (#1012) via Toni Rico (@tonidero)
* Add `PaywallView` listeners (#995) via Cesar de la Vega (@vegaro)
### Bugfixes
* Fix footer sizing issues in iOS (#1018) via Toni Rico (@tonidero)
### Dependency Updates
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.2.0 (#1020) 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 (#1013) 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
* Add 5.8.2 to changelog (#1011) via Cesar de la Vega (@vegaro)
* Add dependency_overrides to purchases_flutter_ui (#1007) via Cesar de
la Vega (@vegaro)

---------

Co-authored-by: Toni Rico <[email protected]>
Jethro87 pushed a commit to Jethro87/purchases-flutter that referenced this pull request Jan 4, 2025
…t#1013)

**This is an automatic bump.**

Updates purchases-hybrid-common to 10.1.0

- Includes RevenueCat#1014

---------

Co-authored-by: Josh Holtz <[email protected]>
Jethro87 pushed a commit to Jethro87/purchases-flutter that referenced this pull request Jan 4, 2025
**This is an automatic release.**

### New Features
* Add `onDismiss` handler and `displayCloseButton` to `PaywallView` and
`PaywallFooterView` (RevenueCat#1009) via Toni Rico (@tonidero)
* Add `PaywallFooterView` listeners (RevenueCat#1012) via Toni Rico (@tonidero)
* Add `PaywallView` listeners (RevenueCat#995) via Cesar de la Vega (@vegaro)
### Bugfixes
* Fix footer sizing issues in iOS (RevenueCat#1018) via Toni Rico (@tonidero)
### Dependency Updates
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.2.0 (RevenueCat#1020) 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 (RevenueCat#1013) 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
* Add 5.8.2 to changelog (RevenueCat#1011) via Cesar de la Vega (@vegaro)
* Add dependency_overrides to purchases_flutter_ui (RevenueCat#1007) via Cesar de
la Vega (@vegaro)

---------

Co-authored-by: Toni Rico <[email protected]>
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