Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion core-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,44 @@ moduleConfig {
module = LibraryModule.CoreLogic
}

var WALTID_VERSION = "0.11.0"

dependencies {
implementation(project(LibraryModule.ResourcesLogic.path))
implementation(project(LibraryModule.BusinessLogic.path))
implementation(project(LibraryModule.AuthenticationLogic.path))

implementation(libs.androidx.biometric)

implementation(libs.waltid.did) {
exclude("com.google.crypto.tink")
exclude("org.bouncycastle")
}
implementation(libs.waltid.crypto) {
exclude("com.google.crypto.tink")
exclude("org.bouncycastle")
}
implementation("id.walt.sdjwt:waltid-sdjwt:${WALTID_VERSION}") {
exclude("com.google.crypto.tink")
exclude("org.bouncycastle")
// from: https://github.com/walt-id/waltid-identity/blob/main/waltid-libraries/sdjwt/waltid-sdjwt/README.md =>
// https://github.com/walt-id/waltid-examples/blob/main/build.gradle.kts

// required dependencies for running the example project
// implementation("id.walt.crypto:waltid-crypto:${WALTID_VERSION}")
// implementation("id.walt.credentials:waltid-verifiable-credentials:${WALTID_VERSION}")
// implementation("id.walt.did:waltid-did:${WALTID_VERSION}")
}
// implementation("id.walt.openid4vc:waltid-openid4vc:${WALTID_VERSION}")
// implementation("id.walt.policies:waltid-verification-policies:${WALTID_VERSION}")
// implementation("id.walt.dif-definitions-parser:waltid-dif-definitions-parser:${WALTID_VERSION}")

// all walt.id dependencies (not required for this project)
// implementation("id.walt.mdoc-credentials:waltid-mdoc-credentials:${WALTID_VERSION}")
// implementation(libs.waltid.service.commons)
}

excludeFromKoverReport(
excludedClasses = KoverExclusionRules.CoreLogic.classes,
excludedPackages = KoverExclusionRules.CoreLogic.packages,
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ import kotlinx.coroutines.flow.callbackFlow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.withContext
import java.util.Locale
import android.util.Log
import id.walt.crypto.keys.KeyType
import id.walt.did.dids.DidService
import id.walt.did.dids.registrar.dids.DidWebCreateOptions


enum class IssuanceMethod {
OPENID4VCI
Expand Down Expand Up @@ -251,6 +256,13 @@ class WalletCoreDocumentsControllerImpl(
}

override fun getDocumentById(documentId: DocumentId): Document? {
Log.d("WHERE", "getDoc by ID")
val options = DidWebCreateOptions(
domain = "example.com",
path = "/path/to/did.json",
keyType = KeyType.Ed25519
)
Log.d("WHERE", options.toString())
return eudiWallet.getDocumentById(documentId = documentId)
}

Expand Down
6 changes: 6 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ ktor = "3.0.1"
slf4j = "2.0.7"
gson = "2.11.0"
googlePhoneNumber = "8.13.40"
waltidCrypto = "0.11.0"
waltidDid = "0.11.0"
waltidServiceCommons = "0.11.0"
zxing = "3.5.3"
eudiWalletCore = "0.14.0"
cborTree = "0.01.02"
Expand Down Expand Up @@ -149,6 +152,9 @@ slf4j = { group = "org.slf4j", name = "slf4j-simple", version.ref = "slf4j" }
gson = { group = "com.google.code.gson", name = "gson", version.ref = "gson" }
okhttp-mockwebserver = { group = "com.squareup.okhttp3", name = "mockwebserver", version.ref = "okhttp" }
google-phonenumber = { group = "com.googlecode.libphonenumber", name = "libphonenumber", version.ref = "googlePhoneNumber" }
waltid-crypto = { module = "id.walt.crypto:waltid-crypto", version.ref = "waltidCrypto" }
waltid-did = { module = "id.walt.did:waltid-did", version.ref = "waltidDid" }
waltid-service-commons = { module = "id.walt:waltid-service-commons", version.ref = "waltidServiceCommons" }
zxing = { group = "com.google.zxing", name = "core", version.ref = "zxing" }
eudi-wallet-core = { group = "eu.europa.ec.eudi", name = "eudi-lib-android-wallet-core", version.ref = "eudiWalletCore" }
cbor-tree = { group = "com.google.iot.cbor", name = "cbor", version.ref = "cborTree" }
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ dependencyResolutionManagement {
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://maven.waltid.dev/releases")
}
mavenLocal()
}
}
Expand Down