About Freeline
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
Good fit for
- Faster Android debug builds
- Hot swapping code and resources onto a device
Freeline: questions and answers
- What is Freeline used for?
- 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. It is a good fit for faster Android debug builds, and hot swapping code and resources onto a device.
- Is Freeline open source?
- Yes. Freeline is open source under the BSD-3-Clause licence. Its source code is on GitHub at alibaba/freeline and is written mainly in Java.
- Is Freeline free?
- Yes. Freeline is open source, so the software itself is free to use.
- Can I self-host Freeline?
- Yes. Freeline can be self-hosted on your own server or infrastructure.
- What is Freeline an alternative to?
- Freeline is an open-source alternative to Super. Other open-source alternatives to Super include Notion API Worker.
- Is Freeline actively maintained?
- The most recent commit to Freeline was on 10 May 2020, and the latest release is 0.8.8, published on 8 November 2017. The project has 5.4k stars on GitHub.
