R8 warnings about `coil`
- [x] I have updated Purchases SDK to the latest version
- [x] I have read the Contribution Guidelines
- [x] I have searched the Community
- [x] I have read docs.revenuecat.com
- [x] I have searched for existing Github issues
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.**
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
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!