mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 05:44:20 +01:00
Add CI check for Kotlin snippets
This commit is contained in:
@@ -5,6 +5,7 @@ org.gradle.configuration-cache=true
|
||||
|
||||
#Kotlin
|
||||
kotlin.code.style=official
|
||||
kotlin.native.ignoreDisabledTargets=true
|
||||
|
||||
#Android
|
||||
android.useAndroidX=true
|
||||
|
||||
@@ -8,7 +8,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
dependencyResolutionManagement {
|
||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
// repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
|
||||
@@ -32,6 +32,11 @@ kotlin {
|
||||
commonTest.dependencies {
|
||||
implementation(libs.kotlin.test)
|
||||
}
|
||||
val commonMain by getting {
|
||||
dependencies {
|
||||
implementation("technology.breez:breez-sdk-kmp:0.2.9")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class ConnectingLsp {
|
||||
fun list_lsps(sdk: BlockingBreezServices) {
|
||||
// ANCHOR: list-lsps
|
||||
try {
|
||||
let availableLsps = sdk.listLsps()
|
||||
val availableLsps = sdk.listLsps()
|
||||
} catch (e: Exception) {
|
||||
// Handle error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user