Menu

I built an open-source tool to edit Jetpack Compose on-device via AST mutations (No Gradle rebuilds)
📰

I built an open-source tool to edit Jetpack Compose on-device via AST mutations (No Gradle rebuilds)

DEV Community: android·GALAL ALDEEN ABAS·about 22 hours ago
#xiVBJj2K
#devtoandroid#devto#dev#compose#build
Reading 0:00
15s threshold

Every Android developer knows the frustration of the iteration loop in Jetpack Compose. While Live Edit has improved, it remains volatile—your changes disappear the moment the process restarts. On the other hand, triggering a full Gradle build just to tweak padding, colors, or layout hierarchy eats up minutes of valuable engineering time.

To solve this, I built ComposeBridge —an open-source system that decouples UI tuning from your physical workstation and turns your actual device into a live AST code controller.

🛠 How It Works Under the Hood

ComposeBridge isn't just an in-memory preview swapper. It applies permanent, compile-ready modifications:

AST-Guided Source Mutation: When you adjust a UI token or modifier on your physical device, the operational delta is sent back to your host machine over an encrypted tunnel.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.