diff --git a/app/build.gradle b/app/build.gradle index 9df17323..b6394ec2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -134,8 +134,8 @@ dependencies { implementation fileTree(include: ['*.jar'], dir: "${rootProject.rootDir}/libs/koin-android") implementation fileTree(include: ['*.aar'], dir: "${rootProject.rootDir}/libs/koin-android") -// implementation "cash.z.ecc.android:kotlin-bip39:1.0.4" - implementation fileTree(include: ['kotlin-bip39-jvm-1.0.4.jar'], dir: "${rootProject.rootDir}/libs") +// implementation "cash.z.ecc.android:kotlin-bip39:1.0.6" + implementation fileTree(include: ['kotlin-bip39-jvm-1.0.6.jar'], dir: "${rootProject.rootDir}/libs") /** * Test Dependencies (do not concern the AOSP build) @@ -153,7 +153,7 @@ dependencies { testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5_version" testImplementation "org.junit.jupiter:junit-jupiter-params:$junit5_version" testImplementation "io.mockk:mockk:$mockk_version" - testImplementation 'org.bitcoinj:bitcoinj-core:0.15.10' + testImplementation 'org.bitcoinj:bitcoinj-core:0.16.2' testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5_version" testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junit5_version" diff --git a/app/src/test/java/com/stevesoltys/seedvault/crypto/WordListTest.kt b/app/src/test/java/com/stevesoltys/seedvault/crypto/WordListTest.kt index 3e54e42e..88ef7faa 100644 --- a/app/src/test/java/com/stevesoltys/seedvault/crypto/WordListTest.kt +++ b/app/src/test/java/com/stevesoltys/seedvault/crypto/WordListTest.kt @@ -1,7 +1,6 @@ package com.stevesoltys.seedvault.crypto import cash.z.ecc.android.bip39.Mnemonics -import cash.z.ecc.android.bip39.WordList import cash.z.ecc.android.bip39.toSeed import com.stevesoltys.seedvault.toHexString import com.stevesoltys.seedvault.ui.recoverycode.toMnemonicChars @@ -2066,7 +2065,7 @@ class WordListTest { @Test fun `word list of library did not change`() { - val libWords = WordList().words + val libWords = Mnemonics.getCachedWords("en") for (i in words.indices) { assertEquals(words[i], libWords[i]) } diff --git a/libs/Android.bp b/libs/Android.bp index 15a9fcf2..f20ae381 100644 --- a/libs/Android.bp +++ b/libs/Android.bp @@ -1,5 +1,5 @@ java_import { name: "seedvault-lib-kotlin-bip39", - jars: ["kotlin-bip39-jvm-1.0.4.jar"], + jars: ["kotlin-bip39-jvm-1.0.6.jar"], sdk_version: "current", } diff --git a/libs/kotlin-bip39-jvm-1.0.4.jar b/libs/kotlin-bip39-jvm-1.0.4.jar deleted file mode 100644 index 55ff7745..00000000 Binary files a/libs/kotlin-bip39-jvm-1.0.4.jar and /dev/null differ diff --git a/libs/kotlin-bip39-jvm-1.0.6.jar b/libs/kotlin-bip39-jvm-1.0.6.jar new file mode 100644 index 00000000..faeabc19 Binary files /dev/null and b/libs/kotlin-bip39-jvm-1.0.6.jar differ