PreEmptive Protection - DashO Gradle v2.3 User Guide

Overview

The PreEmptive Solutions 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 an obfuscate task which will run before Gradle creates a jar file. The jar file will contain the obfuscated classes.
  • com.preemptive.dashoJar - Adds an obfuscateJar task which will run after Gradle creates a jar file. An obfuscated jar file will be placed in the obfuscated_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, adds obfuscate[Flavor]Release and/or obfuscate[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, adds obfuscate[Flavor]ReleaseLibrary and/or obfuscate[Flavor]DebugLibrary tasks or adds an obfuscation transform.

Requirements

  1. Gradle 3.3
  2. Java 1.8
  3. DashO 8.1 (or later)
  4. If using the com.android.application or com.android.library plugin, see Version Compatibility.

PreEmptive Protection - DashO Gradle Version 2.3.2.21+7441f77. Copyright © 2017 PreEmptive Solutions, LLC