Skip to content

Commit

Permalink
Merge pull request #31 from reown-com/update_sql_cipher
Browse files Browse the repository at this point in the history
feat: Update SQL Cipher
  • Loading branch information
jakubuid authored Dec 10, 2024
2 parents a599c27 + 23cf48d commit a939eec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dependencies {
implementation(libs.scarlet.android)
implementation(libs.bundles.sqlDelight)
//noinspection UseTomlInstead
api("net.zetetic:android-database-sqlcipher:4.5.4@aar")
api("net.zetetic:sqlcipher-android:4.6.1@aar")
implementation(libs.relinker)
api(libs.androidx.security)
api(libs.koin.android)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import com.reown.android.sdk.core.AndroidCoreDatabase
import com.reown.foundation.util.Logger
import com.reown.util.randomBytes
import com.reown.utils.Empty
import net.sqlcipher.database.SQLiteDatabaseHook
import net.sqlcipher.database.SupportFactory
import net.zetetic.database.sqlcipher.SQLiteDatabaseHook
import net.zetetic.database.sqlcipher.SupportOpenHelperFactory
import org.koin.android.ext.koin.androidContext
import org.koin.core.qualifier.named
import org.koin.core.scope.Scope
Expand Down Expand Up @@ -159,9 +159,9 @@ fun getSupportFactory(
passphrase: ByteArray,
hook: SQLiteDatabaseHook?,
clearPassphrase: Boolean
): SupportFactory {
): SupportOpenHelperFactory {
loadSqlCipherLibrary(context)
return SupportFactory(passphrase, hook, clearPassphrase)
return SupportOpenHelperFactory(passphrase, hook, clearPassphrase)
}

private fun loadSqlCipherLibrary(context: Context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class RelayTest {
runBlocking {
val start = System.currentTimeMillis()
// Await test finish or check if timeout occurred
while (testState.value is TestState.Idle && !didTimeout(start, 60000L)) {
while (testState.value is TestState.Idle && !didTimeout(start, 120000L)) {
delay(10)
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ koin = "3.5.6"
retrofit = "2.11.0"
okhttp = "4.12.0"
bouncyCastle = "1.78.1"
sqlCipher = "4.5.4"
sqlCipher = "4.6.1"
multibase = "1.1.1"
json = "20220924"
timber = "5.0.1"
Expand Down Expand Up @@ -148,7 +148,7 @@ firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics-ktx"
firebase-analytics = { module = "com.google.firebase:firebase-analytics-ktx" }

bouncyCastle = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "bouncyCastle" }
sqlCipher = { module = "net.zetetic:android-database-sqlcipher", version.ref = "sqlCipher" }
sqlCipher = { module = "net.zetetic:sqlcipher-android", version.ref = "sqlCipher" }
relinker = { module = "com.getkeepsafe.relinker:relinker", version.ref = "relinker" }
mulitbase = { module = "com.github.multiformats:java-multibase", version.ref = "multibase" }
jerseyCommon = { module = "org.glassfish.jersey.core:jersey-common", version.ref = "jerseyCommon" }
Expand Down

0 comments on commit a939eec

Please sign in to comment.