本文共 696 字,大约阅读时间需要 2 分钟。
前提条件:安装python 2.7版本
在项目级配置文件build.gradle中添加以下内容
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.0' classpath 'com.antfortune.freeline:gradle:0.8.6' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}
在模块级配置文件build.gradle中添加以下内容
apply plugin: 'com.antfortune.freeline'
执行以下命令初始化项目, 这一步会等待比较长的时间
使用Freeline编译项目
python freeline.py
python freeline.py --help 查看帮助信息
python freeline.py -f 强制全量编译
参考资料
官方网站:https://www.freelinebuild.com/
原理:
https://yq.aliyun.com/articles/62334
https://yq.aliyun.com/articles/59122
类似的工具facebook buck