Skip to content

Remove Samsung IAP SDK version warning log#3546

Merged
fire-at-will merged 2 commits into
mainfrom
remove-galaxy-sdk-version-warning-log
Jun 5, 2026
Merged

Remove Samsung IAP SDK version warning log#3546
fire-at-will merged 2 commits into
mainfrom
remove-galaxy-sdk-version-warning-log

Conversation

@fire-at-will

@fire-at-will fire-at-will commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Motivation

Before purchases-android SDK version 10.7.0, developers who wanted to use our integration with the Galaxy Store needed to obtain a copy of the Samsung IAP SDK .aar file from the Samsung Developer Portal and manually include it in their app builds. This meant that the RevenueCat SDK could not control which version of the Samsung IAP SDK was used at runtime. To help ensure that developers used a compatible IAP SDK version, we included a warning log if the IAP SDK version provided was not expected by that version of the purchases-android SDK.

The purchases-android SDK began including a copy of the Samsung IAP SDK transitively starting in version 10.7.0, as the Samsung IAP SDK started to be distributed via Maven beginning with version 6.5.2. Thus, this warning log is no longer required.

Description

Removes the warning log that gets logged if the version of the Samsung IAP SDK does not match the version expected by the purchases-android SDK.


Note

Low Risk
Logging and build-config cleanup only; no changes to purchase, restore, or billing flows.

Overview
Removes the Galaxy Store startup check that compared the Samsung IAP SDK version at runtime against a value baked into purchases-android and logged a warning on mismatch.

That check and its supporting BuildConfig.SAMSUNG_IAP_SDK_VERSION field in purchases/build.gradle.kts are deleted, along with related imports in GalaxyBillingWrapper. Galaxy billing initialization still sets IAP operation mode; only the obsolete version-mismatch warning path is gone now that the SDK ships Samsung IAP transitively via Maven.

Reviewed by Cursor Bugbot for commit 251bf52. Bugbot is set up for automated code reviews on this repo. Configure here.

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

Just a comment but nice cleanup!!

}

private fun logWarningIfUnexpectedSamsungIAPVersionFound() {
val expectedSamsungIAPSDKVersion = PurchasesBuildConfig.SAMSUNG_IAP_SDK_VERSION

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.

Do we need to remove this property as well from the build.gradle?

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.

Ah yes! Removed in 251bf52

@codecov

codecov Bot commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.11%. Comparing base (27fd84b) to head (251bf52).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3546   +/-   ##
=======================================
  Coverage   80.11%   80.11%           
=======================================
  Files         371      371           
  Lines       15166    15166           
  Branches     2100     2100           
=======================================
  Hits        12150    12150           
  Misses       2166     2166           
  Partials      850      850           

☔ View full report in Codecov by Harness.
📢 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 added this pull request to the merge queue Jun 5, 2026
Merged via the queue into main with commit 4b64a99 Jun 5, 2026
40 checks passed
@fire-at-will
fire-at-will deleted the remove-galaxy-sdk-version-warning-log branch June 5, 2026 15:22
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.

2 participants