Skip to content

Extract parameters for non paid revenue tracking API to use objects#2871

Merged
tonidero merged 2 commits into
mainfrom
change-ad-track-methods-from-params-to-objects
Nov 26, 2025
Merged

Extract parameters for non paid revenue tracking API to use objects#2871
tonidero merged 2 commits into
mainfrom
change-ad-track-methods-from-params-to-objects

Conversation

@tonidero

Copy link
Copy Markdown
Contributor

Description

This is a follow-up from #2728

In iOS, we're passing an object to the track methods for non paid revenue tracking, but we were passing the individual parameters in Android. After thinking about it, passing an object allows for better extensibility, so modifying the API for android.

This is technically a breaking change, but the API is still internal, so it should be ok.

@tonidero tonidero marked this pull request as ready for review November 26, 2025 12:17
@tonidero tonidero requested a review from a team as a code owner November 26, 2025 12:17
@tonidero tonidero requested a review from polmiro November 26, 2025 12:17
*/
@InternalRevenueCatAPI
@Poko
class AdDisplayedData(

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.

I did wonder about adding a builder for all of these... But maybe it's ok for now since the parameters are pretty simple IMO. We can add it later if it's needed I guess

@codecov

codecov Bot commented Nov 26, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.96491% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.28%. Comparing base (2fb536f) to head (05efb65).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...t/purchases/ads/events/types/AdRevenuePrecision.kt 45.45% 6 Missing ⚠️
...uecat/purchases/ads/events/types/AdMediatorName.kt 71.42% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2871      +/-   ##
==========================================
+ Coverage   78.25%   78.28%   +0.03%     
==========================================
  Files         325      330       +5     
  Lines       12732    12753      +21     
  Branches     1739     1739              
==========================================
+ Hits         9963     9984      +21     
  Misses       2038     2038              
  Partials      731      731              

☔ 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 added this pull request to the merge queue Nov 26, 2025
Merged via the queue into main with commit 626ffc3 Nov 26, 2025
23 checks passed
@tonidero tonidero deleted the change-ad-track-methods-from-params-to-objects branch November 26, 2025 17:06
github-merge-queue Bot pushed a commit that referenced this pull request Nov 26, 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.


## RevenueCatUI SDK
### 🐞 Bugfixes
* Fix ANR when initializing FontLoader (#2819) via Cesar de la Vega
(@vegaro)
### Paywallv2
#### 🐞 Bugfixes
* Fix `Template7CustomPackagesTestData` (#2875) via Cesar de la Vega
(@vegaro)
* Fix predownloading of fonts if first offering doesn't have paywall
components (#2873) via Cesar de la Vega (@vegaro)

### 🔄 Other Changes
* Extract parameters for non paid revenue tracking API to use objects
(#2871) via Toni Rico (@tonidero)
* Bump fastlane from 2.229.0 to 2.229.1 (#2869) 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