Skip to content

Paywalls: simplify PurchaseButton#3362

Merged
NachoSoto merged 2 commits into
mainfrom
paywalls-simplify-purchase-button
Oct 31, 2023
Merged

Paywalls: simplify PurchaseButton#3362
NachoSoto merged 2 commits into
mainfrom
paywalls-simplify-purchase-button

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

This moves some of the modifications outside of ConsistentPackageContentView so they're not duplicated in the hierarchy for each package.

@NachoSoto NachoSoto requested a review from a team October 30, 2023 17:45
Base automatically changed from paywalls-flash-purchase-button-2 to main October 31, 2023 14:40
This moves some of the modifications outside of `ConsistentPackageContentView` so they're not duplicated in the hierarchy for each package.
@NachoSoto NachoSoto enabled auto-merge (squash) October 31, 2023 16:36
@NachoSoto NachoSoto force-pushed the paywalls-simplify-purchase-button branch from 4bf57e4 to 430717f Compare October 31, 2023 16:36
// MARK: - Private

@available(iOS 15.0, macOS 12.0, tvOS 15.0, *)
private extension IntroEligibilityStateView.Display {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

f16c374 was a bad rebase and duplicated this.

@NachoSoto NachoSoto merged commit 485bd71 into main Oct 31, 2023
@NachoSoto NachoSoto deleted the paywalls-simplify-purchase-button branch October 31, 2023 17:41
NachoSoto added a commit that referenced this pull request Nov 2, 2023
**This is an automatic release.**

### New Features
* `Offering`: new `getMetadataValue` with `Decodable` type (#3373) via
NachoSoto (@NachoSoto)
* Add `StoreProduct.pricePerWeek` (#3354) via NachoSoto (@NachoSoto)
### RevenueCatUI
* `Paywalls`: `.presentPaywallIfNeeded` allows overriding `Offering`
(#3370) via NachoSoto (@NachoSoto)
* `Paywalls`: new optional `displayCloseButton` parameter (#3359) via
NachoSoto (@NachoSoto)
* `Paywalls`: improve period abbreviations in Japanese (#3367) via
NachoSoto (@NachoSoto)
* `Paywalls`: new `{{ sub_price_per_week }}` variable (#3355) via
NachoSoto (@NachoSoto)
* `Paywalls`: log warning when attempting to purchase already-subscribed
product (#3366) via NachoSoto (@NachoSoto)
* `Paywalls`: improve Japanese localization (#3364) via NachoSoto
(@NachoSoto)
* `Paywalls`: fix template 2 top padding inside navigation view (#3363)
via NachoSoto (@NachoSoto)
* `Paywalls`: avoid animating `PurchaseButton` labels when text does not
change (#3361) via NachoSoto (@NachoSoto)
* `Paywalls`: improve `FooterView` accessibility (#3349) via NachoSoto
(@NachoSoto)
### Dependency Updates
* Bump cocoapods from 1.14.0 to 1.14.2 (#3356) via dependabot[bot]
(@dependabot[bot])
* Bump cocoapods from 1.13.0 to 1.14.0 (#3351) via dependabot[bot]
(@dependabot[bot])
### Other Changes
* `Paywalls`: simplify `PurchaseButton` (#3362) via NachoSoto
(@NachoSoto)
* `Paywalls`: refactored `IntroEligibilityStateView` (#3360) via
NachoSoto (@NachoSoto)
* `Paywall Tester`: improve template 5 dark colors (#3358) via NachoSoto
(@NachoSoto)
* `Paywalls`: improve conversion from `Color`/`UIColor` to
`PaywallColor` (#3357) via NachoSoto (@NachoSoto)
* `Paywalls Tester`: improve `.paywallFooter` presentation (#3348) via
NachoSoto (@NachoSoto)
* `Paywalls`: move size configuration to `TemplateViewType` (#3352) via
NachoSoto (@NachoSoto)

---------

Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
@codecov

codecov Bot commented Sep 17, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.03%. Comparing base (f16c374) to head (d41be96).
Report is 479 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3362   +/-   ##
=======================================
  Coverage   86.03%   86.03%           
=======================================
  Files         237      237           
  Lines       17159    17159           
=======================================
  Hits        14763    14763           
  Misses       2396     2396           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

3 participants