aboutsummaryrefslogtreecommitdiff
path: root/format-common/src/main/kotlin/dev
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-11-13 17:50:15 +0530
committerGitHub <noreply@github.com>2021-11-13 17:50:15 +0530
commit51956be665e338da879ee970c97f365ac4cdaf6f (patch)
tree59473ee9fc1dd8cc425cc88c1a248a2800d13e5d /format-common/src/main/kotlin/dev
parent935f8dae5e4554c8a33cd79104e495ec43eef2d8 (diff)
Update dependencies (#1540)
Diffstat (limited to 'format-common/src/main/kotlin/dev')
-rw-r--r--format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt b/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
index efcc6078..408069a2 100644
--- a/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
+++ b/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
@@ -7,6 +7,7 @@ package dev.msfjarvis.aps.data.passfile
import com.github.michaelbull.result.mapBoth
import dagger.assisted.Assisted
+import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import dev.msfjarvis.aps.util.time.UserClock
import dev.msfjarvis.aps.util.totp.Otp
@@ -197,6 +198,11 @@ constructor(
}
}
+ @AssistedFactory
+ public interface Factory {
+ public fun create(scope: CoroutineScope, bytes: ByteArray): PasswordEntry
+ }
+
internal companion object {
private const val EXTRA_CONTENT = "Extra Content"