FasterXML / jackson-module-kotlin

Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
Apache License 2.0
1.11k stars 175 forks source link

Missing classes error using AGP 8 R8 shrinker #796

Closed aroyarexs closed 2 months ago

aroyarexs commented 2 months ago

Search before asking

Describe the bug

We are currently migrating from AGP 7 to 8. AGP 8 sets android.r8.failOnMissingClasses to true by default. Therefore we are now getting missing class errors.

Missing class java.beans.ConstructorProperties (referenced from: void com.fasterxml.jackson.databind.ext.Java7SupportImpl.<init>() and 2 other contexts)
Missing class java.beans.Transient (referenced from: void com.fasterxml.jackson.databind.ext.Java7SupportImpl.<init>() and 1 other context)

Using AGP 7 we receive this output as a warning. Therefore I assume we can add them savely to our proguard-rules.pro file!?

Regards,

Aaron

To Reproduce

Expected behavior

No missing class errors or some hints in the documentation.

Versions

Kotlin: 1.8.21 Jackson-module-kotlin: 2.14.3 and 2.16.2 Jackson-databind: resolved transitively -> 2.14.3 and 2.16.2

Additional context

No response

k163377 commented 2 months ago

This does not appear to be a problem with this repository. After reading the following article, if there is any missing information, could you please put the issue in that repository? https://github.com/FasterXML/jackson-docs/wiki/JacksonOnAndroid