Installation¶
Version Compatibility¶
| Kotlin version | Compose version | Compose DND version |
|---|---|---|
| 2.3.20 | 1.10.3 | 0.5.0 |
Gradle Setup¶
Add the following dependency to your module build.gradle.kts file:
Kotlin Multiplatform¶
For Kotlin Multiplatform projects, add the dependency to your commonMain source set:
kotlin {
sourceSets {
commonMain.dependencies {
implementation("com.mohamedrejeb.dnd:compose-dnd:0.5.0")
}
}
}
Version Catalog¶
If you are using a version catalog (libs.versions.toml), add the following:
[versions]
compose-dnd = "0.5.0"
[libraries]
compose-dnd = { module = "com.mohamedrejeb.dnd:compose-dnd", version.ref = "compose-dnd" }
Then reference it in your build.gradle.kts: