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 is a multiplatform (MPP) Kotlin library introducing support for UUID.

The main class UUID is serializable out of the box, so the library depends on kotlinx.serialization. If you don't need serialization, you don't need to apply the plugin.

Supported platforms are jvm, js(IR) and all tier 1, 2 and 3 native targets.

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 the serializable UUID class.

Link copied to clipboard

Exposed is an ORM framework for Kotlin. It has support for java.util.UUID, but to get kotlin-uuid supported you need to include the corresponding dependency and use DSL functions:

Link copied to clipboard

SQLDelight uses column adapters for custom types, like this UUID. kotlinx-uuid-sqldelight provides two adapters, a UUIDStringAdapter for a String and a ByteArrayAdapter for a ByteArray representation respectively.