I posted this on compose-desktop, but just in case...
# multiplatform
m
I posted this on compose-desktop, but just in case anyone is thinking about creating a desktop app and wondering about size/performance: Bundle size was 171MB before Proguard. 92MB after Proguard (for a real app with dozens of screens: on Android our debug APK is 35MB, release APK after shrinking is 10.5MB). That bundle size includes a JVM runtime for the app. The Compose/desktop result is definitely competitive with what you get using Electron etc. Tips/issues written up here: https://medium.com/@mike_21858/using-proguard-with-jetpack-compose-desktop-size-reduction-performance-gains-and-pain-481a014c6b0a
jetpack compose 8
🚀 1
🎉 1
❤️ 1
j
Thanks for sharing! I wonder if it's also possible to create a build without a bundled JVM, but instead use the one installed on the machine?
m
It definitely should be possible. I think that would be a viable approach for Ubuntu (where the .deb package can just refer to JVM as a dependency)
On Windows, I'm not sure how well that would work