tschuchort
08/17/2017, 12:17 PM@Parcelize
annotation from the 1.1.4 android extensions? It doesn't seem to work for me, I always get a compiler error: error: cannot find symbol CREATOR = null
kingsley
08/17/2017, 12:36 PMkotlin-android-extensions
plugin? And enable experimental extensions?tschuchort
08/17/2017, 1:02 PMsashjakk
08/17/2017, 1:07 PMkingsley
08/17/2017, 1:07 PMapply plugin: 'kotlin-android-extensions'
androidExtensions {
experimental = true
}
And I use like this:
@Parcelize
class User(val firstName: String, val lastName: String) : Parcelable
Issues:
1. Generated code doesn’t currently take nullability into consideration
2. There’s currently no way to specify custom serializers, you’d have to resort to doing the whole thing manually
But of course, it’s the initial release and it’s still experimental, so this is okaytschuchort
08/17/2017, 1:14 PMkingsley
08/17/2017, 2:20 PM