habitica-android/shared/build.gradle.kts

61 lines
1.2 KiB
Text
Raw Normal View History

plugins {
kotlin("multiplatform")
id("com.android.library")
id("kotlin-parcelize")
2022-08-30 11:08:27 +00:00
id("kotlin-kapt")
2023-08-08 14:40:00 +00:00
id("io.kotest.multiplatform") version "5.6.2"
2023-02-13 16:29:12 +00:00
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
}
}
kotlin {
android()
2024-04-23 15:34:59 +00:00
iosX64()
iosArm64()
iosSimulatorArm64()
2024-03-28 08:31:23 +00:00
js(IR) {
browser()
nodejs()
binaries.library()
}
sourceSets {
2024-04-23 15:34:59 +00:00
commonMain {
dependencies {
2023-04-27 09:25:23 +00:00
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${rootProject.extra.get("coroutines_version")}")
}
}
2024-04-23 15:34:59 +00:00
commonTest {
dependencies {
2023-02-13 16:29:12 +00:00
implementation(kotlin("test")) // This brings all the platform dependencies automatically
}
}
}
}
android {
2024-04-23 15:34:59 +00:00
compileSdk = rootProject.extra.get("target_sdk") as Int
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = 21
}
2023-01-09 15:35:04 +00:00
buildTypes {
release {
}
}
2023-04-27 09:25:23 +00:00
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
2022-09-26 11:05:22 +00:00
namespace = "com.habitrpg.shared.habitica"
2023-02-13 16:34:54 +00:00
}