Skip to content

Conversation

fire-at-will
Copy link
Contributor

@fire-at-will fire-at-will commented Jul 21, 2025

Description

Android equivalent of RevenueCat/purchases-ios#5404

This PR updates the VirtualCurrencyStrings.NO_CACHED_VIRTUAL_CURRENCIES log message from "No cached VirtualCurrencies, fetching from network." to "There are no cached VirtualCurrencies.".

The previous message stated that a network fetch would occur, which isn't always the case.

There are two scenarios where this log may appear:

  • When fetching virtual currencies and the cache is not stale but contains no virtual currencies object (an edge case that shouldn't occur with normal usage).
  • When accessing the cache directly using Purchases.cachedVirtualCurrencies and it's empty - in this case, the SDK returns nil without initiating a network fetch.

The updated message is more descriptive of what actually happens in the second scenario. In the first scenario, subsequent log messages state that the SDK is fetching VCs from the network.

Copy link

codecov bot commented Jul 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.26%. Comparing base (8ed9ccd) to head (cc661ac).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2552   +/-   ##
=======================================
  Coverage   78.26%   78.26%           
=======================================
  Files         291      291           
  Lines       10784    10784           
  Branches     1507     1507           
=======================================
  Hits         8440     8440           
  Misses       1692     1692           
  Partials      652      652           

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

@fire-at-will fire-at-will requested a review from a team July 21, 2025 20:07
@fire-at-will fire-at-will marked this pull request as ready for review July 21, 2025 20:07
@fire-at-will fire-at-will enabled auto-merge July 22, 2025 13:40
@fire-at-will fire-at-will added this pull request to the merge queue Jul 22, 2025
Copy link

emerge-tools bot commented Jul 22, 2025

📸 Snapshot Test

648 unchanged

Name Added Removed Modified Renamed Unchanged Errored Approval
TestPurchasesUIAndroidCompatibility
com.revenuecat.testpurchasesuiandroidcompatibility
0 0 0 0 397 0 N/A
TestPurchasesUIAndroidCompatibility Paparazzi
com.revenuecat.testpurchasesuiandroidcompatibility.paparazzi
0 0 0 0 251 0 N/A

🛸 Powered by Emerge Tools

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jul 22, 2025
@fire-at-will fire-at-will added this pull request to the merge queue Jul 22, 2025
Merged via the queue into main with commit 44adbe3 Jul 22, 2025
14 checks passed
@fire-at-will fire-at-will deleted the update-vc-cache-log-message branch July 22, 2025 15:57
github-merge-queue bot pushed a commit that referenced this pull request Jul 23, 2025
**This is an automatic release.**

## RevenueCat SDK
### 🐞 Bugfixes
* Resubscribe if cancelled (#2487) via Cesar de la Vega (@vegaro)
### Virtual Currency
#### 🐞 Bugfixes
* Update VC Caching Log Message (#2552) via Will Taylor (@fire-at-will)

## RevenueCatUI SDK
### Customer Center
#### 🐞 Bugfixes
* Update design of No Active subscriptions screen in Customer Center
(#2559) via Cesar de la Vega (@vegaro)

### 🔄 Other Changes
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2561) via RevenueCat Git Bot (@RCGitBot)
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2560) via RevenueCat Git Bot (@RCGitBot)
* Bump danger from 9.5.1 to 9.5.3 (#2556) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane from 2.227.2 to 2.228.0 (#2557) via dependabot[bot]
(@dependabot[bot])
* Bump fastlane-plugin-revenuecat_internal from `9a29f63` to `7d97553`
(#2558) via dependabot[bot] (@dependabot[bot])
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2555) via RevenueCat Git Bot (@RCGitBot)
* Bump nokogiri from 1.18.8 to 1.18.9 (#2553) via dependabot[bot]
(@dependabot[bot])
* [AUTOMATIC][Paywalls V2] Updates paywall-preview-resources submodule
(#2551) via RevenueCat Git Bot (@RCGitBot)
* Fix paywall tester so customer center doesn't close when changing to
dark mode (#2550) via Cesar de la Vega (@vegaro)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
tonidero pushed a commit that referenced this pull request Aug 25, 2025
### Description

Android equivalent of
RevenueCat/purchases-ios#5404

This PR updates the
`VirtualCurrencyStrings.NO_CACHED_VIRTUAL_CURRENCIES` log message from
`"No cached VirtualCurrencies, fetching from network."` to `"There are
no cached VirtualCurrencies."`.

The previous message stated that a network fetch would occur, which
isn't always the case.

There are two scenarios where this log may appear:
- When fetching virtual currencies and the cache is not stale but
contains no virtual currencies object (an edge case that shouldn't occur
with normal usage).
- When accessing the cache directly using
`Purchases.cachedVirtualCurrencies` and it's empty - in this case, the
SDK returns nil without initiating a network fetch.

The updated message is more descriptive of what actually happens in the
second scenario. In the first scenario, subsequent log messages state
that the SDK is fetching VCs from the network.
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants