Skip to content

Commit c5af7b8

Browse files
committed
Merge branch 'release/0.3.0'
2 parents a7ec6ee + 854e686 commit c5af7b8

File tree

25 files changed

+502
-395
lines changed

25 files changed

+502
-395
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
key: v1-dependencies-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "build.gradle" }}
3030

3131
# run tests!
32-
- run: ./gradlew test
32+
- run: ./gradlew test jacocoReport
3333

3434
# store test results
3535
- run:
@@ -43,6 +43,9 @@ jobs:
4343
- store_artifacts:
4444
path: ~/test-results
4545

46+
# upload test coverage report!
47+
- run: bash <(curl -s https://codecov.io/bash)
48+
4649
workflows:
4750
version: 2
4851
workflow:

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ We currently support the following DID methods:
2323
- [`web`](https://github.com/uport-project/https-did-resolver)
2424
- [`https`](https://github.com/uport-project/https-did-resolver) *DEPRECATED*
2525

26+
2627
Defaults are automatically installed but you can customize to fit your needs.
2728

2829
Support for other DID methods should be simple.
@@ -53,7 +54,7 @@ allprojects {
5354
In your application `build.gradle` file, add:
5455

5556
```groovy
56-
def did_jwt_version = "0.2.0"
57+
def did_jwt_version = "0.2.1"
5758
dependencies {
5859
//...
5960
implementation "com.github.uport-project.kotlin-did-jwt:jwt:$did_jwt_version"
@@ -133,6 +134,11 @@ so that only tokens intended for your app are considered valid.
133134

134135
## CHANGELOG
135136

137+
* 0.3.0
138+
- [breaking] remove deprecated `https-did` module, now replaced by `web-did` (#14)
139+
- add test coverage metrics (#10)
140+
- add support for arbitrary maps with `@Serializer`s as JWT payloads (#16)
141+
- remove moshi dependency (#16)
136142
* 0.2.1
137143
- add support for web DID, deprecating https DID (#5)
138144
- allow creation of JWTs with no expiry (#6)
@@ -144,4 +150,4 @@ so that only tokens intended for your app are considered valid.
144150
* 0.1.2
145151
- fix crash when parsing legacy identity document
146152
* 0.1.1
147-
- initial stable release isolating the did-jwt implementation in kotlin along with resolvers
153+
- initial stable release isolating the did-jwt implementation in kotlin along with resolvers

build.gradle

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
buildscript {
44

55
ext {
6-
kotlin_version = '1.3.31'
7-
kotlin_serialization_version = '0.11.0'
6+
kotlin_version = '1.3.41'
7+
kotlin_serialization_version = '0.11.1'
88
coroutines_version = "1.2.0"
99

1010
junit_version = "4.12"
11-
1211
mockk_version = "1.9.3"
1312
assertk_version = "0.13"
1413
detekt_version = "1.0.0-RC14"
14+
jacoco_version = "0.8.4"
1515

16-
moshi_version = "1.8.0"
1716
okhttp_version = "3.14.1"
1817

1918
bivrost_version = "v0.7.1"
@@ -22,7 +21,7 @@ buildscript {
2221
spongycastle_version = "1.58.0.0"
2322
uport_kotlin_common_version = "0.1.1"
2423

25-
current_release_version = "0.2.1"
24+
current_release_version = "0.3.0"
2625
}
2726

2827
repositories {
@@ -70,6 +69,13 @@ detekt {
7069
}
7170

7271
allprojects {
72+
73+
apply plugin: 'jacoco'
74+
75+
jacoco {
76+
toolVersion = jacoco_version
77+
}
78+
7379
repositories {
7480
google()
7581
jcenter()
@@ -111,4 +117,23 @@ apply from: "publishing.gradle"
111117

112118
task clean(type: Delete) {
113119
delete rootProject.buildDir
114-
}
120+
}
121+
122+
task jacocoReport(type: JacocoReport) {
123+
subprojects { sub ->
124+
afterEvaluate {
125+
//subproject tasks can only be gathered after evaluation
126+
def testTasks = sub.tasks.withType(Test)
127+
dependsOn testTasks
128+
executionData testTasks
129+
}
130+
classDirectories.from(file("${sub.buildDir}/classes/java/main"))
131+
classDirectories.from(file("${sub.buildDir}/classes/kotlin/main"))
132+
}
133+
134+
reports {
135+
html.enabled = true
136+
xml.enabled = true
137+
csv.enabled = false
138+
}
139+
}

ethr-did/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ dependencies {
1313
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlin_serialization_version"
1414

1515
implementation "com.github.gnosis.bivrost-kotlin:bivrost-solidity-types:$bivrost_version"
16-
implementation "com.squareup.moshi:moshi-kotlin:$moshi_version"
1716

1817
api "com.github.komputing.KEthereum:extensions:$kethereum_version"
1918
api "com.github.komputing.KEthereum:model:$kethereum_version"

https-did/src/main/java/me/uport/sdk/httpsdid/HttpsDIDDocument.kt

Lines changed: 0 additions & 48 deletions
This file was deleted.

https-did/src/main/java/me/uport/sdk/httpsdid/HttpsDIDResolver.kt

Lines changed: 0 additions & 55 deletions
This file was deleted.

https-did/src/test/java/me/uport/sdk/httpsdid/HttpsDIDResolverTest.kt

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)