2024-09-19 15:05:06 +00:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.kotlinMultiplatform)
|
|
|
|
|
|
|
|
alias(libs.plugins.androidLibrary)
|
|
|
|
|
|
|
|
alias(libs.plugins.sqldelight)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvmToolchain(11)
|
|
|
|
|
|
|
|
jvm()
|
|
|
|
|
|
|
|
js {
|
|
|
|
moduleName = "BankingPersistence"
|
|
|
|
binaries.executable()
|
|
|
|
|
|
|
|
browser()
|
|
|
|
}
|
|
|
|
|
|
|
|
androidTarget {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
listOf(
|
|
|
|
iosX64(),
|
|
|
|
iosArm64(),
|
|
|
|
iosSimulatorArm64()
|
|
|
|
).forEach { iosTarget ->
|
|
|
|
iosTarget.binaries.framework {
|
2024-09-19 16:52:55 +00:00
|
|
|
baseName = "BankingPersistence"
|
|
|
|
isStatic = true
|
2024-09-19 15:05:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
applyDefaultHierarchyTemplate()
|
|
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
commonMain.dependencies {
|
2024-09-19 16:52:55 +00:00
|
|
|
implementation(libs.banking.client.model)
|
2024-10-20 09:23:54 +00:00
|
|
|
implementation(libs.fints4k.banking.client)
|
2024-09-19 16:52:55 +00:00
|
|
|
implementation(libs.kotlinx.datetime)
|
|
|
|
|
2024-09-19 15:05:06 +00:00
|
|
|
implementation(libs.sqldelight.runtime)
|
|
|
|
implementation(libs.sqldelight.coroutines.extensions)
|
|
|
|
implementation(libs.sqldelight.paging.extensions)
|
2024-09-19 16:52:55 +00:00
|
|
|
|
|
|
|
implementation(libs.klf)
|
2024-09-19 15:05:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
commonTest.dependencies {
|
|
|
|
implementation(libs.kotlin.test)
|
|
|
|
|
|
|
|
implementation(libs.coroutines.test)
|
|
|
|
}
|
|
|
|
|
2024-09-19 16:52:55 +00:00
|
|
|
jvmMain.dependencies {
|
|
|
|
implementation(libs.sqldelight.sqlite.driver)
|
2024-09-19 15:05:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jvmTest.dependencies {
|
|
|
|
implementation(libs.kotlin.test.junit)
|
|
|
|
}
|
|
|
|
|
2024-09-19 16:52:55 +00:00
|
|
|
androidMain.dependencies {
|
|
|
|
implementation(libs.sqldelight.android.driver)
|
|
|
|
}
|
|
|
|
|
|
|
|
iosMain.dependencies {
|
|
|
|
implementation(libs.sqldelight.native.driver)
|
2024-09-19 15:05:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sqldelight {
|
|
|
|
databases {
|
|
|
|
create("BankmeisterDb") {
|
|
|
|
packageName.set("net.codinux.banking.persistence")
|
|
|
|
generateAsync = true
|
|
|
|
|
|
|
|
schemaOutputDirectory = file("src/commonMain/sqldelight/databases")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
namespace = "net.codinux.banking.persistence"
|
|
|
|
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
|
|
|
|
|
|
|
// sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
consumerProguardFiles("consumer-rules.pro")
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
isMinifyEnabled = false
|
|
|
|
// proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
}
|
|
|
|
}
|