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
203 Stars 17 Forks MIT License 126 Commits 5 Opened issues

Description

Kotlin Multiplatform UUID

Services available

!
?

Need anything else?

Contributors list

# 19,267
Swift
React
Objecti...
cocoapo...
102 commits
# 99,689
php7
Shell
Symfony
intervi...
10 commits
# 141,846
SQL
Shell
poco
XML
2 commits
# 138,300
kotlin-...
kotlin-...
kotlin-...
kotlin-...
1 commit
# 32,665
Kotlin
kotlin-...
reddit
Gradle
1 commit
# 147,810
Kotlin
kotlin-...
kotlin-...
kotlin-...
1 commit
# 197,193
C++
Kotlin
kotlin-...
Maven
1 commit
# 55,910
Kotlin
github-...
Java
Android
1 commit
# 68,204
Kotlin
Shell
Android
conemu
1 commit

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. If you're using Gradle prior to version 6, 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.