From d04e1fa368115718a308c123a3b9c18e6626f5f1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 29 Apr 2023 01:28:41 +0000 Subject: fix(deps): update dependency com.facebook:ktfmt to v0.44 (#2490) * fix(deps): update dependency com.facebook:ktfmt to v0.44 * chore: reformat with ktfmt 0.44 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Harsh Shandilya --- crypto-pgpainless/build.gradle.kts | 4 +--- .../src/main/kotlin/app/passwordstore/crypto/GpgIdentifier.kt | 1 + .../src/test/kotlin/app/passwordstore/crypto/TestUtils.kt | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'crypto-pgpainless') diff --git a/crypto-pgpainless/build.gradle.kts b/crypto-pgpainless/build.gradle.kts index 7933bf2e..6c424e08 100644 --- a/crypto-pgpainless/build.gradle.kts +++ b/crypto-pgpainless/build.gradle.kts @@ -2,9 +2,7 @@ * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. * SPDX-License-Identifier: GPL-3.0-only */ -plugins { - id("com.github.android-password-store.kotlin-jvm-library") -} +plugins { id("com.github.android-password-store.kotlin-jvm-library") } dependencies { api(projects.cryptoCommon) diff --git a/crypto-pgpainless/src/main/kotlin/app/passwordstore/crypto/GpgIdentifier.kt b/crypto-pgpainless/src/main/kotlin/app/passwordstore/crypto/GpgIdentifier.kt index 29d1fa42..d99213d5 100644 --- a/crypto-pgpainless/src/main/kotlin/app/passwordstore/crypto/GpgIdentifier.kt +++ b/crypto-pgpainless/src/main/kotlin/app/passwordstore/crypto/GpgIdentifier.kt @@ -31,6 +31,7 @@ public sealed class GpgIdentifier { return hexString } } + public data class UserId(val email: String) : GpgIdentifier() { override fun toString(): String { return email diff --git a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt index 2c1b8851..96614ee9 100644 --- a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt +++ b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/TestUtils.kt @@ -8,9 +8,12 @@ package app.passwordstore.crypto object TestUtils { fun getArmoredSecretKey() = this::class.java.classLoader.getResource("secret_key").readBytes() + fun getArmoredPublicKey() = this::class.java.classLoader.getResource("public_key").readBytes() + fun getArmoredSecretKeyWithMultipleIdentities() = this::class.java.classLoader.getResource("secret_key_multiple_identities").readBytes() + fun getArmoredPublicKeyWithMultipleIdentities() = this::class.java.classLoader.getResource("public_key_multiple_identities").readBytes() } -- cgit v1.2.3