Freeline
Freeline is an open-source build tool for Android that does incremental builds and can hot-swap updates onto a device, as an alternative to Instant Run.
- GitHub stars
- 5.4k
- Last commit
- 6 yr ago
- Latest release
- 0.8.8
- Licence
- BSD-3-Clause
Freeline speeds up Android development by caching reusable class files and resource indices so that only changes are rebuilt. It can also deploy the updates to a device by hot swap, so there is no repeated recompile and reinstall cycle before seeing a change.
It splits the build into small concurrent tasks, reuses compiled cache files for real incremental builds, and borrows Buck components such as dx and DexMerger. A socket server on the device connects to the build tool, so deployment still works if the main process crashes. An optimised aapt variant, FreelineAapt, produces incremental resource packs.
It targets standard Android Gradle projects with multiple modules and runs on Windows, Linux and Mac. It switches automatically between full and incremental builds. It was developed and used by the Ant Fortune Android team, and is licensed BSD 3-Clause.
Key features
- Incremental builds with optional hot swap deployment
- Speeds up multi-module Gradle projects
- Hot swaps native .so libraries without rebuilding
- Switches between full and incremental builds automatically
- Builds incremental dex and resource packs











