Closed proninyaroslav closed 9 months ago
Will need a minimally reproducing project for R8 issues, sorry
Ok, I'll provide it later.
Unfortunately I was unable to reproduce this in the minimally reproducing project😅 This is weird. Maybe this is some kind of conflict with other packages, I can only provide their one project in which this problem is observed.
Yeah R8 issues are often usually super specific to the host project. Going to close this for now, feel free to revisit if you can make a public repro.
@ZacSweers The project is public https://github.com/proninyaroslav/OpenComicVine. I can create a separate branch with version 0.25.1
Can you give me specific build instructions?
@ZacSweers
I created a separate test branch https://github.com/proninyaroslav/OpenComicVine/tree/r8_moshix.
I've enabled R8 for a debug
build variant, so you can simply build and run the app the normal way (Gradle/Android Studio). Also, the project uses KSP instead of kapt everywhere, if that matters. But when building I get the message: Kapt support in Moshi Kotlin Code Gen is deprecated and will be removed in 2.0. Please migrate to KSP
. I don't know the reason.
Please share the exact gradle command.
Re: the warning - this is because hilt loads all processors, we can't do anything about that. There's a bug filed on their side somewhere
./gradlew installDebug
Also you need OpenJDK 17
Your debug build runs R8 minification?
I modified the debug version and turned on R8 so that you don’t have to create a release key and so on. There is no difference in both cases.
moshi-sealed: 0.24.0 and later moshi: 1.15.0 ksp: 1.9.21-1.0.16
The crash appears on all versions above
0.23.0
with enabled R8: