Skip to content

Instantly share code, notes, and snippets.

@realityexpander
Last active October 17, 2022 22:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realityexpander/391578a2001b8bcc9aea479118b87daf to your computer and use it in GitHub Desktop.
Save realityexpander/391578a2001b8bcc9aea479118b87daf to your computer and use it in GitHub Desktop.
for KMM @TypeParceler article
// build.gradle.kts(:shared
plugins {
kotlin("multiplatform")
id("com.android.library")
id("kotlin-parcelize") // add this
id("kotlin-kapt") // add this
//…rest of defintions…
}
kotlin {
android()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "shared"
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0") // LocalDateTime library written in Kotlin (can't use java libraries)
}
}
//…rest of definitions…
}
//…rest of definitions…
}
@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