File tree Expand file tree Collapse file tree 3 files changed +5
-111
lines changed
src/main/kotlin/com/fernandocejas/sample Expand file tree Collapse file tree 3 files changed +5
-111
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ class AppConfig {
1515
1616plugins {
1717 id(" com.android.application" )
18- id(" org.jetbrains.kotlin.android" )
1918 id(" kotlin-android" )
2019 id(" kotlin-kapt" )
20+ id(" kotlin-parcelize" )
2121}
2222
2323android {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1515 */
1616package com.fernandocejas.sample.features.movies.ui
1717
18- import android.os.Parcel
19- import com.fernandocejas.sample.core.platform.KParcelable
20- import com.fernandocejas.sample.core.platform.parcelableCreator
18+ import android.os.Parcelable
19+ import kotlinx.parcelize.Parcelize
2120
22- data class MovieView (val id : Int , val poster : String ) : KParcelable {
23- companion object {
24- @JvmField
25- val CREATOR = parcelableCreator(::MovieView )
26- }
27-
28- constructor (parcel: Parcel ) : this (parcel.readInt(), parcel.readString()!! )
29-
30- override fun writeToParcel (dest : Parcel , flags : Int ) {
31- with (dest) {
32- writeInt(id)
33- writeString(poster)
34- }
35- }
36- }
21+ @Parcelize
22+ data class MovieView (val id : Int , val poster : String ) : Parcelable
You can’t perform that action at this time.
0 commit comments