purchases-android icon indicating copy to clipboard operation
purchases-android copied to clipboard

R8 warnings about `coil`

Open ansman opened this issue 1 month ago • 2 comments

Describe the bug We're using the purchases-custom-entitlement-computation artifact which internally references coil. That code isn't executed unless you're using the ui artifact but since coil is referenced, R8 will warn that coil is not found. This isn't a big deal but ideally RC should include proguard rules to suppress these warnings.

The warning in question can be fixed by adding this rule:

-dontwarn coil.**

ansman avatar Nov 17 '25 22:11 ansman

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar Nov 17 '25 22:11 RCGitBot

Hi @ansman, thanks for reporting!

We actually have that rule added here which is applied to the purchases library here. I was also trying to reproduce by using our CustomEntitlementComputationSample app, by building it in release mode (with minify enabled), and wasn't able to reproduce.

To try to narrow it down, are you applying any specific proguard rules on your side? For context, this is what I had set in our sample app:

    buildTypes {
        release {
            isMinifyEnabled = true
            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
        }
    }

Feel free to open a ticket or reach out to us over Slack if you prefer!

tonidero avatar Nov 20 '25 08:11 tonidero