https://kotlinlang.org logo
Title
a

ashishkrishnan

05/31/2018, 10:38 AM
How experimental is @Parcelize Android extension? Someone using in production?
👍 3
g

gildor

05/31/2018, 11:16 AM
It's stable enough, I don't know any significant bugs. Use it in production
k

kenkyee

05/31/2018, 1:08 PM
Only problem I know if is you can't ignore fields from parceling. I filed a ticket for it
g

gildor

05/31/2018, 1:16 PM
@kenkyee But you can. there is annotation @IgnoredOnParcel
a

ashishkrishnan

05/31/2018, 1:37 PM
@gildor that's amazing to know
@IgnoredOnParcel
k

kenkyee

05/31/2018, 5:56 PM
that's what I filed a bug on @gildor 🙂 https://youtrack.jetbrains.com/issue/KT-24459
doesn't work...
at least not the way I want to use it
g

gildor

06/01/2018, 1:00 AM
So, you trying to use it with constructor parameters? Yeah, it doesn’t work like that, only for class fields
k

kenkyee

06/01/2018, 2:10 AM
Yep... Would be useful for data classes
I couldn't get it to work with class fields either
g

gildor

06/01/2018, 2:12 AM
But how this suppose to work? Use default value instead? So default value would be required for @IgnoreOnParcel constructor property?
k

kenkyee

06/01/2018, 3:16 PM
yes...I would expect default value to be used if it's not parceled...it's how I'd write the code by hand.