Skip to content

Add file size limit to events tracking files#2841

Merged
tonidero merged 22 commits into
mainfrom
add-events-tracking-file-size-limit
Nov 20, 2025
Merged

Add file size limit to events tracking files#2841
tonidero merged 22 commits into
mainfrom
add-events-tracking-file-size-limit

Conversation

@tonidero

Copy link
Copy Markdown
Contributor

Description

This adds a file size limit to the events manager, so if it grows too much, it doesn't grow infinitely. This also affects paywall, and customer center.

@codecov

codecov Bot commented Nov 14, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.23%. Comparing base (a8cc75a) to head (49e276c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2841      +/-   ##
==========================================
+ Coverage   78.22%   78.23%   +0.01%     
==========================================
  Files         323      323              
  Lines       12701    12707       +6     
  Branches     1734     1735       +1     
==========================================
+ Hits         9935     9941       +6     
  Misses       2036     2036              
  Partials      730      730              

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

@tonidero tonidero marked this pull request as ready for review November 17, 2025 08:29
@tonidero tonidero requested a review from a team as a code owner November 17, 2025 08:29
@tonidero tonidero requested review from a team and polmiro November 17, 2025 08:29

@polmiro polmiro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, in the iOS one I separated them into two different storage files but I believe you are already aware of this.

@tonidero

Copy link
Copy Markdown
Contributor Author

in the iOS one I separated them into two different storage files but I believe you are already aware of this.

Right, in Android, I'm creating 2 different EventManager, each with its own storage file. That's part of the base PR here

github-merge-queue Bot pushed a commit that referenced this pull request Nov 20, 2025
### Description
Implements ad event tracking infrastructure for RevenueCat. This
provides the client-side foundation needed to report ad impressions,
clicks, and revenue alongside subscription data for comprehensive LTV
tracking.

In follow-up PRs:
- [x] Add size limit to ad events file
#2841
- [x] Flush multiple batches, instead of a single one (with a limit)
#2842
Base automatically changed from rc-ads-tracking to main November 20, 2025 12:52
@tonidero tonidero enabled auto-merge November 20, 2025 13:41
@tonidero tonidero added this pull request to the merge queue Nov 20, 2025
Merged via the queue into main with commit 7ee1e4b Nov 20, 2025
23 checks passed
@tonidero tonidero deleted the add-events-tracking-file-size-limit branch November 20, 2025 14:09
github-merge-queue Bot pushed a commit that referenced this pull request Nov 25, 2025
**This is an automatic release.**

> [!WARNING]  
> If you don't have any login system in your app, please make sure your
one-time purchase products have been correctly configured in the
RevenueCat dashboard as either consumable or non-consumable. If they're
incorrectly configured as consumables, RevenueCat will consume these
purchases. This means that users won't be able to restore them from
version 9.0.0 onward.
> Non-consumables are products that are meant to be bought only once,
for example, lifetime subscriptions.


## RevenueCat SDK
### 🐞 Bugfixes
* Restore Purchases config automatically in CustomerCenter (#2867) via
Facundo Menzella (@facumenzella)
* Handle error reading `errorStream` in some devices (#2865) via Toni
Rico (@tonidero)
* [MON-1122] Revert variable rounding logic to not round up (#2857) via
Pol Piella Abadia (@polpielladev)

## RevenueCatUI SDK
### Paywallv2
#### 🐞 Bugfixes
* Select default package on Sheet dismissal (#2861) via Cesar de la Vega
(@vegaro)
### Customer Center
#### ✨ New Features
* CC-581 | Allow for support ticket creation (#2810) via Rosie Watson
(@RosieWatson)

### 🔄 Other Changes
* Bump fastlane-plugin-revenuecat_internal from `7328ea7` to `efca663`
(#2864) via dependabot[bot] (@dependabot[bot])
* Bump fastlane from 2.228.0 to 2.229.0 (#2863) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane-plugin-revenuecat_internal from `083ced9` to `7328ea7`
(#2862) via dependabot[bot] (@dependabot[bot])
* Runs plugin actions from correct directory (#2858) via JayShortway
(@JayShortway)
* Flush multiple event batches (#2842) via Toni Rico (@tonidero)
* Add file size limit to events tracking files (#2841) via Toni Rico
(@tonidero)
* Make events manager be supported in Android < 24 (#2854) via Toni Rico
(@tonidero)
* Add non paid revenue reporting infra (#2728) via Toni Rico (@tonidero)
* Fix backend integration tests (#2860) via Toni Rico (@tonidero)
* Track `connection_error_reason` property in diagnostics (#2855) via
Toni Rico (@tonidero)
* Uses some git+GitHub lanes from Fastlane plugin (#2856) via
JayShortway (@JayShortway)
* Add client side timeout logic for endpoints that support fallback URLs
(#2807) via Toni Rico (@tonidero)
* [EXTERNAL] Fix deprecation warnings in examples module (#2852)
contributed by @gojoel (#2853) via Toni Rico (@tonidero)
* Bump fastlane-plugin-revenuecat_internal from `9f78bb9` to `083ced9`
(#2848) via dependabot[bot] (@dependabot[bot])

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants