Skip to content

ci: warn when pre-built material-icons are imported in :ui:revenuecatui#3282

Merged
facumenzella merged 6 commits into
mainfrom
worktree-fix-default-paywall-checkcircle-icon
Mar 26, 2026
Merged

ci: warn when pre-built material-icons are imported in :ui:revenuecatui#3282
facumenzella merged 6 commits into
mainfrom
worktree-fix-default-paywall-checkcircle-icon

Conversation

@facumenzella

@facumenzella facumenzella commented Mar 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a Danger rule that warns when a PR introduces a direct material-icons import in :ui:revenuecatui (anything from androidx.compose.material.icons.* except materialIcon/materialPath)
  • The module avoids the material-icons runtime dependency by defining custom inline icon vectors — using Icons.Filled.* etc. causes NoClassDefFoundError at runtime in apps that don't bundle the artifact (see DefaultProductCell.kt introduced in Feature: Update default paywall #3133)

Test plan

  • Verify Danger fires a warning on a PR that adds import androidx.compose.material.icons.Icons to a file under ui/revenuecatui/
  • Verify Danger does not warn on import androidx.compose.material.icons.materialIcon / materialPath

Note

Low Risk
Low risk CI-only change that adds a warning rule; it doesn’t affect runtime behavior, but could introduce noisy/false-positive PR warnings if the regex misses edge cases.

Overview
Adds a new Danger rule that scans added/modified ui/revenuecatui/*.kt diffs and emits a warning when a PR introduces direct androidx.compose.material.icons.* imports (except materialIcon/materialPath).

This enforces the module’s intent to avoid a material-icons runtime dependency by steering contributors toward custom inline icons under icons/.

Written by Cursor Bugbot for commit e819ec9. This will update automatically on new commits. Configure here.

The module avoids the material-icons runtime dependency by using custom
inline icon vectors. Importing Icons.Filled.* etc. causes
NoClassDefFoundError at runtime in apps that don't bundle the artifact.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread Dangerfile Outdated

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

This makes a lot of sense. Thanks for adding this!!

facumenzella and others added 2 commits March 26, 2026 17:12
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…r CI)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread Dangerfile Outdated
facumenzella and others added 2 commits March 26, 2026 17:19
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tives on comments

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@facumenzella facumenzella enabled auto-merge March 26, 2026 16:25
@facumenzella facumenzella added this pull request to the merge queue Mar 26, 2026
@codecov

codecov Bot commented Mar 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.38%. Comparing base (8833c5c) to head (e819ec9).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3282   +/-   ##
=======================================
  Coverage   79.38%   79.38%           
=======================================
  Files         357      357           
  Lines       14349    14349           
  Branches     1960     1960           
=======================================
  Hits        11391    11391           
  Misses       2154     2154           
  Partials      804      804           

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

Merged via the queue into main with commit fe8552e Mar 26, 2026
34 checks passed
@facumenzella facumenzella deleted the worktree-fix-default-paywall-checkcircle-icon branch March 26, 2026 17:07
github-merge-queue Bot pushed a commit that referenced this pull request Apr 2, 2026
**This is an automatic release.**

## RevenueCat SDK
### ✨ New Features
* Use Amazon deep link for Amazon subscription management (#3291) via
Cesar de la Vega (@vegaro)
* Introduce purchases codegen package (#3163) via Jaewoong Eum
(@skydoves)
### 🐞 Bugfixes
* Fix Test Store Purchase dialog not cancelling purchase on outside tap
(#3289) via Antonio Pallares (@ajpallares)

## RevenueCatUI SDK
### Paywallv2
#### 🐞 Bugfixes
* Fix mixed currencies in paywall price variables (PW-133) (#3119) via
Facundo Menzella (@facumenzella)

### 🔄 Other Changes
* Add docs for the codegen plugin (#3288) via Jaewoong Eum (@skydoves)
* Run integration tests against all backend environments (#3278) via
Toni Rico (@tonidero)
* Use merge queue for release PR merging (#3281) via Antonio Pallares
(@ajpallares)
* ci: warn when pre-built material-icons are imported in
:ui:revenuecatui (#3282) via Facundo Menzella (@facumenzella)

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: this is a version/release bookkeeping update plus docs/CI
deployment path changes, with no functional runtime logic changes beyond
the reported version string.
> 
> **Overview**
> Cuts the `9.29.0` release by switching all references from
`9.29.0-SNAPSHOT` to `9.29.0` (Gradle `VERSION_NAME`, internal
`frameworkVersion`, and sample/test app dependency versions).
> 
> Updates documentation publishing to point to the `9.29.0` docs
directory (CircleCI S3 sync path and `docs/index.html` redirect), and
rolls forward `CHANGELOG.md`/`CHANGELOG.latest.md` with the 9.29.0
release notes.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
bf217fd. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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