一键自动化打release包,并实现加固且生成渠道包(360加固+walle多渠道打包)
该工具使用 360加固宝进行加固 ,walle进行多渠道打包,并使用gradle plugin进行封装成自动化脚本,实现 一键 完成 release + 加固 + 渠道包 全流程
classpath 'com.niluogege:auto-package:2.0.1'
其实每家公司在打包发布这个环节上虽说大体流程是一致的,但是也存在各种各样微小的的差异,比如说我在打包之前需要判断某个文件是否存在,这种情况下就很难直接使用autoPackage。这种情况下就需要自己对autoPackage进行修改呢?具体实现的话有如下两种方式。
- 使用本地maven仓库的形式。 这种方法其实就是将autoPackage当做module进行依赖,然后将module输出到本地maven仓库再进行依赖。具体的操作demo中有描述。在此不再赘述
- 创建独立.gradle 文件进行task编写。
具体实现步骤简单描述
- 本目录下创建.gradle文件进行task编写
- app.gradle中进行依赖
Copyright 2016 Zheng Zibin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.