Skip to content

NiLuogege/autoPackage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 

Repository files navigation

autoPackage

一键自动化打release包,并实现加固且生成渠道包(360加固+walle多渠道打包)

介绍

该工具使用 360加固宝进行加固 ,walle进行多渠道打包,并使用gradle plugin进行封装成自动化脚本,实现 一键 完成 release + 加固 + 渠道包 全流程

接入

  1. 将demo中的 tools文件夹下载下来放到自己 app module下(和src同级)如图 如图

  2. 根目录下的build.gradle 中添加

classpath 'com.niluogege:auto-package:2.0.1'
  1. 在APP下的build。gradle中引用插件如下图 如图

  2. gradle.properties 中间行 必要参数的配置(具体含义看截图或者demo)
    如图

  3. 执行 autoPackage 就可以 一键 release + 加固 + 渠道包 了
    如图

问题

其实每家公司在打包发布这个环节上虽说大体流程是一致的,但是也存在各种各样微小的的差异,比如说我在打包之前需要判断某个文件是否存在,这种情况下就很难直接使用autoPackage。这种情况下就需要自己对autoPackage进行修改呢?具体实现的话有如下两种方式。

  1. 使用本地maven仓库的形式。 这种方法其实就是将autoPackage当做module进行依赖,然后将module输出到本地maven仓库再进行依赖。具体的操作demo中有描述。在此不再赘述
  2. 创建独立.gradle 文件进行task编写。 具体实现步骤简单描述
    1. 本目录下创建.gradle文件进行task编写
    2. app.gradle中进行依赖

License

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.

About

自动打包加固打渠道包

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published