Setup WheelPickerCompose via JitPack
masterTo use WheelPickerCompose in your Android Jetpack Compose project, follow these steps:
Add the JitPack repository to your
settings.gradlefile within thedependencyResolutionManagementblock:Sync your project with Gradle files.
Add the library dependency to your module-level
build.gradlefile:(Optional) If your project targets API levels below 26, enable core library desugaring to support modern Java 8+ APIs (like
LocalDateTime) used by the picker.
// 1. settings.gradle
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
// 2. build.gradle (dependencies)
dependencies {
implementation 'com.github.commandiron:WheelPickerCompose:1.1.11'
}
// 3. build.gradle (for API < 26)
android {
compileOptions {
coreLibraryDesugaringEnabled true
}
}
dependencies {
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.6"
}