Update dependency org.matrix.rustcomponents:sdk-android to v0.1.67 (#1747)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.67 * Fix breaking change in `RustMediaLoader`. * Fix breaking change in `DefaultCallWidgetSettingsProvider` --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Marco Romano <marcor@element.io>
This commit is contained in:
parent
0e55cc820d
commit
8b5e8bf6da
3 changed files with 5 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" }
|
||||||
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
|
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
|
||||||
molecule-runtime = { module = "app.cash.molecule:molecule-runtime", version.ref = "molecule" }
|
molecule-runtime = { module = "app.cash.molecule:molecule-runtime", version.ref = "molecule" }
|
||||||
timber = "com.jakewharton.timber:timber:5.0.1"
|
timber = "com.jakewharton.timber:timber:5.0.1"
|
||||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.1.66"
|
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.1.67"
|
||||||
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
|
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
|
||||||
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
|
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
|
||||||
sqldelight-driver-android = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
|
sqldelight-driver-android = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ class RustMediaLoader(
|
||||||
mediaSource = mediaSource,
|
mediaSource = mediaSource,
|
||||||
body = body,
|
body = body,
|
||||||
mimeType = mimeType ?: MimeTypes.OctetStream,
|
mimeType = mimeType ?: MimeTypes.OctetStream,
|
||||||
|
useCache = true,
|
||||||
tempDir = cacheDirectory.path,
|
tempDir = cacheDirectory.path,
|
||||||
)
|
)
|
||||||
RustMediaFile(mediaFile)
|
RustMediaFile(mediaFile)
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ import com.squareup.anvil.annotations.ContributesBinding
|
||||||
import io.element.android.libraries.di.AppScope
|
import io.element.android.libraries.di.AppScope
|
||||||
import io.element.android.libraries.matrix.api.widget.CallWidgetSettingsProvider
|
import io.element.android.libraries.matrix.api.widget.CallWidgetSettingsProvider
|
||||||
import io.element.android.libraries.matrix.api.widget.MatrixWidgetSettings
|
import io.element.android.libraries.matrix.api.widget.MatrixWidgetSettings
|
||||||
|
import org.matrix.rustcomponents.sdk.EncryptionSystem
|
||||||
import org.matrix.rustcomponents.sdk.VirtualElementCallWidgetOptions
|
import org.matrix.rustcomponents.sdk.VirtualElementCallWidgetOptions
|
||||||
import org.matrix.rustcomponents.sdk.newVirtualElementCallWidget
|
import org.matrix.rustcomponents.sdk.newVirtualElementCallWidget
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
|
@ -38,7 +39,8 @@ class DefaultCallWidgetSettingsProvider @Inject constructor() : CallWidgetSettin
|
||||||
skipLobby = true,
|
skipLobby = true,
|
||||||
confineToRoom = true,
|
confineToRoom = true,
|
||||||
font = null,
|
font = null,
|
||||||
analyticsId = null
|
analyticsId = null,
|
||||||
|
encryption = EncryptionSystem.PerParticipantKeys,
|
||||||
)
|
)
|
||||||
val rustWidgetSettings = newVirtualElementCallWidget(options)
|
val rustWidgetSettings = newVirtualElementCallWidget(options)
|
||||||
return MatrixWidgetSettings.fromRustWidgetSettings(rustWidgetSettings)
|
return MatrixWidgetSettings.fromRustWidgetSettings(rustWidgetSettings)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue