Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(core-crypto): update CoreCrypto to 1.0.2 (WPB-9118) 🍒 #2963

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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<ClientId>,
parentConversationClients: List<ClientId>?
Expand All @@ -61,11 +58,7 @@ private class Callbacks : CoreCryptoCallbacks {
return true
}

override fun userAuthorize(
conversationId: ConversationId,
externalClientId: ClientId,
existingClients: List<ClientId>
): Boolean {
override suspend fun userAuthorize(conversationId: ByteArray, externalClientId: ClientId, existingClients: List<ClientId>): Boolean {
// We always return true because our BE is currently enforcing that this constraint is always true
return true
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading