Freeline is a super fast build tool for Android and an alternative to Instant Run. Caching reusable class files and resource indices, it enables incremental building Android apps, and optionally deploying the updates to your device by hot swap. Developed and used by Ant Fortune (about us) Android Team, Freeline has been significantly saving time in daily work. Inspiring by Buck and Instant Run but faster than ever, Freeline can make an incremental build in just a few seconds. No more recompile and reinstall again and again before seeing your modifications, Freeline brings life-changing development experience for Android. Freeline splits the build task into several small tasks that run concurrently. It makes full use of the compiled cache files to implement a real incremental build and uses some components of Buck such as dx and DexMerger to speed up the build tasks.
Features
- Freeline runs a socket server in a separate process on device side
- Connects with build tool on developer's machine
- Freeline uses multi-dex solution for incremental dex hot swapping
- A deeply optimized version of aapt tool (FreelineAapt) is made to generate incremental resource pack
- Freeline will automatically switch between full build and incremental build
- Freeline is also a great basis for over-the-air hotpatching