Grokking Android

Getting Down to the Nitty Gritty of Android Development

Decomposer Updates

By

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)

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:

Decomposer search feature
Decomposer search feature

And for IR like code:

Decomposer search feature in the IR
Decomposer search feature in the IR

 
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

GitHubCard repo card for writtmeyer/decomposer
Github Repo Card by codesnapshot.com
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

Wolfram Rittmeyer lives in Germany and has been developing with Java for many years before diving headfirst into Android development (with Kotlin in later years).

He has been interested in Android for quite a while and has been blogging about all kind of topics around Android.

You can find him on Mastodon and LinkedIn.