From dc330228ff35e0713b5a75fa72bad1b8433128c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Rychnovsk=C3=BD?= Date: Tue, 4 Jul 2023 14:14:20 +0200 Subject: [PATCH] [#1097] Adopt Bip39 1.0.5 * [#1097] Adopt Bip39 1.0.5 * Fix Detekt warnings --- gradle.properties | 2 +- .../z/ecc/android/sdk/db/DatabaseCoordinatorTest.kt | 11 ++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/gradle.properties b/gradle.properties index 7859b738..a1f7e04a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -124,7 +124,7 @@ ANDROIDX_TEST_CORE_VERSION=1.5.0 ANDROIDX_TEST_RUNNER_VERSION=1.5.2 ANDROIDX_TRACING_VERSION=1.2.0-rc01 ANDROIDX_UI_AUTOMATOR_VERSION=2.3.0-alpha03 -BIP39_VERSION=1.0.4 +BIP39_VERSION=1.0.5 CORE_LIBRARY_DESUGARING_VERSION=2.0.3 COROUTINES_OKHTTP=1.0 GOOGLE_MATERIAL_VERSION=1.9.0 diff --git a/sdk-lib/src/androidTest/java/cash/z/ecc/android/sdk/db/DatabaseCoordinatorTest.kt b/sdk-lib/src/androidTest/java/cash/z/ecc/android/sdk/db/DatabaseCoordinatorTest.kt index 4ec1ae86..84e79a50 100644 --- a/sdk-lib/src/androidTest/java/cash/z/ecc/android/sdk/db/DatabaseCoordinatorTest.kt +++ b/sdk-lib/src/androidTest/java/cash/z/ecc/android/sdk/db/DatabaseCoordinatorTest.kt @@ -8,7 +8,6 @@ import cash.z.ecc.android.sdk.test.getAppContext import cash.z.ecc.fixture.DatabaseCacheFilesRootFixture import cash.z.ecc.fixture.DatabaseNameFixture import cash.z.ecc.fixture.DatabasePathFixture -import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.test.runTest import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse @@ -31,7 +30,6 @@ class DatabaseCoordinatorTest { @Test @SmallTest - @OptIn(ExperimentalCoroutinesApi::class) fun database_cache_root_directory_creation_test() = runTest { val parentDirectory = File(DatabasePathFixture.new()) val destinationDirectory = DatabaseCacheFilesRootFixture.newCacheRoot() @@ -47,7 +45,6 @@ class DatabaseCoordinatorTest { @Test @SmallTest - @OptIn(ExperimentalCoroutinesApi::class) fun database_data_file_creation_test() = runTest { val directory = File(DatabasePathFixture.new()) val fileName = DatabaseNameFixture.newDb(name = DatabaseCoordinator.DB_DATA_NAME) @@ -63,7 +60,6 @@ class DatabaseCoordinatorTest { @Test @SmallTest - @OptIn(ExperimentalCoroutinesApi::class) fun database_transactions_file_creation_test() = runTest { val directory = File(DatabasePathFixture.new()) val fileName = DatabaseNameFixture.newDb(name = DatabaseCoordinator.DB_PENDING_TRANSACTIONS_NAME) @@ -77,9 +73,9 @@ class DatabaseCoordinatorTest { } } + @Suppress("LongMethod") @Test @SmallTest - @OptIn(ExperimentalCoroutinesApi::class) fun data_database_files_move_test() = runTest { val parentFile = File( DatabasePathFixture.new( @@ -163,7 +159,6 @@ class DatabaseCoordinatorTest { @Test @SmallTest - @OptIn(ExperimentalCoroutinesApi::class) fun delete_data_database_files_test() = runTest { val parentFile = File( DatabasePathFixture.new( @@ -202,9 +197,9 @@ class DatabaseCoordinatorTest { * Note that this situation is just hypothetical, as the legacy database files should be placed only on one of * the legacy locations, not both, but it is alright to test it together. */ + @Suppress("LongMethod") @Test @SmallTest - @OptIn(ExperimentalCoroutinesApi::class) fun delete_all_legacy_database_files_test() = runTest { // create older location legacy files val olderLegacyParentFile = File( @@ -301,7 +296,6 @@ class DatabaseCoordinatorTest { } } - @OptIn(ExperimentalCoroutinesApi::class) @Test @SmallTest fun data_db_path() = runTest { @@ -315,7 +309,6 @@ class DatabaseCoordinatorTest { ) } - @OptIn(ExperimentalCoroutinesApi::class) @Test @SmallTest fun cache_path() = runTest {