
Easily access system and runtime details: memory (size/available/used), OS family/name/vendor/version, runtime type/name/vendor/version/environment and memory, exposed via a global Platform singleton.
This library allows easily accessing system- and runtime-information.
Currently, the API exposes the following information:
All of this information is available through the global Platform singleton.
First, add the official Maven Central repository to your settings.gradle.kts:
dependencyResolutionManagement {
repositories {
maven("https://central.sonatype.com/repository/maven-snapshots")
mavenCentral()
}
}Then add a dependency on the library in your root buildscript:
kotlin {
sourceSets {
commonMain {
dependencies {
implementation("dev.karmakrafts.kplatform:kplatform-core:<version>")
}
}
}
}Or, if you are only using Kotlin/JVM, add it to your top-level dependencies block instead.
This library allows easily accessing system- and runtime-information.
Currently, the API exposes the following information:
All of this information is available through the global Platform singleton.
First, add the official Maven Central repository to your settings.gradle.kts:
dependencyResolutionManagement {
repositories {
maven("https://central.sonatype.com/repository/maven-snapshots")
mavenCentral()
}
}Then add a dependency on the library in your root buildscript:
kotlin {
sourceSets {
commonMain {
dependencies {
implementation("dev.karmakrafts.kplatform:kplatform-core:<version>")
}
}
}
}Or, if you are only using Kotlin/JVM, add it to your top-level dependencies block instead.