Skip to content

Commit 22953bf

Browse files
runnerrunner
authored andcommitted
Created automatic release of prose-core-client 0.11.0.
1 parent 1ca06ff commit 22953bf

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ let package = Package(
1111
.target(name: "ProseCoreFFI", dependencies: ["ProseCoreFFIFFI"]),
1212
.binaryTarget(
1313
name: "ProseCoreFFIFFI",
14-
url: "https://github.com/prose-im/prose-wrapper-swift/releases/download/0.10.0/ProseCoreFFI.xcframework.zip",
15-
checksum: "4136d901b902c51dc94832052180d952ccef1aa5631021f2c397c4fc676f71d8"
14+
url: "https://github.com/prose-im/prose-wrapper-swift/releases/download/0.11.0/ProseCoreFFI.xcframework.zip",
15+
checksum: "180f6f7e0884b4e8c5a1b6527d0f4f40c44c770b3d5d4e6880efc1bafa7e9406"
1616
),
1717
]
1818
)

Sources/ProseCoreFFI/ProseCoreFFI.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ public func FfiConverterTypeAccountBookmarksClient_lower(_ value: AccountBookmar
454454
}
455455

456456
public protocol ClientProtocol {
457-
func connect(password: String) async throws
457+
func connect(password: String, availability: Availability, status: String?) async throws
458458
func deleteProfile() async throws
459459
func disconnect() async throws
460460
func jid() -> FullJid
@@ -503,11 +503,13 @@ public class Client: ClientProtocol {
503503
try! rustCall { ffi_prose_core_ffi_d633_Client_object_free(pointer, $0) }
504504
}
505505

506-
public func connect(password: String) async throws {
506+
public func connect(password: String, availability: Availability, status: String?) async throws {
507507
let future = try
508508
rustCallWithError(FfiConverterTypeConnectionError.self) {
509-
_uniffi_prose_core_ffi_impl_Client_connect_5f8b(self.pointer,
510-
FfiConverterString.lower(password), $0)
509+
_uniffi_prose_core_ffi_impl_Client_connect_654e(self.pointer,
510+
FfiConverterString.lower(password),
511+
FfiConverterTypeAvailability.lower(availability),
512+
FfiConverterOptionString.lower(status), $0)
511513
}
512514

513515
return try await withCheckedThrowingContinuation { continuation in
@@ -822,7 +824,7 @@ private class _UniFFI_Client_Connect_Env {
822824

823825
deinit {
824826
try! rustCall {
825-
_uniffi_prose_core_ffi_impl_Client_connect_5f8b_drop(self.rustFuture, $0)
827+
_uniffi_prose_core_ffi_impl_Client_connect_654e_drop(self.rustFuture, $0)
826828
}
827829
}
828830
}
@@ -834,7 +836,7 @@ private func _UniFFI_Client_Connect_waker(raw_env: UnsafeMutableRawPointer?) {
834836
let polledResult = UnsafeMutableRawPointer.allocate(byteCount: 0, alignment: 0)
835837
do {
836838
let isReady = try rustCallWithError(FfiConverterTypeConnectionError.self) {
837-
_uniffi_prose_core_ffi_impl_Client_connect_5f8b_poll(
839+
_uniffi_prose_core_ffi_impl_Client_connect_654e_poll(
838840
env_ref.rustFuture,
839841
_UniFFI_Client_Connect_waker,
840842
env.toOpaque(),

0 commit comments

Comments
 (0)