2022-08-22 12:55:50 +00:00
|
|
|
plugins {
|
|
|
|
|
kotlin("multiplatform")
|
|
|
|
|
id("com.android.library")
|
|
|
|
|
id("kotlin-parcelize")
|
2022-08-30 11:08:27 +00:00
|
|
|
id("kotlin-kapt")
|
2022-08-22 12:55:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
android()
|
2023-02-13 13:24:37 +00:00
|
|
|
|
2022-08-22 12:55:50 +00:00
|
|
|
listOf(
|
|
|
|
|
iosX64(),
|
|
|
|
|
iosArm64(),
|
|
|
|
|
iosSimulatorArm64()
|
|
|
|
|
).forEach {
|
|
|
|
|
it.binaries.framework {
|
|
|
|
|
baseName = "shared"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
val commonMain by getting {
|
|
|
|
|
dependencies {
|
2022-11-15 15:06:43 +00:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
|
2022-08-22 12:55:50 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
val commonTest by getting {
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(kotlin("test"))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
val androidMain by getting
|
|
|
|
|
val androidTest by getting
|
|
|
|
|
val iosX64Main by getting
|
|
|
|
|
val iosArm64Main by getting
|
|
|
|
|
val iosSimulatorArm64Main by getting
|
|
|
|
|
val iosMain by creating {
|
|
|
|
|
dependsOn(commonMain)
|
|
|
|
|
iosX64Main.dependsOn(this)
|
|
|
|
|
iosArm64Main.dependsOn(this)
|
|
|
|
|
iosSimulatorArm64Main.dependsOn(this)
|
|
|
|
|
}
|
|
|
|
|
val iosX64Test by getting
|
|
|
|
|
val iosArm64Test by getting
|
|
|
|
|
val iosSimulatorArm64Test by getting
|
|
|
|
|
val iosTest by creating {
|
|
|
|
|
dependsOn(commonTest)
|
|
|
|
|
iosX64Test.dependsOn(this)
|
|
|
|
|
iosArm64Test.dependsOn(this)
|
|
|
|
|
iosSimulatorArm64Test.dependsOn(this)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
2022-10-12 15:50:02 +00:00
|
|
|
compileSdk = 33
|
2022-08-22 12:55:50 +00:00
|
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
|
|
|
defaultConfig {
|
|
|
|
|
minSdk = 21
|
2022-10-12 15:50:02 +00:00
|
|
|
targetSdk = 33
|
2022-08-22 12:55:50 +00:00
|
|
|
}
|
2023-01-09 15:35:04 +00:00
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-26 11:05:22 +00:00
|
|
|
namespace = "com.habitrpg.shared.habitica"
|
2023-02-13 13:24:37 +00:00
|
|
|
}
|