Skip to content

Commit

Permalink
Update pillarbox-core-business/src/androidTest/java/ch/srgssr/pillarb…
Browse files Browse the repository at this point in the history
…ox/core/business/LocalMediaCompositionDataSource.kt

Co-authored-by: Gaëtan Muller <[email protected]>
  • Loading branch information
StaehliJ and MGaetan89 authored Nov 29, 2023
1 parent bc42b0e commit 80f5324
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<MediaComposition> = jsonSerializer.decodeFromString(json)
for(mediaComposition in listMediaComposition){
val listMediaComposition: List<MediaComposition> = jsonSerializer.decodeFromString(json)
for (mediaComposition in listMediaComposition) {
localData[mediaComposition.mainChapter.urn] = mediaComposition
}
}
Expand Down

0 comments on commit 80f5324

Please sign in to comment.