Benasher44 Uuid Save

Kotlin Multiplatform UUID

Project README

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. 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)
Open Source Agenda is not affiliated with "Benasher44 Uuid" Project. README Source: benasher44/uuid
Stars
478
Open Issues
5
Last Commit
1 month ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating