In my last post about the Compose Compiler Plugin I mentioned the tool Decomposer and used it in my recent talks also for a live demo as to what the resulting code for converted Composables looks like.
Decomposer originally was only available for Kotlin 2.1 - and sadly nowadays seems to be abandoned.
So for now I have made two changes on my fork:1)
- Updating to newer Kotlin versions
- Adding a search feature
Kotlin 2.4
Well, yes, I know Kotlin 2.5 has been released. But I made these changes before. So this tool now works seamlessly with Kotlin 2.4. And I promise to update it to Kotlin 2.5 soonish.
Search
I've also added the possibility to search in the pane that shows the code. When you have made some changes in the Composable you want to find this in the generated code quickly. And since the generated code can quickly become quite huge, I myself missed search a lot. So now it's there.
For Kotlin like code:

And for IR like code:

Right now only in the code pane. If you want to search for something else, please let me know.
You can find the repo on github: writtmeyer/decomposer

Footnotes
| ↑1 | I have created a PR on the original repo for the first one. Should this ever be merged, I will create a PR for the other changes as well |
|---|