Skip to content

[Paywalls V2] Ignores missing font alias if it's blank.#2271

Merged
JayShortway merged 2 commits into
mainfrom
ignore-blank-font-alias
Mar 19, 2025
Merged

[Paywalls V2] Ignores missing font alias if it's blank.#2271
JayShortway merged 2 commits into
mainfrom
ignore-blank-font-alias

Conversation

@JayShortway

Copy link
Copy Markdown
Member

Bug

A customer reported their paywall failed to render with the following validation error in the logs:

Aliased font ‘’ does not exist.

Cause

The real cause seems to be on the dashboard, as their paywall was able to be published without any Font family selected:
image

Fix

While this is ideally fixed on the dashboard, this PR introduces a behavior change in the SDK that will treat this situation as "no font selected". The SDK now ignores blank font aliases. This is a bit more defensive and less strict, but still valid behavior imo.

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

@emerge-tools

emerge-tools Bot commented Mar 19, 2025

Copy link
Copy Markdown

📸 Snapshot Test

392 unchanged

Name Added Removed Modified Renamed Unchanged Errored Approval
TestPurchasesUIAndroidCompatibility
com.revenuecat.testpurchasesuiandroidcompatibility
0 0 0 0 264 0 N/A
TestPurchasesUIAndroidCompatibility Paparazzi
com.revenuecat.testpurchasesuiandroidcompatibility.paparazzi
0 0 0 0 128 0 N/A

🛸 Powered by Emerge Tools

@codecov

codecov Bot commented Mar 19, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.27%. Comparing base (54bb85d) to head (5bfc6f6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2271   +/-   ##
=======================================
  Coverage   80.27%   80.27%           
=======================================
  Files         279      279           
  Lines        9494     9494           
  Branches     1337     1337           
=======================================
  Hits         7621     7621           
  Misses       1313     1313           
  Partials      560      560           

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JayShortway JayShortway enabled auto-merge (squash) March 19, 2025 14:36
@JayShortway JayShortway merged commit a35716b into main Mar 19, 2025
@JayShortway JayShortway deleted the ignore-blank-font-alias branch March 19, 2025 15:03
This was referenced Mar 19, 2025
vegaro pushed a commit that referenced this pull request Mar 19, 2025
**This is an automatic release.**

## RevenueCatUI SDK
### 🐞 Bugfixes
* Fix landscape mode in Paywalls v1 Template 3 (#2265) via Josh Holtz
(@joshdholtz)
### Customer Center
#### ✨ New Features
* feat: Introduce `CustomerCenterView` for hybrid usage (#2170) via
Cesar de la Vega (@vegaro)
* Add `onManagementOptionSelected` to `CustomerCenterListener` (#2270)
via Cesar de la Vega (@vegaro)
### Paywallv2
#### 🐞 Bugfixes
* [Paywalls V2] Ignores missing font alias if it's blank. (#2271) via
JayShortway (@JayShortway)
* [Paywalls V2] Fixes badges not being overriden (#2266) via JayShortway
(@JayShortway)

### 🔄 Other Changes
* [Diagnostics] Add play_store_version and play_services_version to all
google events (#2269) via Toni Rico (@tonidero)
* [Diagnostics] Add `id` and `app_session_id` to events (#2268) via Toni
Rico (@tonidero)
* Uploads Paparazzi screenshots to Emerge. (#2232) via JayShortway
(@JayShortway)

Co-authored-by: revenuecat-ops <ops@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.

2 participants