mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
Extract Kotlin snippets
This commit is contained in:
49
snippets/kotlin_mpp_lib/shared/build.gradle.kts
Normal file
49
snippets/kotlin_mpp_lib/shared/build.gradle.kts
Normal 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:+")
|
||||
}
|
||||
Reference in New Issue
Block a user