Extract Kotlin snippets

This commit is contained in:
ok300
2023-11-14 20:51:01 +01:00
parent b541595840
commit 786a94bf69
38 changed files with 841 additions and 221 deletions

View File

@@ -0,0 +1,49 @@
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidLibrary)
}
kotlin {
androidTarget {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "shared"
isStatic = true
}
}
sourceSets {
commonMain.dependencies {
//put your multiplatform dependencies here
implementation(libs.breez)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
}
}
}
android {
namespace = "com.example.kotlinmpplib"
compileSdk = 34
defaultConfig {
minSdk = 34
}
}
dependencies {
implementation(libs.breez)
implementation("androidx.core:core-ktx:+")
}