Adding Decompose into the Jetbrains KMM/Compose template
See original GitHub issueI started a project with the default template crated by IDEA for a KMM Compose project:
Now I’m trying to add Decompse in, and it is having some issues.
I added the dependency to common/build.gradle.kts
as such:
...
sourceSets {
val commonMain by getting {
dependencies {
api(compose.runtime)
api(compose.foundation)
api(compose.material)
api(compose.ui)
implementation("com.arkivanov.decompose:decompose:0.1.8")
implementation("com.arkivanov.decompose:extensions-compose-jetbrains:0.1.8")
}
}
...
However in source files inside commonMain
the IDE doesn’t know about the classes. I can add them via manual import, but still, that seems like a problem, has anyone else encountered this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
File templates | IntelliJ IDEA Documentation - JetBrains
Learn about using templates for creating new files in IntelliJ IDEA. ... ${NAME} inserts the name provided by the user when adding the...
Read more >Templates with multiple files - IntelliJ IDEA - JetBrains
This tutorial shows how you can add a template that creates all three files at once. In the Settings/Preferences dialog ( Ctrl+Alt+S ),...
Read more >Generate custom code constructs using live templates | IntelliJ ...
Alternatively, on the Code menu, click Insert Live Template Ctrl+J to open the suggestion list and select the necessary template.
Read more >File and Code Templates - IntelliJ IDEA - JetBrains
Use this page to view, edit, and create file templates. ... Add a child template to the selected template to create a set...
Read more >Live templates | IntelliJ IDEA Documentation - JetBrains
Use live templates to insert common constructs into your code, such as loops, conditions, declarations, or print statements.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah that does it, thanks!
I used Android Studio 4.2 Beta 4, openjdk 14.0.2