83 lines
1.8 KiB
Kotlin
83 lines
1.8 KiB
Kotlin
// import org.jetbrains.compose.compose
|
|
|
|
repositories {
|
|
google()
|
|
}
|
|
|
|
plugins {
|
|
kotlin("multiplatform")
|
|
id("com.android.library")
|
|
id("com.squareup.sqldelight")
|
|
}
|
|
|
|
group = "com.linuxcommandlibrary"
|
|
version = "1.0"
|
|
|
|
kotlin {
|
|
android()
|
|
jvm("desktop") {
|
|
compilations.all {
|
|
kotlinOptions.jvmTarget = "17"
|
|
}
|
|
}
|
|
sourceSets {
|
|
val commonMain by getting {
|
|
dependencies {
|
|
|
|
}
|
|
}
|
|
val commonTest by getting {
|
|
dependencies {
|
|
implementation(kotlin("test"))
|
|
}
|
|
}
|
|
val androidMain by getting {
|
|
dependencies {
|
|
api("androidx.appcompat:appcompat:1.6.1")
|
|
api("androidx.core:core-ktx:1.13.1")
|
|
implementation("com.squareup.sqldelight:android-driver:1.5.4")
|
|
}
|
|
}
|
|
val desktopMain by getting {
|
|
dependencies {
|
|
implementation("com.squareup.sqldelight:sqlite-driver:1.5.4")
|
|
}
|
|
resources.setSrcDirs(listOf("../assets", "../cli/src/jvmMain/resources"))
|
|
}
|
|
val desktopTest by getting
|
|
}
|
|
}
|
|
|
|
|
|
android {
|
|
compileSdk = 34
|
|
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
defaultConfig {
|
|
minSdk = 24
|
|
targetSdk = 34
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.14"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
lint {
|
|
abortOnError = false
|
|
}
|
|
namespace = "com.linuxcommandlibrary.shared"
|
|
}
|
|
|
|
sqldelight {
|
|
database("CommandDatabase") {
|
|
packageName = "com.linuxcommandlibrary"
|
|
}
|
|
} |