diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-10-10 14:45:07 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-10-10 14:45:07 +0530 |
commit | 9f5062986d9240ffb5005e901acc14471e7ada8b (patch) | |
tree | ff9655e7be31852801440b04b0155d5a53154250 /app/src/main/java | |
parent | f5bf45037a57b431dd693a29ac41217576a7d437 (diff) |
Revert "chore: remove unnecessary `CryptoHandlerModule`"
This is used in #2170 so let's avoid the unnecessary conflict.
This reverts commit f5bf45037a57b431dd693a29ac41217576a7d437.
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/app/passwordstore/injection/crypto/CryptoHandlerModule.kt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/src/main/java/app/passwordstore/injection/crypto/CryptoHandlerModule.kt b/app/src/main/java/app/passwordstore/injection/crypto/CryptoHandlerModule.kt new file mode 100644 index 00000000..5a863d8d --- /dev/null +++ b/app/src/main/java/app/passwordstore/injection/crypto/CryptoHandlerModule.kt @@ -0,0 +1,18 @@ +/* + * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + * SPDX-License-Identifier: GPL-3.0-only + */ + +package app.passwordstore.injection.crypto + +import app.passwordstore.crypto.PGPainlessCryptoHandler +import dagger.Module +import dagger.Provides +import dagger.hilt.InstallIn +import dagger.hilt.components.SingletonComponent + +@Module +@InstallIn(SingletonComponent::class) +object CryptoHandlerModule { + @Provides fun providePgpCryptoHandler() = PGPainlessCryptoHandler() +} |