Skip to content

Commit 1702f27

Browse files
committed
Release 1.2.0
1 parent 22452e2 commit 1702f27

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Several other git repositories are included as submodules. Please clone this rep
1717

1818
This Kotlin library is a [mulitplatform project](https://kotlinlang.org/docs/multiplatform.html), with targets for JVM and JavaScript.
1919

20+
[![](https://jitpack.io/v/ehn-dcc-development/hcert-kotlin.svg)](https://jitpack.io/#ehn-dcc-development/hcert-kotlin)
21+
2022
## Usage (JVM)
2123

2224
The main class for encoding and decoding HCERT data is `ehn.techiop.hcert.kotlin.chain.Chain`. For encoding, pass an instance of a `GreenCertificate` (data class conforming to the DCC schema) and get a `ChainResult`. That object will contain all revelant intermediate results as well as the final result (`step5Prefixed`). This final result can be passed to a `DefaultTwoDimCodeService` that will encode it as a 2D QR Code.
@@ -376,9 +378,7 @@ On other platforms, Napier's respective default platform-specific logger should
376378

377379
## Publishing
378380

379-
To publish this package to GitHub, create a personal access token (read <https://docs.github.com/en/packages/guides/configuring-gradle-for-use-with-github-packages>), and add `gpr.user` and `gpr.key` in your `~/.gradle/gradle.properties` and run `./gradlew publish`
380-
381-
The library is also published on jitpack.io: [![](https://jitpack.io/v/ehn-dcc-development/hcert-kotlin.svg)](https://jitpack.io/#ehn-dcc-development/hcert-kotlin).
381+
The library is also published on [jitpack.io](https://jitpack.io/#ehn-dcc-development/hcert-kotlin).
382382

383383
Use it in your project like this:
384384

@@ -388,8 +388,8 @@ repositories {
388388
}
389389
390390
dependencies {
391-
implementation 'com.github.ehn-dcc-development:hcert-kotlin:1.1.1-SNAPSHOT'
392-
implementation 'com.github.ehn-dcc-development:hcert-kotlin-jvm:1.1.1-SNAPSHOT'
391+
implementation 'com.github.ehn-dcc-development:hcert-kotlin:1.2.0'
392+
implementation 'com.github.ehn-dcc-development:hcert-kotlin-jvm:1.2.0'
393393
}
394394
```
395395

@@ -402,6 +402,10 @@ Version 1.2.0:
402402
- Add option to get a data class with "nice" names when validating in JS (equivalent to JVM)
403403
- API change: GreenCertificate now uses arrays for test/vaccination/recovery
404404
- Add `certificateSubjectCountry` to `VerificationResult`, to get the country of the HCERT's signature certificate
405+
- Relax schema validation once more to allow explicit `null` values for `nm`, `ma` in HCERT Test entries
406+
407+
Version 1.1.1:
408+
- Change `tc` (`testingFacility`) in HCERT Test entries to optional, i.e. nullable String
405409

406410
Version 1.1.0:
407411
- Try to parse as many dates and datetimes as possible

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "ehn.techiop.hcert"
10-
version = "1.2.0-SNAPSHOT"
10+
version = "1.2.0"
1111

1212
java.sourceCompatibility = JavaVersion.VERSION_1_8
1313

0 commit comments

Comments
 (0)