Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherney authored Oct 11, 2019
1 parent ca6091e commit d905353
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions README.md
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
```

0 comments on commit d905353

Please sign in to comment.