Skip to content

Commit

Permalink
Update Swift bindings to version 0.2.2-dev3
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK release tagger committed Aug 15, 2024
1 parent fc96477 commit 4631afc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion BreezSDKLiquid.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "BreezSDKLiquid"
spec.version = "0.2.2-dev2"
spec.version = "0.2.2-dev3"
spec.license = { :type => "MIT" }
spec.summary = "Swift bindings to the Breez Liquid SDK"
spec.homepage = "https://breez.technology"
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let package = Package(
.library(name: "BreezSDKLiquid", targets: ["breez_sdk_liquidFFI", "BreezSDKLiquid"]),
],
targets: [
.binaryTarget(name: "breez_sdk_liquidFFI", url: "https://github.com/breez/breez-sdk-liquid-swift/releases/download/0.2.2-dev2/breez_sdk_liquidFFI.xcframework.zip", checksum: "f2ed50740d616869b1ba907facf813ee0b516c26a1aa846c457b2a7dc9e74073"),
.binaryTarget(name: "breez_sdk_liquidFFI", url: "https://github.com/breez/breez-sdk-liquid-swift/releases/download/0.2.2-dev3/breez_sdk_liquidFFI.xcframework.zip", checksum: "b9e5aac6d6b7e321180884ed8b604b070cfd898865cc48273826f95679fd1858"),
.target(name: "BreezSDKLiquid", dependencies: ["breez_sdk_liquidFFI"]),
]
)
10 changes: 6 additions & 4 deletions Sources/BreezSDKLiquid/SDKNotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ open class SDKNotificationService: UNNotificationServiceExtension {
var contentHandler: ((UNNotificationContent) -> Void)?
var bestAttemptContent: UNMutableNotificationContent?
var currentTask: TaskProtocol?
var logger: ServiceLogger = ServiceLogger(logStream: nil)

override init() { }
public var logger: ServiceLogger = ServiceLogger(logStream: nil)

public init(logger: Logger) {
self.logger = ServiceLogger(logStream: logger)
}

override open func didReceive(
_ request: UNNotificationRequest,
withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void
Expand Down Expand Up @@ -88,7 +90,7 @@ open class SDKNotificationService: UNNotificationServiceExtension {
self.currentTask?.onShutdown()
}

func setLogger(logger: Logger) {
public func setLogger(logger: Logger) {
self.logger = ServiceLogger(logStream: logger)
}
}
4 changes: 2 additions & 2 deletions Sources/BreezSDKLiquid/ServiceLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ fileprivate var logger = OSLog(
fileprivate var logger = OSLog.disabled
#endif

class ServiceLogger {
open class ServiceLogger {
var logStream: Logger?

init(logStream: Logger?) {
self.logStream = logStream
}

func log(tag: String, line: String, level: String) {
public func log(tag: String, line: String, level: String) {
if let logger = logStream {
logger.log(l: LogEntry(line: line, level: level))
} else {
Expand Down
2 changes: 1 addition & 1 deletion breez_sdk_liquidFFI.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "breez_sdk_liquidFFI"
spec.version = "0.2.2-dev2"
spec.version = "0.2.2-dev3"
spec.license = { :type => "MIT" }
spec.summary = "Low-level bindings to the Breez Liquid SDK Rust API"
spec.homepage = "https://breez.technology"
Expand Down

0 comments on commit 4631afc

Please sign in to comment.