Skip to content

Commit

Permalink
Replace identical InstantSerializer with KotlinX datetime default s…
Browse files Browse the repository at this point in the history
…erializer
  • Loading branch information
SimonMarquis committed Aug 24, 2023
1 parent 5b79869 commit c98e623
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package com.google.samples.apps.nowinandroid.core.network.model

import com.google.samples.apps.nowinandroid.core.model.data.NewsResource
import com.google.samples.apps.nowinandroid.core.network.model.util.InstantSerializer
import kotlinx.datetime.Instant
import kotlinx.serialization.Serializable

Expand All @@ -31,7 +30,6 @@ data class NetworkNewsResource(
val content: String,
val url: String,
val headerImageUrl: String,
@Serializable(InstantSerializer::class)
val publishDate: Instant,
val type: String,
val topics: List<String> = listOf(),
Expand All @@ -47,7 +45,6 @@ data class NetworkNewsResourceExpanded(
val content: String,
val url: String,
val headerImageUrl: String,
@Serializable(InstantSerializer::class)
val publishDate: Instant,
val type: String,
val topics: List<NetworkTopic> = listOf(),
Expand Down

This file was deleted.

0 comments on commit c98e623

Please sign in to comment.