2022-12-20 17:41:21 +00:00
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
id("com.android.library")
|
|
|
|
kotlin("plugin.serialization")
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
2024-03-15 03:28:27 +00:00
|
|
|
androidTarget()
|
2022-12-20 17:41:21 +00:00
|
|
|
listOf(iosArm64(), iosSimulatorArm64()).forEach {
|
|
|
|
it.binaries.framework {
|
|
|
|
baseName = "Twigs"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.ktor.client.core)
|
|
|
|
implementation(libs.ktor.client.logging)
|
|
|
|
implementation(libs.ktor.client.serialization)
|
|
|
|
implementation(libs.ktor.client.content.negotiation)
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
2023-01-20 04:47:56 +00:00
|
|
|
api(libs.kotlinx.datetime)
|
2022-12-20 17:41:21 +00:00
|
|
|
implementation(libs.kotlinx.serialization.json)
|
|
|
|
api(libs.multiplatform.settings)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val commonTest by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("test"))
|
2024-03-28 03:28:52 +00:00
|
|
|
implementation(libs.kotlinx.coroutines.test)
|
2022-12-20 17:41:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.ktor.client.android)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val iosArm64Main by getting
|
|
|
|
val iosSimulatorArm64Main by getting
|
|
|
|
val iosMain by creating {
|
|
|
|
dependsOn(commonMain)
|
|
|
|
iosArm64Main.dependsOn(this)
|
|
|
|
iosSimulatorArm64Main.dependsOn(this)
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.ktor.client.ios)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
|
|
compileSdk = libs.versions.maxSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = libs.versions.minSdk.get().toInt()
|
|
|
|
}
|
|
|
|
compileOptions {
|
2024-03-15 03:28:27 +00:00
|
|
|
sourceCompatibility = project.ext["jvm"] as JavaVersion
|
|
|
|
targetCompatibility = project.ext["jvm"] as JavaVersion
|
2022-12-20 17:41:21 +00:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
consumerProguardFiles("proguard-rules.pro")
|
|
|
|
}
|
|
|
|
}
|
2024-03-15 03:28:27 +00:00
|
|
|
namespace = "com.wbrawner.twigs.android"
|
2022-12-20 17:41:21 +00:00
|
|
|
}
|