https://kotlinlang.org logo
#android
Title
# android
j

jamshedalamqaderi

11/16/2023, 9:33 AM
why i can't enable minify because of kotlinx serialization? i have also added serialization related rules in proguard. Does anyone know any latest solution?
e

Eugen Martynov

11/16/2023, 10:55 AM
I used kotlin serialisation with minification just fine
1
j

jamshedalamqaderi

11/16/2023, 11:38 AM
did you added anything in proguard file?
e

Eugen Martynov

11/16/2023, 11:59 AM
We did annotation to all fields in classes that are involved in the serialisation
And I don’t remember anything extensively in proguard configuration file
And I believe the annotation part could be also achieved by pro guard configuration that will exclude these classes from minification
j

jamshedalamqaderi

11/16/2023, 12:41 PM
I have done it but not working. Ktor client response parsing failed because of minification
e

Eugen Martynov

11/16/2023, 1:14 PM
What class/field is it missing? Check the mapping file to see what is done with that class/field. Check the proguard configuration that it covers that class/field.
j

jamshedalamqaderi

11/16/2023, 1:14 PM
Okay
e

Eugen Martynov

11/16/2023, 1:15 PM