-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added kotlinx-serialization plugin and also bumped Kotlin version to …
…1.3.61 given the latest serialization needs it form 0.14.0 and on https://github.com/Kotlin/kotlinx.serialization#incompatible-changes
- Loading branch information
Showing
4 changed files
with
10 additions
and
2 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
3 changes: 3 additions & 0 deletions
3
app/src/main/java/com/automattic/portkey/compose/story/Story.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,3 +1,6 @@ | ||
package com.automattic.portkey.compose.story | ||
|
||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Story(val frames: ArrayList<StoryFrameItem>) |
2 changes: 2 additions & 0 deletions
2
app/src/main/java/com/automattic/portkey/compose/story/StoryFrameItem.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,5 +1,7 @@ | ||
package com.automattic.portkey.compose.story | ||
|
||
import com.automattic.portkey.compose.story.StoryFrameItemType.IMAGE | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class StoryFrameItem(val filePath: String, val frameItemType: StoryFrameItemType = IMAGE, val name: String? = null) |
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