Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to use BasicRichTextEditor without using material #502

Open
sylvain-barrepersyn opened this issue Feb 5, 2025 · 2 comments
Open

Comments

@sylvain-barrepersyn
Copy link

Hello :)

Is it possible to remove the dependency to material (and material 3) components when using Basic* ?

Steps to reproduce:

  1. Add these lines in your build.gradle.kts:
configurations.all {
    exclude(group = "org.jetbrains.compose.material", module = "material")
    exclude(group = "org.jetbrains.compose.material3", module = "material3")
}
  1. Use BasicRichTextEditor in your code base without any MaterialTheme:
val state = rememberRichTextState()
BasicRichTextEditor(state = state)

it will result in:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: androidx/compose/material3/TextKt
    com.mohamedrejeb.richeditor.ui.BasicRichTextEditorKt.BasicRichTextEditor(BasicRichTextEditor.kt:197)
    com.mohamedrejeb.richeditor.ui.BasicRichTextEditorKt.BasicRichTextEditor(BasicRichTextEditor.kt:102)
    ...
@MohamedRejeb
Copy link
Owner

Hello
Thanks for opening this issue, I will check it.

@sylvain-barrepersyn
Copy link
Author

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants