summaryrefslogtreecommitdiff
path: root/crypto/pgpainless
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-09-28 01:29:24 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-09-28 01:29:24 +0530
commit41c86b67f3f1fe320e702b05887f22188a5b42fc (patch)
treefa1b5c3c93d4d9e293dadf226e69d7c47a90d5ff /crypto/pgpainless
parent5f3aa611c94a0da933e7a94f6fa0cceba14899fa (diff)
refactor: use `runSuspendCatching` from `kotlin-result`
Diffstat (limited to 'crypto/pgpainless')
-rw-r--r--crypto/pgpainless/build.gradle.kts2
-rw-r--r--crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/pgpainless/build.gradle.kts b/crypto/pgpainless/build.gradle.kts
index 29f5bb1f..bfaff4f7 100644
--- a/crypto/pgpainless/build.gradle.kts
+++ b/crypto/pgpainless/build.gradle.kts
@@ -6,11 +6,11 @@ plugins { id("com.github.android-password-store.kotlin-jvm-library") }
dependencies {
api(projects.crypto.common)
- implementation(projects.coroutineUtils)
implementation(libs.androidx.annotation)
implementation(libs.dagger.hilt.core)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.thirdparty.kotlinResult)
+ implementation(libs.thirdparty.kotlinResult.coroutines)
implementation(libs.thirdparty.pgpainless)
testImplementation(libs.bundles.testDependencies)
testImplementation(libs.kotlinx.coroutines.test)
diff --git a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt
index aed1acf2..8aa11803 100644
--- a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt
+++ b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPKeyManager.kt
@@ -17,8 +17,8 @@ import app.passwordstore.crypto.errors.KeyDirectoryUnavailableException
import app.passwordstore.crypto.errors.KeyNotFoundException
import app.passwordstore.crypto.errors.NoKeysAvailableException
import app.passwordstore.crypto.errors.UnusableKeyException
-import app.passwordstore.util.coroutines.runSuspendCatching
import com.github.michaelbull.result.Result
+import com.github.michaelbull.result.coroutines.runSuspendCatching
import com.github.michaelbull.result.unwrap
import java.io.File
import javax.inject.Inject