Skip to content

Commit

Permalink
Replace deprecated import for kotlin Parcelize annotation (#8590)
Browse files Browse the repository at this point in the history
* replace deprecated import

* update kotlin version to 1.4.20, add kotlin-parcelize plugin

* update samples to gradle 6.8.1

* Revert "update samples to gradle 6.8.1"

This reverts commit 2f9bbe8.

* Revert "update kotlin version to 1.4.20, add kotlin-parcelize plugin"

This reverts commit 5063141.

* Add kotlin-parcelize plugin for kotlin-client
  • Loading branch information
kalinjul authored Feb 8, 2021
1 parent 75b9871 commit d57aa95
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ apply plugin: 'kotlin'
{{#moshiCodeGen}}
apply plugin: 'kotlin-kapt'
{{/moshiCodeGen}}
{{#parcelizeModels}}
apply plugin: 'kotlin-parcelize'
{{/parcelizeModels}}

repositories {
maven { url "https://repo1.maven.org/maven2" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo
{{/jackson}}
{{#parcelizeModels}}
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import kotlinx.parcelize.Parcelize

{{/parcelizeModels}}
{{/multiplatform}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#parcelizeModels}}
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import kotlinx.parcelize.Parcelize

{{/parcelizeModels}}
{{#serializableModel}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{{#parcelizeModels}}
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import kotlinx.parcelize.Parcelize
{{/parcelizeModels}}
import com.google.gson.annotations.SerializedName
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
Expand Down

0 comments on commit d57aa95

Please sign in to comment.