Skip to content

Commit

Permalink
work around klib bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Nov 11, 2024
1 parent 08ec6f9 commit 51f199b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 6 additions & 0 deletions vck-openid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ kotlin {
implementation("org.json:json:${VcLibVersions.Jvm.json}")
}
}

iosTest {
dependencies {
implementation("io.arrow-kt:arrow-core:1.2.4") //work around klib bug
}
}
}
}

Expand Down
8 changes: 0 additions & 8 deletions vck/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ kotlin {
}
}

commonTest {
dependencies {
implementation("io.arrow-kt:arrow-core:1.2.4") //to make arrow's nonFatalOrThrow work in tests
implementation(kotlin("reflect"))
}
}


jvmMain {
dependencies {
implementation(signum.bcpkix.jdk18on)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package at.asitplus.wallet.lib.iso

import arrow.core.fold
import at.asitplus.signum.indispensable.cosef.*
import at.asitplus.signum.indispensable.cosef.io.ByteStringWrapper
import at.asitplus.wallet.lib.agent.DummyCredentialDataProvider
Expand Down Expand Up @@ -91,7 +90,7 @@ class Tag24SerializationTest : FreeSpec({
).getOrThrow().shouldBeInstanceOf<Issuer.IssuedCredential.Iso>()

issuedCredential.issuerSigned.namespaces!!.shouldNotBeEmpty()
val numberOfClaims = issuedCredential.issuerSigned.namespaces!!.fold(0) { acc, entry ->
val numberOfClaims = issuedCredential.issuerSigned.namespaces!!.entries.fold(0) { acc, entry ->
acc + entry.value.entries.size
}
val serialized = issuedCredential.issuerSigned.serialize().encodeToString(Base16(true))
Expand Down

0 comments on commit 51f199b

Please sign in to comment.