MohamedRejeb / compose-dnd

Compose DND is a library that allows you to easily add drag and drop functionality to your Jetpack Compose or Compose Multiplatform projects.
Apache License 2.0
299 stars 7 forks source link

Unresolved reference to com.mohamedrejeb #12

Closed islamYMansour closed 2 months ago

islamYMansour commented 2 months ago

Description

I'm trying to use the compose-dnd library in my project which is java project and I make an upgrade for some screens using jetcompose, but I'm encountering an unresolved reference issue when attempting to import the library.

Steps to Reproduce Added the following dependency to build.gradle:

groovy

implementation 'com.mohamedrejeb.dnd:compose-dnd:0.2.0'

Tried to import the library in my Kotlin file:

import com.mohamedrejeb.compose.dnd.annotation.ExperimentalDndApi
import com.mohamedrejeb.compose.dnd.drop.dropTarget
import com.mohamedrejeb.compose.dnd.reorder.ReorderContainer
import com.mohamedrejeb.compose.dnd.reorder.ReorderableItem

I receive an unresolved reference error for mohamedrejeb

Additional Information Android Studio version: Android Studio Electric Eel | 2022.1.1 Kotlin version: 1.7.9 Compose version: 1.2.0

Could you please provide guidance on resolving this issue or update the documentation with the correct usage instructions?

Thank you!

MohamedRejeb commented 2 months ago

Make sure that you have mavenCentral() here: https://github.com/MohamedRejeb/compose-dnd/blob/15c8c9582e62fba59c87dab3904c66920096547c/settings.gradle.kts#L18

islamYMansour commented 1 month ago

@MohamedRejeb could you give me a sample for ordering like Kanaban board?

MohamedRejeb commented 1 month ago

You can check the reorder sample: https://github.com/MohamedRejeb/compose-dnd/blob/main/sample/common/src/commonMain/kotlin/ui/ReorderListScreen.kt