Skip to content

Commit

Permalink
Bump to version v1.0.2 (matrix-rust-sdk/main dba7cf39e6a5c98c8b2fe642…
Browse files Browse the repository at this point in the history
…03832f8b1ee5e1d9)
  • Loading branch information
pixlwave committed May 21, 2024
1 parent 215f8b8 commit e87ffe0
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 668 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let checksum = "dd29992cd975edae91c71d45372a7c413189b4437485fa8c11026d26810ff662"
let version = "v0.0.1-qr-code-login"
let checksum = "131746bdcaca3617ec518db05fce0fab7060f95db3ba8bba299cc762eaed0eca"
let version = "v1.0.2"
let url = "https://github.com/element-hq/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
let package = Package(
name: "MatrixRustSDK",
Expand Down
104 changes: 0 additions & 104 deletions Sources/MatrixRustSDK/matrix_sdk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -789,110 +789,6 @@ extension PaginatorState: Equatable, Hashable {}



// Note that we don't yet support `indirect` for enums.
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.

public enum QrCodeLoginError {

case oidc
case sessionTokens
case userIdDiscovery
case secretImport
case loginFailure
case unexpectedMessage
case crossProcessRefreshLock
case secureChannel
case deviceKeyUpload
}


public struct FfiConverterTypeQRCodeLoginError: FfiConverterRustBuffer {
typealias SwiftType = QrCodeLoginError

public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> QrCodeLoginError {
let variant: Int32 = try readInt(&buf)
switch variant {

case 1: return .oidc

case 2: return .sessionTokens

case 3: return .userIdDiscovery

case 4: return .secretImport

case 5: return .loginFailure

case 6: return .unexpectedMessage

case 7: return .crossProcessRefreshLock

case 8: return .secureChannel

case 9: return .deviceKeyUpload

default: throw UniffiInternalError.unexpectedEnumCase
}
}

public static func write(_ value: QrCodeLoginError, into buf: inout [UInt8]) {
switch value {


case .oidc:
writeInt(&buf, Int32(1))


case .sessionTokens:
writeInt(&buf, Int32(2))


case .userIdDiscovery:
writeInt(&buf, Int32(3))


case .secretImport:
writeInt(&buf, Int32(4))


case .loginFailure:
writeInt(&buf, Int32(5))


case .unexpectedMessage:
writeInt(&buf, Int32(6))


case .crossProcessRefreshLock:
writeInt(&buf, Int32(7))


case .secureChannel:
writeInt(&buf, Int32(8))


case .deviceKeyUpload:
writeInt(&buf, Int32(9))

}
}
}


public func FfiConverterTypeQRCodeLoginError_lift(_ buf: RustBuffer) throws -> QrCodeLoginError {
return try FfiConverterTypeQRCodeLoginError.lift(buf)
}

public func FfiConverterTypeQRCodeLoginError_lower(_ value: QrCodeLoginError) -> RustBuffer {
return FfiConverterTypeQRCodeLoginError.lower(value)
}



extension QrCodeLoginError: Equatable, Hashable {}



// Note that we don't yet support `indirect` for enums.
// See https://github.com/mozilla/uniffi-rs/issues/396 for further discussion.
/**
Expand Down
Loading

0 comments on commit e87ffe0

Please sign in to comment.