-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca6091e
commit d905353
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Enigma | ||
Gradle Plugin - Obfuscator String 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. | ||
|
||
## How integrate it? | ||
|
||
build.gradle (project) | ||
```Gradle | ||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.5.1' | ||
// Add the Enigma classpath | ||
classpath 'enigma:enigma:1.0-SNAPSHOT' | ||
} | ||
} | ||
``` | ||
|
||
build.gradle (app) | ||
```java | ||
apply plugin: 'com.android.application' | ||
|
||
// Add Enigma Plugin | ||
apply plugin: 'com.chrisney.enigma' | ||
|
||
// Set Enigma options: | ||
enigma.enabled = true | ||
enigma.hash = "LXeyH4qdtk2YqNDnLqZzX5HmPEwEwZEN" | ||
enigma.ignoredClasses = ["com.my.packagename.MainActivity.java"] | ||
|
||
android { | ||
buildTypes { | ||
release { | ||
// Don't forget to enable Progard ! | ||
minifyEnabled true | ||
} | ||
} | ||
} | ||
``` | ||
|
||
And Build you App ! | ||
```sh | ||
$ ./gradlew assembleRelease | ||
``` |