Skip to content

Use the pure kotlin UUID for multiplatform compatibility #153

@bpappin

Description

@bpappin

in file: com.halilibo.richtext.ui.util.UUID.kt
You have it set up as an expect/actual, which means that you need to implement it for each platform.

If you replace the platform specific code with the pure kotlin: Uuid.random().toString() when you dont need to implement it for all of them.

package com.halilibo.richtext.ui.util

import kotlin.uuid.ExperimentalUuidApi
import kotlin.uuid.Uuid

@OptIn(ExperimentalUuidApi::class)
internal fun randomUUID(): String = Uuid.random().toString()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions