Skip to content

Commit

Permalink
Develop (#27)
Browse files Browse the repository at this point in the history
* update java version to 11

* feat: add a function to get DID document Json from a DID URI

* Update DLT.kt (#23)

* Main (#25)

* Update CODE_OF_CONDUCT.md

* Update LICENSE

* Create CONTRIBUTING.md

* Main (#26)

* Update CODE_OF_CONDUCT.md

* Update LICENSE

* Create CONTRIBUTING.md

Co-authored-by: Lance <[email protected]>
  • Loading branch information
Essbante and 2byrds authored Jun 10, 2022
1 parent 83c7b3e commit 452c95e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {

group = "com.rootsid.wal"
version = "1.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11

repositories {
mavenCentral()
Expand Down Expand Up @@ -47,6 +48,12 @@ dependencies {
implementation("org.didcommx:peerdid:0.3.0")

implementation("org.junit.jupiter:junit-jupiter:5.8.2")

// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))

// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
}

publishing {
Expand All @@ -69,6 +76,10 @@ publishing {
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
5 changes: 5 additions & 0 deletions src/main/kotlin/com/rootsid/wal/library/DLT.kt
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ fun getDidDocumentJson(wallet: Wallet, didAlias: String): String {
return getDidDocument(wallet, didAlias).didData.toProto().encodeToJsonString()
}

@OptIn(PrismSdkInternal::class)
fun getDidDocumentJson(did: String): String {
return getDidDocument(did).didData.toProto().encodeToJsonString()
}

/**
* Get did document
*
Expand Down

0 comments on commit 452c95e

Please sign in to comment.