From 80f53244ebcbc99153d6671b7661da8b9af0221c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaquim=20St=C3=A4hli?= Date: Wed, 29 Nov 2023 11:43:51 +0100 Subject: [PATCH] Update pillarbox-core-business/src/androidTest/java/ch/srgssr/pillarbox/core/business/LocalMediaCompositionDataSource.kt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gaƫtan Muller --- .../core/business/LocalMediaCompositionDataSource.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillarbox-core-business/src/androidTest/java/ch/srgssr/pillarbox/core/business/LocalMediaCompositionDataSource.kt b/pillarbox-core-business/src/androidTest/java/ch/srgssr/pillarbox/core/business/LocalMediaCompositionDataSource.kt index f1b8606de..295da0827 100644 --- a/pillarbox-core-business/src/androidTest/java/ch/srgssr/pillarbox/core/business/LocalMediaCompositionDataSource.kt +++ b/pillarbox-core-business/src/androidTest/java/ch/srgssr/pillarbox/core/business/LocalMediaCompositionDataSource.kt @@ -15,8 +15,8 @@ class LocalMediaCompositionDataSource(context: Context) : MediaCompositionDataSo init { val jsonSerializer = Json { ignoreUnknownKeys = true } val json = context.assets.open("media-compositions.json").bufferedReader().use { it.readText() } - val listMediaComposition : List = jsonSerializer.decodeFromString(json) - for(mediaComposition in listMediaComposition){ + val listMediaComposition: List = jsonSerializer.decodeFromString(json) + for (mediaComposition in listMediaComposition) { localData[mediaComposition.mainChapter.urn] = mediaComposition } }