2022-03-04 01:55:41 +00:00
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
id("com.android.library")
|
2022-10-19 01:29:37 +00:00
|
|
|
kotlin("plugin.serialization")
|
2023-08-23 04:13:17 +00:00
|
|
|
id("org.jetbrains.compose")
|
2022-03-04 01:55:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
android()
|
2022-10-19 01:29:37 +00:00
|
|
|
listOf(iosArm64(), iosSimulatorArm64()).forEach {
|
2022-03-04 01:55:41 +00:00
|
|
|
it.binaries.framework {
|
|
|
|
baseName = "Pihelper"
|
|
|
|
}
|
|
|
|
}
|
2023-08-23 04:13:17 +00:00
|
|
|
jvm("desktop")
|
2022-03-04 01:55:41 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
val commonMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.ktor.client.core)
|
2023-08-23 04:13:17 +00:00
|
|
|
implementation(libs.ktor.client.cio)
|
2022-03-04 01:55:41 +00:00
|
|
|
implementation(libs.ktor.client.logging)
|
|
|
|
implementation(libs.ktor.client.serialization)
|
|
|
|
implementation(libs.ktor.client.content.negotiation)
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
2022-12-15 14:56:05 +00:00
|
|
|
implementation(libs.kotlinx.datetime)
|
2022-03-04 01:55:41 +00:00
|
|
|
implementation(libs.kotlinx.serialization.json)
|
2022-03-13 04:23:35 +00:00
|
|
|
api(libs.multiplatform.settings)
|
2023-08-23 04:13:17 +00:00
|
|
|
api(compose.runtime)
|
|
|
|
api(compose.foundation)
|
|
|
|
api(compose.material3)
|
|
|
|
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
|
|
|
|
implementation(compose.components.resources)
|
2022-03-04 01:55:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val androidMain by getting {
|
|
|
|
dependencies {
|
2022-12-24 04:28:14 +00:00
|
|
|
implementation(libs.plausible)
|
2022-03-04 01:55:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val iosArm64Main by getting
|
|
|
|
val iosSimulatorArm64Main by getting
|
|
|
|
val iosMain by creating {
|
|
|
|
dependsOn(commonMain)
|
|
|
|
iosArm64Main.dependsOn(this)
|
|
|
|
iosSimulatorArm64Main.dependsOn(this)
|
|
|
|
dependencies {
|
2023-08-23 04:13:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val desktopMain by getting {
|
|
|
|
dependencies {
|
|
|
|
implementation(compose.desktop.common)
|
|
|
|
implementation(compose.uiTooling)
|
2022-03-04 01:55:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
|
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
|
|
compileSdk = libs.versions.maxSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = libs.versions.minSdk.get().toInt()
|
|
|
|
targetSdk = libs.versions.maxSdk.get().toInt()
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
2022-06-25 19:18:08 +00:00
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
consumerProguardFiles("proguard-rules.pro")
|
|
|
|
}
|
|
|
|
}
|
2024-11-16 22:23:43 +00:00
|
|
|
namespace = "com.wbrawner.pihelper.shared"
|
2022-03-04 01:55:41 +00:00
|
|
|
}
|