Android Studio 乐固加固插件,更方便,更快捷。
配置工程根目录build.gradle
buildscript {
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.iwdael:droidreinforce:$version'
}
}
配置App Module下build.gradle
apply plugin: 'com.iwdael.droidreinforce'
reinforceConfig {
secretId = 'xxxxxx'
secretKey = 'xxxxxx'
jks = './xxxxxx'
alias = 'xxxxxx'
password = 'xxxxxx'
apkDir = ['normal/release']
}
查看配置信息:
Gradle -> 项目名 -> App module name -> Tasks -> android reinforce -> version
加固:
Gradle -> 项目名 -> App module name -> Tasks -> android reinforce -> reinforce
加固完成后,即可在根目录找到文件夹(.reienforce/output),其中包含历史加固的Apk