mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 19:57:04 +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 {
|
plugins {
|
||||||
kotlin("multiplatform")
|
kotlin("multiplatform")
|
||||||
kotlin("plugin.serialization")
|
kotlin("plugin.serialization")
|
||||||
|
id("com.android.library")
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
android()
|
||||||
jvm { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
jvm { compilations.all { kotlinOptions.jvmTarget = "11" } }
|
||||||
sourceSets["commonMain"].apply {
|
sourceSets["commonMain"].apply {
|
||||||
dependencies { implementation(libs.kotlinx.serialization.core) }
|
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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
1
model/src/androidMain/AndroidManifest.xml
Normal file
1
model/src/androidMain/AndroidManifest.xml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<manifest package="dev.msfjarvis.claw.model" />
|
Loading…
Add table
Add a link
Reference in a new issue