The PreEmptive Protection - DashO Gradle Plugin allows you to integrate DashO's obfuscation and instrumentation into your existing Gradle build process. You may use one of our integrated plugins or create your own task. The DashO plugins support Gradle's UP-TO-DATE checking, so if your classes and configuration do not change between runs, the DashO tasks will be skipped, saving build time.
Five plugins are provided:
com.preemptive.dasho- Adds an
obfuscatetask which will run before Gradle creates a jar file. The jar file will contain the obfuscated classes.
com.preemptive.dashoJar- Adds an
obfuscateJartask which will run after Gradle creates a jar file. An obfuscated jar file will be placed in the
obfuscated_libsdirectory in the build output.
com.preemptive.dashoCustom- Does not add any tasks but allows you to define your own.
com.android.application- Used in place of the core Android Gradle plugin. Depending on configuration, adds
obfuscate[Flavor]Debugtasks or adds an obfuscation transform which runs before dexing.
com.android.library- Used in place of the core Android Gradle plugin. Depending on configuration, adds
obfuscate[Flavor]DebugLibrarytasks or adds an obfuscation transform.
- Gradle 4.1
- Java 1.8
- DashO 8.1 (or later)
- If using the
com.android.libraryplugin, see Version Compatibility.