From bb724fffc5dbf84316fc76078aba999642beb9e8 Mon Sep 17 00:00:00 2001 From: Cristian G Date: Thu, 19 Jan 2023 09:32:39 -0500 Subject: [PATCH] Fix lint issue --- domain/build.gradle.kts | 1 + .../io.iohk.atala.prism.domain/buildingBlocks/Pluto.kt | 9 ++++++++- .../models/JWTVerifiableCredential.kt | 3 --- .../kotlin/io.iohk.atala.prism.domain/models/KeyPair.kt | 1 - .../kotlin/io.iohk.atala.prism.domain/models/Message.kt | 1 - 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/domain/build.gradle.kts b/domain/build.gradle.kts index a3ef2434d..527851289 100644 --- a/domain/build.gradle.kts +++ b/domain/build.gradle.kts @@ -68,6 +68,7 @@ kotlin { dependencies { implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") + implementation("com.benasher44:uuid:0.3.0") // TODO("use Apollo UUID") } } val commonTest by getting { diff --git a/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/buildingBlocks/Pluto.kt b/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/buildingBlocks/Pluto.kt index a29545bd8..e243b947d 100644 --- a/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/buildingBlocks/Pluto.kt +++ b/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/buildingBlocks/Pluto.kt @@ -1,6 +1,13 @@ package io.iohk.atala.prism.domain.buildingBlocks -import io.iohk.atala.prism.domain.models.* +import io.iohk.atala.prism.domain.models.DID +import io.iohk.atala.prism.domain.models.PrivateKey +import io.iohk.atala.prism.domain.models.Message +import io.iohk.atala.prism.domain.models.VerifiableCredential +import io.iohk.atala.prism.domain.models.PrismDIDInfo +import io.iohk.atala.prism.domain.models.PeerDID +import io.iohk.atala.prism.domain.models.DIDPair +import io.iohk.atala.prism.domain.models.MediatorDID import kotlinx.coroutines.flow.Flow interface Pluto { diff --git a/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/JWTVerifiableCredential.kt b/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/JWTVerifiableCredential.kt index 4779883a7..65c4fc3da 100644 --- a/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/JWTVerifiableCredential.kt +++ b/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/JWTVerifiableCredential.kt @@ -1,8 +1,5 @@ package io.iohk.atala.prism.domain.models -import kotlinx.serialization.Serializable - -@Serializable data class JWTCredentialPayload( val iss: DID, val sub: String? = null, diff --git a/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/KeyPair.kt b/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/KeyPair.kt index 84ec5a471..a7b72e535 100644 --- a/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/KeyPair.kt +++ b/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/KeyPair.kt @@ -1,5 +1,4 @@ package io.iohk.atala.prism.domain.models - data class KeyPair( val curve: KeyCurve? = KeyCurve.secp256k1, val privateKey: PrivateKey, diff --git a/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/Message.kt b/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/Message.kt index 13d220f62..ba9535aa7 100644 --- a/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/Message.kt +++ b/domain/src/commonMain/kotlin/io.iohk.atala.prism.domain/models/Message.kt @@ -1,5 +1,4 @@ package io.iohk.atala.prism.domain.models - data class Message( val id: String, val piuri: String,