bump version to 1.3.0
This commit is contained in:
21
README.md
21
README.md
@@ -7,17 +7,10 @@ Supported encodings:
|
||||
- Base8 (octal)
|
||||
- Base16 (hexadecimal)
|
||||
- Base32
|
||||
- Base36
|
||||
- Base62
|
||||
- Base64
|
||||
|
||||
## Targets
|
||||
|
||||
| Target | Status |
|
||||
|------------------|---------------|
|
||||
| JVM | Supported |
|
||||
| JavaScript | Supported |
|
||||
| Native (Linux) | Supported |
|
||||
| Native (Windows) | Not Supported |
|
||||
|
||||
## Installation
|
||||
|
||||
Add the following to your `build.gradle.kts`.
|
||||
@@ -28,23 +21,19 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.infendro:encoding:1.2.0")
|
||||
implementation("com.infendro:encoding:1.3.0")
|
||||
}
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```kotlin
|
||||
import com.infendro.encoding.Base16
|
||||
|
||||
fun main() {
|
||||
// the string to encode
|
||||
val test = "Hello World!"
|
||||
.encodeToByteArray().asUByteArray()
|
||||
val test = "Hello World!".encodeToByteArray()
|
||||
|
||||
// encode the string with the desired encoding
|
||||
val encoded = Base16.encode(test)
|
||||
.asByteArray().decodeToString()
|
||||
val encoded = Base16.encode(test).decodeToString()
|
||||
|
||||
println(encoded) // 48656c6c6f20576f726c6421
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user