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 {
15
15
16
16
plugins {
17
17
id(" com.android.application" )
18
- id(" org.jetbrains.kotlin.android" )
19
18
id(" kotlin-android" )
20
19
id(" kotlin-kapt" )
20
+ id(" kotlin-parcelize" )
21
21
}
22
22
23
23
android {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 15
15
*/
16
16
package com.fernandocejas.sample.features.movies.ui
17
17
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
21
20
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