bump crypto sdk to 0.3.8

This commit is contained in:
valere 2023-05-31 15:02:43 +02:00
parent 61d4e468cb
commit 1eda087233
2 changed files with 3 additions and 2 deletions

View File

@ -216,7 +216,7 @@ dependencies {
implementation libs.google.phonenumber
rustCryptoImplementation("org.matrix.rustcomponents:crypto-android:0.3.7")
rustCryptoImplementation("org.matrix.rustcomponents:crypto-android:0.3.8")
// rustCryptoApi project(":library:rustCrypto")
testImplementation libs.tests.junit

View File

@ -183,8 +183,9 @@ internal class RustCryptoService @Inject constructor(
override fun getCryptoVersion(context: Context, longFormat: Boolean): String {
val version = org.matrix.rustcomponents.sdk.crypto.version()
val gitHash = org.matrix.rustcomponents.sdk.crypto.versionInfo().gitSha
val vodozemac = org.matrix.rustcomponents.sdk.crypto.vodozemacVersion()
return if (longFormat) "Rust SDK $version, Vodozemac $vodozemac" else version
return if (longFormat) "Rust SDK $version ($gitHash), Vodozemac $vodozemac" else version
}
override suspend fun getMyCryptoDevice(): CryptoDeviceInfo = withContext(coroutineDispatchers.io) {