From 6d665a56de9de017a95fbc8348a16ed5d8c0e5dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Fri, 17 May 2024 16:16:44 +0200 Subject: [PATCH 1/3] Add missing fields to `Chapter` --- .../srg/dataProvider/integrationlayer/data/remote/Chapter.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/Chapter.kt b/data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/Chapter.kt index b839582..dfe7f25 100644 --- a/data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/Chapter.kt +++ b/data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/Chapter.kt @@ -1,4 +1,5 @@ @file:UseSerializers(DateSerializer::class) + package ch.srg.dataProvider.integrationlayer.data.remote import ch.srg.dataProvider.integrationlayer.data.ImageUrl @@ -40,6 +41,8 @@ data class Chapter( override val socialCountList: List? = null, override val displayable: Boolean = false, override val fullLengthUrn: String? = null, + val fullLengthMarkIn: Long? = null, + val fullLengthMarkOut: Long? = null, override val eventData: String? = null, override val subtitleList: List? = null, @SerialName("analyticsData") From 7353f14b71312dee885b478ca903dbb268e34210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Fri, 17 May 2024 16:17:15 +0200 Subject: [PATCH 2/3] Make `TimeInterval` fields nullable --- .../integrationlayer/data/remote/TimeInterval.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/TimeInterval.kt b/data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/TimeInterval.kt index 2e69ae5..4313405 100644 --- a/data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/TimeInterval.kt +++ b/data/src/main/java/ch/srg/dataProvider/integrationlayer/data/remote/TimeInterval.kt @@ -8,7 +8,11 @@ import kotlinx.serialization.Serializable * License information is available from the LICENSE file. */ @Serializable -data class TimeInterval(val type: Type, val markIn: Long, val markOut: Long) { +data class TimeInterval( + val type: Type?, + val markIn: Long?, + val markOut: Long?, +) { enum class Type { OPENING_CREDITS, CLOSING_CREDITS From 9bfc0165f007d57354e93f86191d56245fbd67f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Fri, 17 May 2024 16:17:29 +0200 Subject: [PATCH 3/3] Bump data provider version to 0.10.0 --- buildSrc/src/main/kotlin/Config.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/kotlin/Config.kt b/buildSrc/src/main/kotlin/Config.kt index af996b2..d5ba0ea 100644 --- a/buildSrc/src/main/kotlin/Config.kt +++ b/buildSrc/src/main/kotlin/Config.kt @@ -4,8 +4,8 @@ object Config { const val minSdk = 21 const val major = 0 - const val minor = 9 - const val patch = 2 + const val minor = 10 + const val patch = 0 const val versionName = "$major.$minor.$patch" const val maven_group = "ch.srg.data.provider"