JiaGuExtension

在Gradle中配置的"jiagu"参数实例映射
open class JiaGuExtension(home: String?,username: String?,password: String?,signingConfig: SigningConfig?,charsetName: String)

Constructors

<init>
Link copied to clipboard
fun <init>(home: String?, username: String?, password: String?, signingConfig: SigningConfig?, charsetName: String)

Functions

buildTypes
Link copied to clipboard
需要加固的编译类型,如 release debug
open fun buildTypes(vararg buildTypes: Array<Out String>): JiaGuExtension
configs
Link copied to clipboard
添加加固的配置选项
open fun configs(vararg configs: Array<Out String>): JiaGuExtension
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getBuildTypes
Link copied to clipboard
获取加固的编译类型
fun getBuildTypes(): Set<String>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
isJiaGuBuildType
Link copied to clipboard
判断当前的编译类型buildType是否需要加固
fun isJiaGuBuildType(buildType: String): Boolean
toString
Link copied to clipboard
open override fun toString(): String
validateJiaGuParams
Link copied to clipboard
进行加固参数校验
fun validateJiaGuParams()

Properties

buildTypeAssemblePaths
Link copied to clipboard
组成编译命令,如 assembleRelease
val buildTypeAssemblePaths: Array<String>
charsetName
Link copied to clipboard
控制台输出编码方式,360加固在某些终端上输出信息会有乱码存在
var charsetName: String
home
Link copied to clipboard
360加固可执行程序的根目录是根目录
var home: String?
jiaGuConfig
Link copied to clipboard
获取加固的可选配置
val jiaGuConfig: String?
password
Link copied to clipboard
360加固的登录密码
var password: String?
signingConfig
Link copied to clipboard
apk的签名文件,默认自动获取android配置下的签名文件
var signingConfig: SigningConfig?
username
Link copied to clipboard
360加固的用户名
var username: String?