
Detects runtime environment as an enum, exposes currentPlatform constant, offers lightweight, easy-to-integrate API and extensible hooks for telemetry-friendly platform metadata.

implementation("eu.codlab:kotlin-platform:$version")This will work on the following platforms :
Note : the library was originally made to give an enum to access the current platform but some extensions are in the work so that more information suitable for telemetry will be made available
enum class Platform {
ANDROID,
IOS,
JVM,
JS,
LINUX,
MACOS,
WINDOWS
}
val currentPlatform: Platform
implementation("eu.codlab:kotlin-platform:$version")This will work on the following platforms :
Note : the library was originally made to give an enum to access the current platform but some extensions are in the work so that more information suitable for telemetry will be made available
enum class Platform {
ANDROID,
IOS,
JVM,
JS,
LINUX,
MACOS,
WINDOWS
}
val currentPlatform: Platform