Skip to content

Commit 50fc922

Browse files
committed
bumped README to v0.14.0
1 parent 7d1741c commit 50fc922

2 files changed

Lines changed: 15 additions & 14 deletions

File tree

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ You can load your own custom codings at runtime to support additional document t
228228
There are two strategies for providing custom definitions:
229229

230230
- **`replaceCustom*`** – replaces the entire registry with your JSON. The built-in defaults are no longer available.
231-
- **`addCustom*`** – merges your entries into the existing registry. Built-in defaults are preserved; entries with the same key (e.g. `documentRef`) are overwritten by your version.
231+
- **`addCustom*`** – merges your entries into the existing registry. Built-in defaults are preserved; entries with the
232+
same key (e.g. `documentRef`) are overwritten by your version.
232233

233234
```kotlin
234235
val customJson = """[
@@ -337,12 +338,12 @@ val dissection: SealDissection = seal.dissect()
337338

338339
The result is a `SealDissection` with four fields:
339340

340-
| Field | Description |
341-
|--------------------|----------------------------------------------------------------------|
342-
| `header` | Byte range of the header, including all sub-fields |
343-
| `messageGroup` | Byte range of the message group, including individual TLV fields |
344-
| `signerCertificate`| Byte range of the signer certificate (IDB only, otherwise `null`) |
345-
| `signature` | Byte range of the signature (`null` for unsigned seals) |
341+
| Field | Description |
342+
|---------------------|-------------------------------------------------------------------|
343+
| `header` | Byte range of the header, including all sub-fields |
344+
| `messageGroup` | Byte range of the message group, including individual TLV fields |
345+
| `signerCertificate` | Byte range of the signer certificate (IDB only, otherwise `null`) |
346+
| `signature` | Byte range of the signature (`null` for unsigned seals) |
346347

347348
Each `FieldDissection` contains a `ByteRange(offset, length)` relative to the decoded payload bytes, and
348349
optionally a list of `children` for nested sub-fields.
@@ -364,7 +365,7 @@ for (child in d.header.children) {
364365
// Print individual TLV fields of the message group
365366
for (field in d.messageGroup.children) {
366367
val r = field.range
367-
val tagRange = field.children.getOrNull(0)?.range
368+
val tagRange = field.children.getOrNull(0)?.range
368369
val valueRange = field.children.getOrNull(2)?.range
369370
println(" ${field.label}: offset=${r.offset}, length=${r.length}")
370371
println(" Tag: bytes[${tagRange?.offset}..${tagRange?.let { it.offset + it.length - 1 }}]")
@@ -377,9 +378,9 @@ for (field in d.messageGroup.children) {
377378
```kotlin
378379
val payloadBytes =
379380
seal.payLoad.idbHeader.encoded +
380-
seal.payLoad.idbMessageGroup.encoded +
381-
(seal.payLoad.idbSignerCertificate?.encoded ?: byteArrayOf()) +
382-
(seal.payLoad.idbSignature?.encoded ?: byteArrayOf())
381+
seal.payLoad.idbMessageGroup.encoded +
382+
(seal.payLoad.idbSignerCertificate?.encoded ?: byteArrayOf()) +
383+
(seal.payLoad.idbSignature?.encoded ?: byteArrayOf())
383384
```
384385

385386
## How to include
@@ -394,7 +395,7 @@ To include this library to your Gradle build add this dependency:
394395

395396
```groovy
396397
dependencies {
397-
implementation 'de.tsenger:vdstools:0.13.0'
398+
implementation 'de.tsenger:vdstools:0.14.0'
398399
}
399400
```
400401

@@ -407,6 +408,6 @@ To include this library to your Maven build add this dependency:
407408
<dependency>
408409
<groupId>de.tsenger</groupId>
409410
<artifactId>vdstools</artifactId>
410-
<version>0.13.0</version>
411+
<version>0.14.0</version>
411412
</dependency>
412413
```

publiccode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ publiccodeYmlVersion: '0.2'
66
name: VdsTools
77
url: 'https://github.com/tsenger/vdstools'
88
releaseDate: '2026-01-07'
9-
softwareVersion: 0.13.0
9+
softwareVersion: 0.14.0
1010
softwareType: library
1111
platforms:
1212
- ios

0 commit comments

Comments
 (0)