-
Notifications
You must be signed in to change notification settings - Fork 177
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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
approved these changes
Mar 13, 2024
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is an automatic bump.
Updates purchases-hybrid-common to 10.1.0
Purchases.getCurrentOfferingForPlacement(placementID)
andPurchases.syncAttributesAndOfferingsIfNeeded()
#1014