Skip to content

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented Aug 28, 2025

Description

This adds a new API that can be used to disable automatic collection of Advertising ID, IP and device info when using one of the attribution networks we support like Adjust or Appsflyer. This can be set at configuration time like this:

val purchasesConfiguration = PurchasesConfiguration.Builder(context, "YOUR_API_KEY")
   .automaticDeviceIdentifierCollectionEnabled(enabled)
   .build()
Purchases.configure(purchasesConfiguration)

Note that you can still collect these identifiers with this option disabled by calling Purchases.sharedInstance.collectDeviceIdentifiers()

@tonidero tonidero added the pr:feat A new feature label Aug 28, 2025
@tonidero tonidero marked this pull request as ready for review August 28, 2025 08:59
@tonidero tonidero requested review from vegaro, MarkVillacampa and a team August 28, 2025 08:59
Copy link

codecov bot commented Aug 28, 2025

Codecov Report

❌ Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.48%. Comparing base (5016d86) to head (0d122f3).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...com/revenuecat/purchases/PurchasesConfiguration.kt 77.77% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2643      +/-   ##
==========================================
+ Coverage   78.47%   78.48%   +0.01%     
==========================================
  Files         305      305              
  Lines       11354    11369      +15     
  Branches     1576     1577       +1     
==========================================
+ Hits         8910     8923      +13     
- Misses       1753     1755       +2     
  Partials      691      691              

☔ 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 Aug 28, 2025
Merged via the queue into main with commit fbfe6bc Aug 28, 2025
21 checks passed
@tonidero tonidero deleted the add-option-to-disable-automatic-id-collection-when-setting-attribution-ids branch August 28, 2025 11:20
tonidero pushed a commit that referenced this pull request Aug 28, 2025
**This is an automatic release.**

## RevenueCat SDK
### ✨ New Features
* Add option to disable automatic ID collection when setting attribution
network IDs at configuration time (#2643) via Toni Rico (@tonidero)
### 🐞 Bugfixes
* Handle payment pending errors when restoring properly (#2635) via Toni
Rico (@tonidero)

## RevenueCatUI SDK
### Paywallv2
#### ✨ New Features
* MON-1193 Support delayed close button (Component Transitions) (#2623)
via Jacob Rakidzich (@JZDesign)
#### 🐞 Bugfixes
* Fix PaywallDialog going over screen size on Android 35+ (#2642) via
Toni Rico (@tonidero)
### Customer Center
#### ✨ New Features
* Add button_text to ScreenOffering (#2638) via Facundo Menzella
(@facumenzella)

### 🔄 Other Changes
* Chore: Update detekt yml file (#2637) via Jacob Rakidzich (@JZDesign)
* Update CHANGELOG for version 8.23.0 release (#2636) via Toni Rico
(@tonidero)
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2633) via RevenueCat Git Bot (@RCGitBot)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
tonidero added a commit that referenced this pull request Sep 10, 2025
…n network IDs at configuration time (#2643)

### Description
This adds a new API that can be used to disable automatic collection of
Advertising ID, IP and device info when using one of the attribution
networks we support like Adjust or Appsflyer. This can be set at
configuration time like this:
```
val purchasesConfiguration = PurchasesConfiguration.Builder(context, "YOUR_API_KEY")
   .automaticDeviceIdentifierCollectionEnabled(enabled)
   .build()
Purchases.configure(purchasesConfiguration)
```

Note that you can still collect these identifiers with this option
disabled by calling
`Purchases.sharedInstance.collectDeviceIdentifiers()`
@tonidero tonidero mentioned this pull request Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:feat A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants