mirror of https://github.com/tasks/tasks
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.1 KiB
Kotlin
72 lines
2.1 KiB
Kotlin
@file:OptIn(ExperimentalKotlinGradlePluginApi::class)
|
|
|
|
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlin.multiplatform)
|
|
alias(libs.plugins.android.library)
|
|
alias(libs.plugins.jetbrains.compose)
|
|
alias(libs.plugins.kotlin.compose.compiler)
|
|
alias(libs.plugins.kotlin.parcelize)
|
|
alias(libs.plugins.kotlin.serialization)
|
|
}
|
|
|
|
kotlin {
|
|
applyDefaultHierarchyTemplate()
|
|
androidTarget {
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.JVM_17)
|
|
freeCompilerArgs.addAll("-P", "plugin:org.jetbrains.kotlin.parcelize:additionalAnnotation=org.tasks.CommonParcelize")
|
|
}
|
|
}
|
|
jvm()
|
|
sourceSets {
|
|
androidMain.dependencies {
|
|
implementation(libs.androidx.ui.tooling.preview.android)
|
|
}
|
|
commonMain.dependencies {
|
|
implementation(projects.data)
|
|
implementation(compose.components.resources)
|
|
implementation(compose.foundation)
|
|
implementation(compose.material3)
|
|
implementation(compose.materialIconsExtended)
|
|
implementation(compose.runtime)
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
|
implementation(libs.kermit)
|
|
implementation(libs.kotlinx.datetime)
|
|
implementation(libs.kotlinx.immutable)
|
|
implementation(libs.kotlinx.serialization)
|
|
}
|
|
}
|
|
task("testClasses")
|
|
}
|
|
|
|
compose.resources {
|
|
publicResClass = true
|
|
generateResClass = always
|
|
}
|
|
|
|
android {
|
|
namespace = "org.tasks.kmp"
|
|
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
targetSdk = libs.versions.android.targetSdk.get().toInt()
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
dependencies {
|
|
debugImplementation(compose.uiTooling)
|
|
}
|
|
}
|