After updating Android Studio to the new release (Jellyfish) and updating the Android Gradle Plugin to 8.4, my release builds are failing with a slew of issues related to things injected with daggar/hilt. I spent the afternoon adding keep rules for everything that's being injected, and ended up an error saying I need a @Provides rule for CoroutineScope, which I could not manage to resolve.
Can anyone give me a concise set of rules for Daggar/Hilt and AGP 8.4?
This project is multi-module project. I was also running into issues with name clashes (two modules mapping different classes to a.a). To solve that I putting:
repackageclasses 'x'
with a different value for x for each module.
In the end, I reverted AGP. But long term, I'll need to figure out a solution (or hopefully updates will fix it).
android.disableMinifyLocalDependenciesForLibraries=false
didn't produce the name clashes anymore but it's disabling the feature. So for now I ended up reverting AGP. – Heavyfootedrepackageclasses 'x'
@NicolasJafelle the thing is what rules should we add in case of multiple obfuscated classes that have same package name? – Heavyfooted