Move sourceMapper to data module

This commit is contained in:
arkon
2023-03-05 12:05:48 -05:00
parent 9caa0d147b
commit 2b9acadc5b
4 changed files with 31 additions and 26 deletions

View File

@ -1,7 +1,18 @@
package tachiyomi.data.source
import tachiyomi.domain.source.model.Source
import tachiyomi.domain.source.model.SourceData
val sourceMapper: (eu.kanade.tachiyomi.source.Source) -> Source = { source ->
Source(
source.id,
source.lang,
source.name,
supportsLatest = false,
isStub = false,
)
}
val sourceDataMapper: (Long, String, String) -> SourceData = { id, lang, name ->
SourceData(id, lang, name)
}