Skip to content

Commit bd79563

Browse files
author
github-actions
committed
Bump SDK version to 0.2.37 (matrix-rust-sdk to c83fa3a532c950132d2d23698fd8a687640b0905)
1 parent 813124f commit bd79563

File tree

4 files changed

+1050
-4
lines changed

4 files changed

+1050
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object BuildVersionsSDK {
22
const val majorVersion = 0
33
const val minorVersion = 2
4-
const val patchVersion = 36
4+
const val patchVersion = 37
55
}

sdk/sdk-android/src/main/kotlin/org/matrix/rustcomponents/sdk/matrix_sdk_ffi.kt

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,25 @@ import uniffi.matrix_sdk.FfiConverterTypeRoomPowerLevelChanges
4848
import uniffi.matrix_sdk.OidcAuthorizationData
4949
import uniffi.matrix_sdk.RoomMemberRole
5050
import uniffi.matrix_sdk.RoomPowerLevelChanges
51+
import uniffi.matrix_sdk_common.FfiConverterTypeShieldStateCode
52+
import uniffi.matrix_sdk_common.ShieldStateCode
5153
import uniffi.matrix_sdk_crypto.FfiConverterTypeUtdCause
5254
import uniffi.matrix_sdk_crypto.UtdCause
5355
import uniffi.matrix_sdk_ui.EventItemOrigin
5456
import uniffi.matrix_sdk_ui.FfiConverterTypeEventItemOrigin
5557
import uniffi.matrix_sdk_ui.FfiConverterTypeLiveBackPaginationStatus
58+
import uniffi.matrix_sdk_ui.FfiConverterTypeRoomPinnedEventsChange
5659
import uniffi.matrix_sdk_ui.LiveBackPaginationStatus
60+
import uniffi.matrix_sdk_ui.RoomPinnedEventsChange
5761
import uniffi.matrix_sdk.RustBuffer as RustBufferBackupDownloadStrategy
5862
import uniffi.matrix_sdk.RustBuffer as RustBufferOidcAuthorizationData
5963
import uniffi.matrix_sdk.RustBuffer as RustBufferRoomMemberRole
6064
import uniffi.matrix_sdk.RustBuffer as RustBufferRoomPowerLevelChanges
65+
import uniffi.matrix_sdk_common.RustBuffer as RustBufferShieldStateCode
6166
import uniffi.matrix_sdk_crypto.RustBuffer as RustBufferUtdCause
6267
import uniffi.matrix_sdk_ui.RustBuffer as RustBufferEventItemOrigin
6368
import uniffi.matrix_sdk_ui.RustBuffer as RustBufferLiveBackPaginationStatus
69+
import uniffi.matrix_sdk_ui.RustBuffer as RustBufferRoomPinnedEventsChange
6470

6571
// This is a helper for safely working with byte buffers returned from the Rust code.
6672
// A rust-owned buffer is represented by its capacity, its current length, and a
@@ -27898,8 +27904,10 @@ sealed class OtherState {
2789827904
companion object
2789927905
}
2790027906

27901-
object RoomPinnedEvents : OtherState()
27902-
27907+
data class RoomPinnedEvents(
27908+
val `change`: RoomPinnedEventsChange) : OtherState() {
27909+
companion object
27910+
}
2790327911

2790427912
data class RoomPowerLevels(
2790527913
val `users`: Map<kotlin.String, kotlin.Long>,
@@ -27958,7 +27966,9 @@ public object FfiConverterTypeOtherState : FfiConverterRustBuffer<OtherState>{
2795827966
12 -> OtherState.RoomName(
2795927967
FfiConverterOptionalString.read(buf),
2796027968
)
27961-
13 -> OtherState.RoomPinnedEvents
27969+
13 -> OtherState.RoomPinnedEvents(
27970+
FfiConverterTypeRoomPinnedEventsChange.read(buf),
27971+
)
2796227972
14 -> OtherState.RoomPowerLevels(
2796327973
FfiConverterMapStringLong.read(buf),
2796427974
FfiConverterOptionalMapStringLong.read(buf),
@@ -28059,6 +28069,7 @@ public object FfiConverterTypeOtherState : FfiConverterRustBuffer<OtherState>{
2805928069
// Add the size for the Int that specifies the variant plus the size needed for all fields
2806028070
(
2806128071
4UL
28072+
+ FfiConverterTypeRoomPinnedEventsChange.allocationSize(value.`change`)
2806228073
)
2806328074
}
2806428075
is OtherState.RoomPowerLevels -> {
@@ -28170,6 +28181,7 @@ public object FfiConverterTypeOtherState : FfiConverterRustBuffer<OtherState>{
2817028181
}
2817128182
is OtherState.RoomPinnedEvents -> {
2817228183
buf.putInt(13)
28184+
FfiConverterTypeRoomPinnedEventsChange.write(value.`change`, buf)
2817328185
Unit
2817428186
}
2817528187
is OtherState.RoomPowerLevels -> {
@@ -30455,6 +30467,7 @@ sealed class ShieldState {
3045530467
* presented.
3045630468
*/
3045730469
data class Red(
30470+
val `code`: ShieldStateCode,
3045830471
val `message`: kotlin.String) : ShieldState() {
3045930472
companion object
3046030473
}
@@ -30464,6 +30477,7 @@ sealed class ShieldState {
3046430477
* presented.
3046530478
*/
3046630479
data class Grey(
30480+
val `code`: ShieldStateCode,
3046730481
val `message`: kotlin.String) : ShieldState() {
3046830482
companion object
3046930483
}
@@ -30483,9 +30497,11 @@ public object FfiConverterTypeShieldState : FfiConverterRustBuffer<ShieldState>{
3048330497
override fun read(buf: ByteBuffer): ShieldState {
3048430498
return when(buf.getInt()) {
3048530499
1 -> ShieldState.Red(
30500+
FfiConverterTypeShieldStateCode.read(buf),
3048630501
FfiConverterString.read(buf),
3048730502
)
3048830503
2 -> ShieldState.Grey(
30504+
FfiConverterTypeShieldStateCode.read(buf),
3048930505
FfiConverterString.read(buf),
3049030506
)
3049130507
3 -> ShieldState.None
@@ -30498,13 +30514,15 @@ public object FfiConverterTypeShieldState : FfiConverterRustBuffer<ShieldState>{
3049830514
// Add the size for the Int that specifies the variant plus the size needed for all fields
3049930515
(
3050030516
4UL
30517+
+ FfiConverterTypeShieldStateCode.allocationSize(value.`code`)
3050130518
+ FfiConverterString.allocationSize(value.`message`)
3050230519
)
3050330520
}
3050430521
is ShieldState.Grey -> {
3050530522
// Add the size for the Int that specifies the variant plus the size needed for all fields
3050630523
(
3050730524
4UL
30525+
+ FfiConverterTypeShieldStateCode.allocationSize(value.`code`)
3050830526
+ FfiConverterString.allocationSize(value.`message`)
3050930527
)
3051030528
}
@@ -30520,11 +30538,13 @@ public object FfiConverterTypeShieldState : FfiConverterRustBuffer<ShieldState>{
3052030538
when(value) {
3052130539
is ShieldState.Red -> {
3052230540
buf.putInt(1)
30541+
FfiConverterTypeShieldStateCode.write(value.`code`, buf)
3052330542
FfiConverterString.write(value.`message`, buf)
3052430543
Unit
3052530544
}
3052630545
is ShieldState.Grey -> {
3052730546
buf.putInt(2)
30547+
FfiConverterTypeShieldStateCode.write(value.`code`, buf)
3052830548
FfiConverterString.write(value.`message`, buf)
3052930549
Unit
3053030550
}
@@ -35548,6 +35568,14 @@ public object FfiConverterMapStringSequenceString: FfiConverterRustBuffer<Map<ko
3554835568

3554935569

3555035570

35571+
35572+
35573+
35574+
35575+
35576+
35577+
35578+
3555135579

3555235580

3555335581

0 commit comments

Comments
 (0)