- gradle
- https://www.cnblogs.com/qianxudetianxia/p/4948499.html
- flavor
- https://blog.csdn.net/user11223344abc/article/details/78784373
-
有时某些buildTypes-flavor结合没有意义,我们想告诉Gradle不要生成这些variants,没有问题,只需要用variant filter就可以做到在上面的代码中,我们告诉Gradle buildType=debug不要和flavor=distrib结合而buildType=release只和flavor=distrib结合,生成的Variants
-
variantFilter { variant -> if (variant.buildType.name == 'release') { variant.setIgnore(variant.getFlavors().get(1).name != 'channel') } if (variant.buildType.name == 'debug') { variant.setIgnore(variant.getFlavors().get(1).name == 'channel') } }
- jenkins
- http://jayfeng.com/2015/10/22/使用jenkins自动化构建android和ios应用/