-
-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…brary to generate UUIDs for WebAssembly targets.
- Loading branch information
1 parent
df8ad6f
commit 76803ac
Showing
7 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
projects/core/koin-core/src/jsMain/kotlin/org/koin/mp/KoinPlatformTools.js.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.koin.mp | ||
|
||
import kotlin.uuid.ExperimentalUuidApi | ||
import kotlin.uuid.Uuid | ||
|
||
@OptIn(ExperimentalUuidApi::class) | ||
actual fun KoinPlatformTools.generateId(): String = Uuid.random().toString() |
7 changes: 7 additions & 0 deletions
7
projects/core/koin-core/src/jvmMain/kotlin/org/koin/mp/KoinPlatformTools.jvm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.koin.mp | ||
|
||
import kotlin.uuid.ExperimentalUuidApi | ||
import kotlin.uuid.Uuid | ||
|
||
@OptIn(ExperimentalUuidApi::class) | ||
actual fun KoinPlatformTools.generateId(): String = Uuid.random().toString() |
7 changes: 7 additions & 0 deletions
7
projects/core/koin-core/src/nativeMain/kotlin/org/koin/mp/KoinPlatformTools.native.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.koin.mp | ||
|
||
import kotlin.uuid.ExperimentalUuidApi | ||
import kotlin.uuid.Uuid | ||
|
||
@OptIn(ExperimentalUuidApi::class) | ||
actual fun KoinPlatformTools.generateId(): String = Uuid.random().toString() |
5 changes: 5 additions & 0 deletions
5
projects/core/koin-core/src/wasmJsMain/kotlin/org/koin/mp/KoinPlatformTools.wasmJs.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.koin.mp | ||
|
||
import com.benasher44.uuid.uuid4 | ||
|
||
actual fun KoinPlatformTools.generateId(): String = uuid4().toString() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters