UUID

A Kotlin multiplatform implementation of a v4 RFC4122 UUID

License

License

Categories

Categories

Data
GroupId

GroupId

com.benasher44
ArtifactId

ArtifactId

uuid-metadata
Last Version

Last Version

0.2.3
Release Date

Release Date

Type

Type

module
Description

Description

UUID
A Kotlin multiplatform implementation of a v4 RFC4122 UUID
Project URL

Project URL

https://github.com/benasher44/uuid/
Source Code Management

Source Code Management

https://github.com/benasher44/uuid/

Download uuid-metadata

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

A Kotlin Multiplatform UUID

Maven Central Build Status Contributor Covenant

K/N doesn't have a UUID yet. This brings a UUID that matches UUIDs on various platforms:

  • iOS/Mac: NSUUID
  • Java: java.util.UUID

UUID

  • Frozen
  • Thread-safe (thread-safe randomness in native)
  • Adheres to RFC4122
  • Tested
  • Tested against macOS/iOS UUID to verify correctness

Setup

In your build.gradle(.kts):

  • Add mavenCentral() to your repositories
  • Add implementation "com.benasher44:uuid:<version>" as a dependency in your commonMain sourceSets.

This library publishes gradle module metadata, so you should have enableFeaturePreview("GRADLE_METADATA") in your settings.gradle(.kts).

Future Goals

  • Develop UUID functionality that can be contributed back to the Kotlin stdlib (see latest issues, PRs, and CHANGELOG.md for updates)

Versions

Version
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1