From 85dba68fe3ff1eca8e95ce95d1820b807e1df1cb Mon Sep 17 00:00:00 2001 From: Mojtaba Chenani Date: Thu, 22 Aug 2024 13:31:37 +0200 Subject: [PATCH] chore(CC): update CoreCrypto to 1.0.1 (#2937) --- .../CoreCryptoCentral.kt | 17 +++++------------ gradle/libs.versions.toml | 2 +- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/CoreCryptoCentral.kt b/cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/CoreCryptoCentral.kt index eda576f6d24..89c70247f9e 100644 --- a/cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/CoreCryptoCentral.kt +++ b/cryptography/src/commonJvmAndroid/kotlin/com.wire.kalium.cryptography/CoreCryptoCentral.kt @@ -33,9 +33,7 @@ actual suspend fun coreCryptoCentral( File(rootDir).mkdirs() val coreCrypto = coreCryptoDeferredInit( path = path, - key = databaseKey, - ciphersuites = emptyList(), - nbKeyPackage = null + key = databaseKey ) coreCrypto.setCallbacks(Callbacks()) return CoreCryptoCentralImpl( @@ -45,14 +43,13 @@ actual suspend fun coreCryptoCentral( } private class Callbacks : CoreCryptoCallbacks { - - override fun authorize(conversationId: ByteArray, clientId: ClientId): Boolean { + override suspend fun authorize(conversationId: ByteArray, clientId: ClientId): Boolean { // We always return true because our BE is currently enforcing that this constraint is always true return true } - override fun clientIsExistingGroupUser( - conversationId: ConversationId, + override suspend fun clientIsExistingGroupUser( + conversationId: ByteArray, clientId: ClientId, existingClients: List, parentConversationClients: List? @@ -61,11 +58,7 @@ private class Callbacks : CoreCryptoCallbacks { return true } - override fun userAuthorize( - conversationId: ConversationId, - externalClientId: ClientId, - existingClients: List - ): Boolean { + override suspend fun userAuthorize(conversationId: ByteArray, externalClientId: ClientId, existingClients: List): Boolean { // We always return true because our BE is currently enforcing that this constraint is always true return true } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4c57e6b8683..b35be0fb8fc 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -38,7 +38,7 @@ pbandk = "0.14.2" turbine = "1.1.0" avs = "9.8.6" jna = "5.14.0" -core-crypto = "1.0.0-rc.56-hotfix.2" +core-crypto = "1.0.2" core-crypto-multiplatform = "0.6.0-rc.3-multiplatform-pre1" completeKotlin = "1.1.0" desugar-jdk = "2.0.4"