-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to skeo and prepare for k2 compiler
- Loading branch information
Showing
38 changed files
with
112 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
...hared/src/commonMain/kotlin/dev/datlag/burningseries/shared/ui/navigation/ScreenConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
package dev.datlag.burningseries.shared.ui.navigation | ||
|
||
import com.arkivanov.essenty.parcelable.Parcelable | ||
import com.arkivanov.essenty.parcelable.Parcelize | ||
import dev.datlag.burningseries.model.Series | ||
import dev.datlag.burningseries.model.Stream | ||
import dev.datlag.skeo.Stream | ||
import kotlinx.serialization.Serializable | ||
|
||
@Parcelize | ||
sealed class ScreenConfig : Parcelable { | ||
@Serializable | ||
sealed class ScreenConfig { | ||
|
||
@Parcelize | ||
data object Home : ScreenConfig(), Parcelable | ||
@Serializable | ||
data object Home : ScreenConfig() | ||
|
||
@Parcelize | ||
@Serializable | ||
data class Video( | ||
val schemeKey: String, | ||
val series: Series, | ||
val episode: Series.Episode, | ||
val streams: List<Stream> | ||
) : ScreenConfig(), Parcelable | ||
) : ScreenConfig() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 9 additions & 10 deletions
19
app/shared/src/commonMain/kotlin/dev/datlag/burningseries/shared/ui/screen/initial/View.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
package dev.datlag.burningseries.shared.ui.screen.initial | ||
|
||
import com.arkivanov.essenty.parcelable.Parcelable | ||
import com.arkivanov.essenty.parcelable.Parcelize | ||
import kotlinx.serialization.Serializable | ||
|
||
@Parcelize | ||
sealed class View : Parcelable { | ||
@Serializable | ||
sealed class View { | ||
|
||
@Parcelize | ||
data object Home : View(), Parcelable | ||
@Serializable | ||
data object Home : View() | ||
|
||
@Parcelize | ||
data object Favorite : View(), Parcelable | ||
@Serializable | ||
data object Favorite : View() | ||
|
||
@Parcelize | ||
data object Search : View(), Parcelable | ||
@Serializable | ||
data object Search : View() | ||
} |
11 changes: 5 additions & 6 deletions
11
...nMain/kotlin/dev/datlag/burningseries/shared/ui/screen/initial/favorite/FavoriteConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
package dev.datlag.burningseries.shared.ui.screen.initial.favorite | ||
|
||
import com.arkivanov.essenty.parcelable.Parcelable | ||
import com.arkivanov.essenty.parcelable.Parcelize | ||
import kotlinx.serialization.Serializable | ||
import dev.datlag.burningseries.database.Series as DBSeries | ||
|
||
@Parcelize | ||
sealed class FavoriteConfig : Parcelable { | ||
@Parcelize | ||
@Serializable | ||
sealed class FavoriteConfig { | ||
@Serializable | ||
data class Series( | ||
val title: String, | ||
val href: String, | ||
val coverHref: String? | ||
) : FavoriteConfig(), Parcelable { | ||
) : FavoriteConfig() { | ||
constructor(item: DBSeries) : this(item.title, item.href, item.coverHref) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
...rc/commonMain/kotlin/dev/datlag/burningseries/shared/ui/screen/initial/home/HomeConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
...ommonMain/kotlin/dev/datlag/burningseries/shared/ui/screen/initial/search/SearchConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
package dev.datlag.burningseries.shared.ui.screen.initial.search | ||
|
||
import com.arkivanov.essenty.parcelable.Parcelable | ||
import com.arkivanov.essenty.parcelable.Parcelize | ||
import dev.datlag.burningseries.model.Genre | ||
import kotlinx.serialization.Serializable | ||
|
||
@Parcelize | ||
sealed class SearchConfig : Parcelable { | ||
@Parcelize | ||
@Serializable | ||
sealed class SearchConfig { | ||
@Serializable | ||
data class Series( | ||
val title: String, | ||
val href: String, | ||
) : SearchConfig(), Parcelable { | ||
) : SearchConfig() { | ||
constructor(item: Genre.Item) : this(item.title, item.href) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 11 additions & 12 deletions
23
...ommonMain/kotlin/dev/datlag/burningseries/shared/ui/screen/initial/series/DialogConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
package dev.datlag.burningseries.shared.ui.screen.initial.series | ||
|
||
import com.arkivanov.essenty.parcelable.Parcelable | ||
import com.arkivanov.essenty.parcelable.Parcelize | ||
import dev.datlag.burningseries.model.Series | ||
import kotlinx.serialization.Serializable | ||
|
||
@Parcelize | ||
sealed class DialogConfig : Parcelable { | ||
@Serializable | ||
sealed class DialogConfig { | ||
|
||
@Parcelize | ||
@Serializable | ||
data class Season( | ||
val selected: Series.Season, | ||
val seasons: List<Series.Season> | ||
) : DialogConfig(), Parcelable | ||
) : DialogConfig() | ||
|
||
@Parcelize | ||
@Serializable | ||
data class Language( | ||
val selected: Series.Language, | ||
val languages: List<Series.Language> | ||
) : DialogConfig(), Parcelable | ||
) : DialogConfig() | ||
|
||
@Parcelize | ||
@Serializable | ||
data class StreamUnavailable( | ||
val series: Series, | ||
val episode: Series.Episode | ||
) : DialogConfig(), Parcelable | ||
) : DialogConfig() | ||
|
||
@Parcelize | ||
@Serializable | ||
data class Activate( | ||
val series: Series, | ||
val episode: Series.Episode | ||
) : DialogConfig(), Parcelable | ||
) : DialogConfig() | ||
} |
11 changes: 5 additions & 6 deletions
11
...ommonMain/kotlin/dev/datlag/burningseries/shared/ui/screen/initial/series/SeriesConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
package dev.datlag.burningseries.shared.ui.screen.initial.series | ||
|
||
import com.arkivanov.essenty.parcelable.Parcelable | ||
import com.arkivanov.essenty.parcelable.Parcelize | ||
import dev.datlag.burningseries.model.Series | ||
import kotlinx.serialization.Serializable | ||
|
||
@Parcelize | ||
sealed class SeriesConfig : Parcelable { | ||
@Serializable | ||
sealed class SeriesConfig { | ||
|
||
@Parcelize | ||
@Serializable | ||
data class Activate( | ||
val series: Series, | ||
val episode: Series.Episode | ||
) : SeriesConfig(), Parcelable | ||
) : SeriesConfig() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.