Last active
October 17, 2022 22:55
-
-
Save realityexpander/e0040ff381366474546c8987c14198c6 to your computer and use it in GitHub Desktop.
for KMM @TypeParceler article
This file contains hidden or 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
// iosMain/…/Platform.kt | |
import kotlinx.datetime.LocalDateTime | |
// Note: no need to define CommonParcelize here (bc its @OptionalExpectation) | |
actual interface CommonParcelable // not used on iOS | |
// Note: no need to define CommonTypeParceler<T,P : CommonParceler<in T>> here bc its an @OptionalExpectation | |
actual interface CommonParceler<T> // not used on iOS | |
actual object LocalDateTimeParceler : CommonParceler<LocalDateTime> // not used on iOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See my sample project here: https://github.com/realityexpander/NoteAppKMM