A small personal Android/Kotlin utility library with snippets I use across most of my projects. Many snippets were collected from various sources over time — some are slightly altered, some are copied as-is. The library is shared here for use with JitPack.
Add the maven library bucket to the dependencyResolutionManagement.repositories block in settings.gradle.kts file as follows:
dependencyResolutionManagement {
...
repositories {
...
maven("https://jitpack.io")
}
}Install the library to the project in the desired module's build.gradle.kts file. Replace <current_version> with the actual version.
Option A — Direct dependency (no Version Catalog):
implementation("com.github.philipk99:android-util:<current_version>")Option B — Using Gradle Version Catalog (libs.versions.toml):
- Add the library to
gradle/libs.versions.toml:
[versions]
androidUtil = "<current_version>"
[libraries]
android-util = { module = "com.github.philipk99:android-util", version.ref = "androidUtil" }- Then use the alias in your module's
build.gradle.kts:
implementation(libs.android.util)- Kotlin 2.2.20
- Jetpack Compose BOM 2025.10.00
- Android SDK: minSdk 28
MIT License — see LICENSE for details.