This repository contains the foundational shared infrastructure and debugging tools for the Kotlin Multiplatform ecosystem.
:shared:core: Core utilities, networking (Ktor), security (Encryption, Biometrics), and lifecycle management.:debug:devtool: On-device API monitor and shake-to-debug features.:debug:devtool-noop: Production "no-op" version of the devtools.
Since this is a library repository, you can integrate it into your existing KMP project using Git Submodules.
In your main project's terminal, run:
git submodule add <this-repo-url> libs/kmp-coreInclude the modules from the submodule directory:
// In your main project's settings.gradle.kts
include(":shared-core")
project(":shared-core").projectDir = file("libs/kmp-core/shared/core")
include(":debug-devtool")
project(":debug-devtool").projectDir = file("libs/kmp-core/debug/devtool")
include(":debug-devtool-noop")
project(":debug-devtool-noop").projectDir = file("libs/kmp-core/debug/devtool-noop")In your app or feature modules' build.gradle.kts:
sourceSets {
commonMain.dependencies {
implementation(project(":shared-core"))
// Conditional devtool integration
if (isDebug) { // Your debug flag
implementation(project(":debug-devtool"))
} else {
implementation(project(":debug-devtool-noop"))
}
}
}For more details on how to use the core features and debugging tools, see: