Skip to content

Don't use reflection to instantiate AmazonDeviceIdentifiersFetcher#2919

Merged
fire-at-will merged 2 commits into
mainfrom
dont-use-reflection-for-amazon-device-identifier
Dec 11, 2025
Merged

Don't use reflection to instantiate AmazonDeviceIdentifiersFetcher#2919
fire-at-will merged 2 commits into
mainfrom
dont-use-reflection-for-amazon-device-identifier

Conversation

@fire-at-will

@fire-at-will fire-at-will commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

Description

Follow-up PR from this comment thread on PR #2917.

We no longer need to use reflection to instantiate the AmazonDeviceIdentifiersFetcher class since it is now in the main module of the SDK, so this PR changes the AmazonDeviceIdentifiersFetcher's instantiation from using reflection to using a normal constructor.

@codecov

codecov Bot commented Dec 11, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 78.49%. Comparing base (b5c21e8) to head (7785ae3).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../revenuecat/purchases/AttributionFetcherFactory.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2919      +/-   ##
==========================================
+ Coverage   78.45%   78.49%   +0.03%     
==========================================
  Files         332      332              
  Lines       12884    12878       -6     
  Branches     1749     1749              
==========================================
  Hits        10108    10108              
+ Misses       2042     2036       -6     
  Partials      734      734              

☔ 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 marked this pull request as ready for review December 11, 2025 15:16
@fire-at-will fire-at-will requested a review from a team as a code owner December 11, 2025 15:16

@tonidero tonidero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for cleaning this up!! 🙌

@fire-at-will fire-at-will changed the title Don't use Reflection to Instantiate AmazonDeviceIdentifiersFetcher Don't use reflection to instantiate AmazonDeviceIdentifiersFetcher Dec 11, 2025
@fire-at-will fire-at-will added this pull request to the merge queue Dec 11, 2025
Merged via the queue into main with commit 7dc66ae Dec 11, 2025
23 checks passed
@fire-at-will fire-at-will deleted the dont-use-reflection-for-amazon-device-identifier branch December 11, 2025 15:36
tonidero pushed a commit that referenced this pull request Dec 15, 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
### 📦 Dependency Updates
* [RENOVATE] Update build-dependencies to v8.13.2 (#2929) via RevenueCat
Git Bot (@RCGitBot)

## RevenueCatUI SDK
### 🐞 Bugfixes
* Fix `IllegalStateException`: No `ViewModelStoreOwner` was provided via
`LocalViewModelStoreOwner` in `CompatComposeView` (#2912) via Cesar de
la Vega (@vegaro)

### 🔄 Other Changes
* Change AdFailedToLoad mediatorErrorCode type from Long to Int (#2924)
via Pol Miro (@polmiro)
* Change paywall preview recorder name template (#2923) via Toni Rico
(@tonidero)
* Don't use reflection to instantiate AmazonDeviceIdentifiersFetcher
(#2919) via Will Taylor (@fire-at-will)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
github-merge-queue Bot pushed a commit that referenced this pull request Dec 15, 2025
### Description
We no longer need to use reflection to instantiate the
`AmazonOfferingParser`, so this PR updates its instantiation to use a
normal constructor.

Similar to #2919
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