RevenueCat / purchases-ios

In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS.
https://www.revenuecat.com/
MIT License
2.32k stars 314 forks source link

[WIP] Paywalls manually handle purchases init based #3954

Closed jamesrb1 closed 3 months ago

jamesrb1 commented 3 months ago

This is a WIP making the paywall's ability to handle purchases and restore logic directly via trailing closures in its initializer rather than as a view modifier because it is easier for API consumers to use correctly. Note its base is https://github.com/RevenueCat/purchases-ios/pull/3917 where it is done via view modifiers.

RevenueCat-Danger-Bot commented 3 months ago
1 Error
:no_entry_sign: Label the PR using one of the change type labels
1 Message
:book: Size increase: 10.23 KB
Label Description
breaking Changes that are breaking
build Changes that affect the build system
ci Changes to our CI configuration files and scripts
docs Documentation only changes
feat A new feature
fix A bug fix
perf A code change that improves performance
RevenueCatUI A change to the RevenueCatUI library
refactor A code change that neither fixes a bug nor adds a feature
style Changes that don't affect the meaning of the code (white-space, formatting, missing semi-colons, etc
test Adding missing tests or correcting existing tests
next_release Preparing a new release
dependencies Updating a dependency
phc_dependencies Updating purchases-hybrid-common dependency

Generated by :no_entry_sign: Danger

jamesrb1 commented 3 months ago

Closed in favour of https://github.com/RevenueCat/purchases-ios/pull/3973