Skip to content

Instantly share code, notes, and snippets.

@realityexpander
Last active October 17, 2022 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realityexpander/e0040ff381366474546c8987c14198c6 to your computer and use it in GitHub Desktop.
Save realityexpander/e0040ff381366474546c8987c14198c6 to your computer and use it in GitHub Desktop.
for KMM @TypeParceler article
// 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
@realityexpander
Copy link
Author

See my sample project here: https://github.com/realityexpander/NoteAppKMM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment