Multiplatform Compose and Gradle module metadata abuse

54 · Jake Wharton · Nov. 4, 2021, 2 p.m.
My primary work project for the better part of a year (named Redwood) is built on top of Compose1 and runs on every platform that Kotlin supports. This of course means Android, but we also have Compose running on iOS, the web, the JVM, and all other native targets. It’s truly a multiplatform Compose project2. Getting Compose to run on all these platforms isn’t as hard as you would think. The Compose runtime is written as multiplatform Kotlin code but Google only ships it compiled for Android. Je...