Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 1.91 KB

File metadata and controls

57 lines (46 loc) · 1.91 KB

AndroidUtil

Android Version License API

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.

Setup

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):

  1. Add the library to gradle/libs.versions.toml:
[versions]
androidUtil = "<current_version>"

[libraries]
android-util = { module = "com.github.philipk99:android-util", version.ref = "androidUtil" }
  1. Then use the alias in your module's build.gradle.kts:
implementation(libs.android.util)

Compatibility

  • Kotlin 2.2.20
  • Jetpack Compose BOM 2025.10.00
  • Android SDK: minSdk 28

License

MIT License — see LICENSE for details.