Build fixes

This commit is contained in:
Jobobby04 2023-10-29 11:06:23 -04:00
parent ada9239c11
commit a4ff56e6eb
2 changed files with 13 additions and 5 deletions

View File

@ -79,7 +79,7 @@ class HistoryScreenModelStateProvider : PreviewParameterProvider<HistoryScreenMo
fun items() = sequence { fun items() = sequence {
var count = 1 var count = 1
while (true) { while (true) {
yield(randItem { it.copy(title = "Example Title $count") }) yield(randItem { it.copy(/* SY --> */ogTitle = /* SY <-- */ "Example Title $count") })
count += 1 count += 1
} }
} }
@ -91,7 +91,9 @@ class HistoryScreenModelStateProvider : PreviewParameterProvider<HistoryScreenMo
id = Random.nextLong(), id = Random.nextLong(),
chapterId = Random.nextLong(), chapterId = Random.nextLong(),
mangaId = Random.nextLong(), mangaId = Random.nextLong(),
title = "Test Title", // SY -->
ogTitle = "Test Title",
// SY <--
chapterNumber = Random.nextDouble(), chapterNumber = Random.nextDouble(),
readAt = Date.from(Instant.now()), readAt = Date.from(Instant.now()),
readDuration = Random.nextLong(), readDuration = Random.nextLong(),

View File

@ -10,7 +10,9 @@ internal class HistoryWithRelationsProvider : PreviewParameterProvider<HistoryWi
id = 1L, id = 1L,
chapterId = 2L, chapterId = 2L,
mangaId = 3L, mangaId = 3L,
title = "Test Title", // SY -->
ogTitle = "Test Title",
// SY <--
chapterNumber = 10.2, chapterNumber = 10.2,
readAt = Date(1697247357L), readAt = Date(1697247357L),
readDuration = 123L, readDuration = 123L,
@ -27,7 +29,9 @@ internal class HistoryWithRelationsProvider : PreviewParameterProvider<HistoryWi
id = 1L, id = 1L,
chapterId = 2L, chapterId = 2L,
mangaId = 3L, mangaId = 3L,
title = "Test Title", // SY -->
ogTitle = "Test Title",
// SY <--
chapterNumber = 10.2, chapterNumber = 10.2,
readAt = null, readAt = null,
readDuration = 123L, readDuration = 123L,
@ -44,7 +48,9 @@ internal class HistoryWithRelationsProvider : PreviewParameterProvider<HistoryWi
id = 1L, id = 1L,
chapterId = 2L, chapterId = 2L,
mangaId = 3L, mangaId = 3L,
title = "Test Title", // SY -->
ogTitle = "Test Title",
// SY <--
chapterNumber = -2.0, chapterNumber = -2.0,
readAt = Date(1697247357L), readAt = Date(1697247357L),
readDuration = 123L, readDuration = 123L,