1.3.0 release #7

Merged
Infendro merged 13 commits from develop into main 2026-01-29 16:46:03 +00:00
3 changed files with 17 additions and 25 deletions
Showing only changes of commit 456f33f2d9 - Show all commits

View File

@@ -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
}

View File

@@ -1,8 +1,11 @@
@file:OptIn(ExperimentalWasmDsl::class)
import com.infendro.plugin.infendro
import com.infendro.plugin.token
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
group = "com.infendro"
version = "1.2.0"
version = "1.3.0"
plugins {
alias(libs.plugins.infendro)
@@ -13,9 +16,13 @@ plugins {
kotlin {
jvm()
linuxX64()
js {
nodejs()
}
linuxArm64()
mingwX64()
macosX64()
macosArm64()
js { nodejs() }
wasmJs { nodejs() }
wasmWasi { nodejs() }
repositories {
mavenCentral()
@@ -26,10 +33,6 @@ kotlin {
implementation(libs.test)
}
}
compilerOptions {
freeCompilerArgs.add("-opt-in=kotlin.ExperimentalUnsignedTypes")
}
}
publishing.repositories {

View File

@@ -1,6 +1,6 @@
[versions]
infendro = "1.0.0"
kotlin = "2.2.21"
kotlin = "2.3.0"
[plugins]
infendro = { id = "com.infendro.plugin", version.ref = "infendro" }