mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 16:27:06 +05:30
model: add an Android target
Without this Android Studio refuses to import this module
This commit is contained in:
parent
7db06f9b93
commit
d7bea3fde4
2 changed files with 13 additions and 0 deletions
|
@ -1,11 +1,23 @@
|
|||
plugins {
|
||||
kotlin("multiplatform")
|
||||
kotlin("plugin.serialization")
|
||||
id("com.android.library")
|
||||
}
|
||||
|
||||
kotlin {
|
||||
android()
|
||||
jvm { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
||||
sourceSets["commonMain"].apply {
|
||||
dependencies { implementation(libs.kotlinx.serialization.core) }
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = 31
|
||||
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
||||
defaultConfig {
|
||||
minSdk = 23
|
||||
targetSdk = 31
|
||||
consumerProguardFiles("consumer-rules.pro")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue