Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benasher44/uuid
Kotlin Multiplatform UUID
https://github.com/benasher44/uuid
kotlin kotlin-multiplatform kotlin-native multiplatform uuid
Last synced: 4 days ago
JSON representation
Kotlin Multiplatform UUID
- Host: GitHub
- URL: https://github.com/benasher44/uuid
- Owner: benasher44
- License: mit
- Created: 2019-03-07T05:07:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-31T15:28:24.000Z (7 months ago)
- Last Synced: 2024-11-29T09:12:38.082Z (14 days ago)
- Topics: kotlin, kotlin-multiplatform, kotlin-native, multiplatform, uuid
- Language: Kotlin
- Homepage:
- Size: 1.58 MB
- Stars: 543
- Watchers: 11
- Forks: 32
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-kotlin-multiplatform - uuid - Kotlin Multiplatform UUID (Libraries / Utility)
- kmp-awesome - UUID - UUID generator (Libraries / 🔧 Utils)
README
# A Kotlin Multiplatform UUID
[![Maven Central](https://img.shields.io/maven-central/v/com.benasher44/uuid.svg?label=mavenCentral%28%29)](https://search.maven.org/artifact/com.benasher44/uuid)
[![Build Status](https://github.com/benasher44/uuid/actions/workflows/publish.yml/badge.svg)](https://github.com/benasher44/uuid/actions/workflows/publish.yml)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)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)