Need help with uuid?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

benasher44
144 Stars 10 Forks MIT License 106 Commits 6 Opened issues

Description

Kotlin Multiplatform UUID

Services available

!
?

Need anything else?

Contributors list

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:"
    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)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.