Overview
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.
Plugins
Five plugins are provided:
com.preemptive.dasho
- Adds anobfuscate
task which will run before Gradle creates a jar file. The jar file will contain the obfuscated classes.com.preemptive.dashoJar
- Adds anobfuscateJar
task which will run after Gradle creates a jar file. An obfuscated jar file will be placed in theobfuscated_libs
directory 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, addsobfuscate[Flavor]Release
and/orobfuscate[Flavor]Debug
tasks or adds an obfuscation transform which runs before dexing.com.android.library
- Used in place of the core Android Gradle plugin. Depending on configuration, addsobfuscate[Flavor]ReleaseLibrary
and/orobfuscate[Flavor]DebugLibrary
tasks or adds an obfuscation transform.
Requirements
- Gradle 4.1
- Java 1.8
- DashO 8.1 (or later)
- If using the
com.android.application
orcom.android.library
plugin, see Version Compatibility.