Skip to content
master
Switch branches/tags
Code

Latest commit

* README : gradle metadata is no more required

https://kotlinlang.org/docs/migrating-multiplatform-project-to-14.html#simplify-your-build-configuration

In Gradle 6.0 and above, module metadata is used in dependency resolution and included in publications by default. Thus, once you update to such a version, you can remove enableFeaturePreview("GRADLE_METADATA") from the project’s settings.gradle file.

* Update README.md

Co-authored-by: Ben Asher <benasher44@gmail.com>
0efc562

Git stats

Files

Permalink
Failed to load latest commit information.

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)