Skip to content

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented Aug 7, 2025

Description

This adds the alias endpoint call. Currently unused but will be used in follow-up PRs

Copy link

codecov bot commented Aug 7, 2025

Codecov Report

❌ Patch coverage is 94.28571% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.32%. Comparing base (babc3c1) to head (5fa71d9).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../kotlin/com/revenuecat/purchases/common/Backend.kt 93.33% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2594      +/-   ##
==========================================
+ Coverage   78.28%   78.32%   +0.04%     
==========================================
  Files         299      299              
  Lines       11059    11094      +35     
  Branches     1541     1547       +6     
==========================================
+ Hits         8657     8689      +32     
  Misses       1726     1726              
- Partials      676      679       +3     

☔ 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 August 7, 2025 15:34
@tonidero tonidero requested a review from a team August 7, 2025 15:34
Copy link
Member

@ajpallares ajpallares left a comment

Choose a reason for hiding this comment

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

Makes sense!

@tonidero tonidero added this pull request to the merge queue Aug 8, 2025
Merged via the queue into main with commit 0096eb9 Aug 8, 2025
20 checks passed
@tonidero tonidero deleted the add-alias-users-endpoint branch August 8, 2025 17:03
This was referenced Aug 13, 2025
tonidero pushed a commit that referenced this pull request Aug 14, 2025
**This is an automatic release.**

## RevenueCat SDK
### 📦 Dependency Updates
* [RENOVATE] Update dependency gradle to v9 (#2589) via RevenueCat Git
Bot (@RCGitBot)

## RevenueCatUI SDK
### Customer Center
#### ✨ New Features
* Show a subscribe button in customer center when there are no
subscriptions (#2596) via Facundo Menzella (@facumenzella)
#### 🐞 Bugfixes
* Fix title and price of non-Google purchases in Customer Center (#2576)
via Cesar de la Vega (@vegaro)

### 🔄 Other Changes
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2598) via RevenueCat Git Bot (@RCGitBot)
* Add alias users backend call (#2594) via Toni Rico (@tonidero)
* Rename TestStore to SimulatedStore (#2591) via Toni Rico (@tonidero)
* Fail configure call if using test api key in release builds (#2590)
via Toni Rico (@tonidero)
* Support test store (#2554) via Toni Rico (@tonidero)
* Fix insets in Paywall Tester (#2584) via Cesar de la Vega (@vegaro)
* Add 8.22.1 to CHANGELOG (#2582) via Toni Rico (@tonidero)
* Add warning on V9 CHANGELOG (#2586) via Toni Rico (@tonidero)
* Change metalava job to diff dump generated dump files (#2585) via Toni
Rico (@tonidero)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
github-merge-queue bot pushed a commit that referenced this pull request Aug 19, 2025
…2595)

### Description
Based on #2594 

This uses [Block
store](https://developer.android.com/identity/block-store) to store the
anonymous user id in the cloud when we find it has any purchases. This
user ID will be recovered and aliased together with any new anonymous
user id when restoring or completing a purchase.

This will be useful to avoid issues when trying to restore purchases
with consumed consumables that were meant to never be consumed.
tonidero added a commit that referenced this pull request Aug 25, 2025
### Description
This adds the alias endpoint call. Currently unused but will be used in
follow-up PRs
tonidero added a commit that referenced this pull request Aug 25, 2025
…2595)

### Description
Based on #2594 

This uses [Block
store](https://developer.android.com/identity/block-store) to store the
anonymous user id in the cloud when we find it has any purchases. This
user ID will be recovered and aliased together with any new anonymous
user id when restoring or completing a purchase.

This will be useful to avoid issues when trying to restore purchases
with consumed consumables that were meant to never be consumed.
@tonidero tonidero mentioned this pull request Aug 25, 2025
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