mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-12-18 11:12:27 +03:00
Suppress some deprecation warnings
This commit is contained in:
parent
628c525599
commit
91fa1ec6b2
2 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,7 @@ object Migrations {
|
||||||
}
|
}
|
||||||
if (oldVersion < 44) {
|
if (oldVersion < 44) {
|
||||||
// Reset sorting preference if using removed sort by source
|
// Reset sorting preference if using removed sort by source
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
if (preferences.librarySortingMode().get() == LibrarySort.SOURCE) {
|
if (preferences.librarySortingMode().get() == LibrarySort.SOURCE) {
|
||||||
preferences.librarySortingMode().set(LibrarySort.ALPHA)
|
preferences.librarySortingMode().set(LibrarySort.ALPHA)
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,7 @@ interface Source : tachiyomi.source.Source {
|
||||||
/**
|
/**
|
||||||
* [1.x API] Get the updated details for a manga.
|
* [1.x API] Get the updated details for a manga.
|
||||||
*/
|
*/
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
override suspend fun getMangaDetails(manga: MangaInfo): MangaInfo {
|
override suspend fun getMangaDetails(manga: MangaInfo): MangaInfo {
|
||||||
return fetchMangaDetails(manga.toSManga()).awaitSingle()
|
return fetchMangaDetails(manga.toSManga()).awaitSingle()
|
||||||
.toMangaInfo()
|
.toMangaInfo()
|
||||||
|
@ -70,6 +71,7 @@ interface Source : tachiyomi.source.Source {
|
||||||
/**
|
/**
|
||||||
* [1.x API] Get all the available chapters for a manga.
|
* [1.x API] Get all the available chapters for a manga.
|
||||||
*/
|
*/
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
override suspend fun getChapterList(manga: MangaInfo): List<ChapterInfo> {
|
override suspend fun getChapterList(manga: MangaInfo): List<ChapterInfo> {
|
||||||
return fetchChapterList(manga.toSManga()).awaitSingle()
|
return fetchChapterList(manga.toSManga()).awaitSingle()
|
||||||
.map { it.toChapterInfo() }
|
.map { it.toChapterInfo() }
|
||||||
|
@ -78,6 +80,7 @@ interface Source : tachiyomi.source.Source {
|
||||||
/**
|
/**
|
||||||
* [1.x API] Get the list of pages a chapter has.
|
* [1.x API] Get the list of pages a chapter has.
|
||||||
*/
|
*/
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
override suspend fun getPageList(chapter: ChapterInfo): List<tachiyomi.source.model.Page> {
|
override suspend fun getPageList(chapter: ChapterInfo): List<tachiyomi.source.model.Page> {
|
||||||
return fetchPageList(chapter.toSChapter()).awaitSingle()
|
return fetchPageList(chapter.toSChapter()).awaitSingle()
|
||||||
.map { it.toPageUrl() }
|
.map { it.toPageUrl() }
|
||||||
|
|
Loading…
Reference in a new issue