From 51956be665e338da879ee970c97f365ac4cdaf6f Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 13 Nov 2021 17:50:15 +0530 Subject: Update dependencies (#1540) --- format-common/api/format-common.api | 4 ++++ .../main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'format-common') diff --git a/format-common/api/format-common.api b/format-common/api/format-common.api index 88f5d330..d0caaf78 100644 --- a/format-common/api/format-common.api +++ b/format-common/api/format-common.api @@ -9,6 +9,10 @@ public final class dev/msfjarvis/aps/data/passfile/PasswordEntry { public final fun hasTotp ()Z } +public abstract interface class dev/msfjarvis/aps/data/passfile/PasswordEntry$Factory { + public abstract fun create (Lkotlinx/coroutines/CoroutineScope;[B)Ldev/msfjarvis/aps/data/passfile/PasswordEntry; +} + public class dev/msfjarvis/aps/util/time/UserClock : java/time/Clock { public fun ()V public fun getZone ()Ljava/time/ZoneId; 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" -- cgit v1.2.3