kotlinx-uuid

This is a fork from https://github.com/cy6erGn0m/kotlinx-uuid, released under Apache 2.

The main implementation was thankfully provided by Sergey Mashkov (cy6erGn0m)!

kotlinx-uuid adds helper methods to kotlin.uuid.Uuid added to Kotlin stdlib starting 2.0.20.

Install

This package is uploaded to mavenCentral.

repositories {
mavenCentral()
}

dependencies {
implementation("app.softwork:kotlinx-uuid-core:LATEST")
}

All modules:

Link copied to clipboard

This core module contains several helper methods for the kotlin.uuid.Uuid class, like timestamp, variant, version.

Link copied to clipboard

SQLDelight uses column adapters for custom types, like kotlin.uuid.Uuid. kotlinx-uuid-sqldelight provides two adapters, a app.softwork.uuid.sqldelight.UuidStringAdapter for a String and a app.softwork.uuid.sqldelight.UuidByteArrayAdapter` for a ByteArray representation respectively.