Skip to content

Add CI script to catch missing .meta files#883

Merged
vegaro merged 4 commits into
mainfrom
check-meta-files
Mar 30, 2026
Merged

Add CI script to catch missing .meta files#883
vegaro merged 4 commits into
mainfrom
check-meta-files

Conversation

@facumenzella

Copy link
Copy Markdown
Member

Summary

  • Adds scripts/check-meta-files.sh that fails if any .cs, .asmdef, .shader, or .json file in RevenueCat/ or RevenueCatUI/ is missing its .meta file
  • Fixes two missing .meta files in IntegrationTests/ that the script surfaced (PaywallsPresenterAPITests.cs and CustomerCenterPresenterAPITests.cs)

Prevents a repeat of #875, where a missing .meta file caused compilation failures for UPM users in 8.7.0 and 8.8.0.

Wire up by running bash scripts/check-meta-files.sh as a CI step (e.g. in CircleCI config or a Fastfile lane).

Test plan

  • Run bash scripts/check-meta-files.sh from repo root — should print ✅ All asset files have corresponding .meta files.
  • Delete a .meta file and re-run — should fail with ❌ Missing .meta file for: ...

🤖 Generated with Claude Code

Adds scripts/check-meta-files.sh which verifies every .cs, .asmdef,
.shader, and .json file in RevenueCat/ and RevenueCatUI/ has a sibling
.meta file. Run this in CI to prevent a repeat of the missing-meta
compilation failure fixed in #875.

Also adds two missing .meta files in IntegrationTests that the script
surfaced.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@facumenzella facumenzella requested a review from a team as a code owner March 25, 2026 09:52
Adds a lightweight check-meta-files job that runs before export-package,
failing fast if any .cs/.asmdef/.shader/.json file in RevenueCat/ or
RevenueCatUI/ is missing its .meta file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vegaro vegaro added the pr:other Changes to our CI configuration files and scripts label Mar 30, 2026
@vegaro vegaro enabled auto-merge (squash) March 30, 2026 09:10

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

Just a comment, but I think it's good to go

(Sorry, had this in review since last week and forgot to submit :( )

Comment thread .circleci/config.yml Outdated
@vegaro vegaro merged commit 93294e8 into main Mar 30, 2026
9 checks passed
@vegaro vegaro deleted the check-meta-files branch March 30, 2026 13:51
RCGitBot added a commit that referenced this pull request Apr 1, 2026
**This is an automatic release.**

## RevenueCat SDK
### 📦 Dependency Updates
* [AUTOMATIC BUMP] Updates purchases-hybrid-common to 17.54.0 (#885) via
RevenueCat Git Bot (@RCGitBot)
* [Android
9.28.1](https://github.com/RevenueCat/purchases-android/releases/tag/9.28.1)
* [Android
9.28.0](https://github.com/RevenueCat/purchases-android/releases/tag/9.28.0)
* [Android
9.27.0](https://github.com/RevenueCat/purchases-android/releases/tag/9.27.0)
* [iOS
5.67.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.67.0)
* [iOS
5.66.0](https://github.com/RevenueCat/purchases-ios/releases/tag/5.66.0)

## RevenueCatUI SDK
### ✨ New Features
* Add `OnPromotionalOfferSucceeded` callback to Customer Center, bump
purchases-hybrid-common to 17.53.0 (#877) via RevenueCat Git Bot
(@RCGitBot)

### 🔄 Other Changes
* Add CI script to catch missing .meta files (#883) via Facundo Menzella
(@facumenzella)
* Bump fastlane-plugin-revenuecat_internal from `9a6911b` to `f11fe40`
(#884) via dependabot[bot] (@dependabot[bot])
* security: pin GitHub Actions to SHA hashes (#882) via Alfonso
Embid-Desmet (@alfondotnet)
* Bump activesupport from 8.0.2.1 to 8.0.4.1 (#880) via dependabot[bot]
(@dependabot[bot])
* Bump activesupport from 7.2.2.2 to 7.2.3.1 in /IntegrationTests (#881)
via dependabot[bot] (@dependabot[bot])
* Merge release PR after deploy (#879) via Antonio Pallares
(@ajpallares)
* Require PR approval before release tagging (#878) via Antonio Pallares
(@ajpallares)
* Bump json from 2.15.0 to 2.15.2.1 in /IntegrationTests (#873) via
dependabot[bot] (@dependabot[bot])
* Bump json from 2.18.1 to 2.19.2 (#874) via dependabot[bot]
(@dependabot[bot])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:other Changes to our CI configuration files and scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants