Merge branch 'main' into ok300-bump-sdk-dependency-version

# Conflicts:
#	.github/workflows/main.yml
#	snippets/go/go.mod
#	snippets/kotlin_mpp_lib/shared/build.gradle.kts
#	snippets/python/src/send_spontaneous_payment.py
#	snippets/react-native/yarn.lock
#	snippets/rust/Cargo.lock
#	snippets/rust/Cargo.toml
#	snippets/swift/BreezSDKExamples/Package.resolved
#	snippets/swift/BreezSDKExamples/Package.swift
#	src/guide/install.md
This commit is contained in:
ok300
2024-01-30 15:59:42 +01:00
25 changed files with 364 additions and 47 deletions

View File

@@ -5,8 +5,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/breez/breez-sdk-swift",
"state" : {
"revision" : "756730450bcd7e82d89930a4fa24412059b93274",
"version" : "0.2.14"
"revision" : "73c7bf88ce51471f4a6313aa583fa1a5394442f7",
"version" : "0.2.15"
}
},
{

View File

@@ -5,10 +5,10 @@ import PackageDescription
let package = Package(
name: "BreezSDKDocs",
platforms: [.macOS(.v13)],
platforms: [.macOS(.v12)],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.3"),
.package(url: "https://github.com/breez/breez-sdk-swift", from:"0.2.14")
.package(url: "https://github.com/breez/breez-sdk-swift", from:"0.2.15")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.

View File

@@ -16,6 +16,17 @@ func sendSpontaneousPayment(sdk: BlockingBreezServices) -> SendPaymentResponse?
nodeId: "...",
amountMsat: 3_000_000))
// ANCHOR_END: send-spontaneous-payment
return response
return response
}
func sendSpontaneousPaymentWithTlvs(sdk: BlockingBreezServices) -> SendPaymentResponse? {
// ANCHOR: send-spontaneous-payment-with-tlvs
let extraTlvs = [TlvEntry(fieldNumber: 34_349_334, value: Array("Hello world!".utf8))]
let response = try? sdk.sendSpontaneousPayment(
req: SendSpontaneousPaymentRequest(
nodeId: "...",
amountMsat: 3_000_000,
extraTlvs: extraTlvs))
// ANCHOR_END: send-spontaneous-payment-with-tlvs
return response
}