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")
|
2023-02-13 16:29:12 +00:00
|
|
|
id("io.kotest.multiplatform") version "5.5.5"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
mavenLocal()
|
|
|
|
|
}
|
2022-08-22 12:55:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
android()
|
2023-02-13 16:29:12 +00:00
|
|
|
ios()
|
2022-08-22 12:55:50 +00:00
|
|
|
|
|
|
|
|
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 {
|
2023-02-13 16:29:12 +00:00
|
|
|
implementation(kotlin("test")) // This brings all the platform dependencies automatically
|
2022-08-22 12:55:50 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
val androidMain by getting
|
2023-02-14 09:15:22 +00:00
|
|
|
val androidUnitTest by getting
|
2023-02-13 16:29:12 +00:00
|
|
|
val iosMain by getting
|
|
|
|
|
val iosTest by getting
|
2022-08-22 12:55:50 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
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 16:34:54 +00:00
|
|
|
}
|