mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-04-14 19:56:32 +00:00
64 lines
No EOL
1.6 KiB
Text
64 lines
No EOL
1.6 KiB
Text
plugins {
|
|
kotlin("multiplatform")
|
|
id("com.android.library")
|
|
id("kotlin-parcelize")
|
|
id("kotlin-kapt")
|
|
}
|
|
|
|
kotlin {
|
|
android()
|
|
|
|
listOf(
|
|
iosX64(),
|
|
iosArm64(),
|
|
iosSimulatorArm64()
|
|
).forEach {
|
|
it.binaries.framework {
|
|
baseName = "shared"
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
|
|
implementation("io.realm.kotlin:library-base:1.0.2")
|
|
}
|
|
}
|
|
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 {
|
|
compileSdk = 33
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
defaultConfig {
|
|
minSdk = 21
|
|
targetSdk = 33
|
|
}
|
|
namespace = "com.habitrpg.shared.habitica"
|
|
} |