在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):christopherney/Enigma开源软件地址(OpenSource Url):https://github.com/christopherney/Enigma开源编程语言(OpenSource Language):Java 95.0%开源软件介绍(OpenSource Introduction):EnigmaGradle Plugin - Obfuscator Strings Encryption (Android/Java) This project is a simple Gradle plugin to help you to encrypt all String values of your Android Java code at the compilation time. Important: Enigma plugin won't execute if your project is not managed by a SCM tool such as git or SVN. Recommended: commit your changes before compile your app with Enigma activated Links:
How integrate it?First of all, be sure that a SCM is initialized in your project, such as Git for example: $ cd /path/of/your/project/
$ git init
$ git add .
$ git commit -m "Initial commit" build.gradle (project) buildscript {
repositories {
google()
jcenter()
// Add Maven repo
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
// Add the Enigma classpath
classpath 'gradle.plugin.chrisney:enigma:1.0.0.8'
}
} build.gradle (app) apply plugin: 'com.android.application'
// Add Enigma Plugin
apply plugin: 'com.chrisney.enigma'
// Set Enigma options:
enigma.enabled = true
enigma.injectFakeKeys = true
enigma.ignoredClasses = ["com.my.packagename.MainActivity.java"]
android {
buildTypes {
release {
// Don't forget to enable ProGuard !
minifyEnabled true
}
}
} Compile your AppDuring the compilation process, Enigma plugin will:
$ ./gradlew assembleRelease 全部评论
专题导读
热门推荐
热门话题
阅读排行榜
|
请发表评论