kPlatform

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.

Android
JVM
iOS
Android Native
macOS
watchOS
tvOS
Linux
Windows
Wasm
JS
GitHub stars13
Dependents0
LicenseApache License 2.0
Creation dateabout 2 months ago

Last activityabout 1 month ago
Latest release1.2.0 (about 1 month ago)

kPlatform

This library allows easily accessing system- and runtime-information.

Currently, the API exposes the following information:

  • System memory
    • Size
    • Available
    • Used
  • Operating system
    • System family (Windows, Linux, macOS etc.)
    • Name
    • Vendor
    • Version
  • Runtime
    • Type (ART, JVM, Native etc.)
    • Name
    • Vendor
    • Version
    • Environment
    • Memory
      • Size
      • Available
      • Used

All of this information is available through the global Platform singleton.

How to use it

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.

Android
JVM
iOS
Android Native
macOS
watchOS
tvOS
Linux
Windows
Wasm
JS
GitHub stars13
Dependents0
LicenseApache License 2.0
Creation dateabout 2 months ago

Last activityabout 1 month ago
Latest release1.2.0 (about 1 month ago)

kPlatform

This library allows easily accessing system- and runtime-information.

Currently, the API exposes the following information:

  • System memory
    • Size
    • Available
    • Used
  • Operating system
    • System family (Windows, Linux, macOS etc.)
    • Name
    • Vendor
    • Version
  • Runtime
    • Type (ART, JVM, Native etc.)
    • Name
    • Vendor
    • Version
    • Environment
    • Memory
      • Size
      • Available
      • Used

All of this information is available through the global Platform singleton.

How to use it

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.