项目作者: benasher44

项目描述 :
Kotlin Multiplatform UUID
高级语言: Kotlin
项目地址: git://github.com/benasher44/uuid.git
创建时间: 2019-03-07T05:07:47Z
项目社区:https://github.com/benasher44/uuid

开源协议:MIT License

下载


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)