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

stantronic

12/11/2019, 1:25 PM
Hi folks, does anyone know if there are any proguard rules which need to be used when using the @Parcelize annotation?
m

Matej Drobnič

12/11/2019, 1:28 PM
I don't think you need any
s

stantronic

12/11/2019, 1:34 PM
thanks
Turns out I did need an @Keep annotation, or minification breaks the parcelizing
m

Matej Drobnič

12/12/2019, 6:40 AM
huh
IIRC Android added those rules automatically: https://stackoverflow.com/a/36076888/5273071
s

stantronic

12/12/2019, 9:17 AM
Yeah, we already had that line, but minification still broke the app until I added the @Keep
3 Views