package io.mironov.smuggler.plugin

import org.gradle.api.Plugin
import org.gradle.api.Project

public class SmugglerPlugin implements Plugin<Project> {
  @Override
  public void apply(final Project project) {
    onPrepareDependencies(project)
    onPrepareTransforms(project)
  }

  private static void onPrepareDependencies(final Project project) {
    project.dependencies.add("compile", "io.mironov.smuggler:smuggler-runtime:${BuildConfig.VERSION}@aar")
  }

  private static void onPrepareTransforms(final Project project) {
    project.android.registerTransform(new SmugglerTransform(project))
  }
}

package io.mironov.smuggler.plugin

import org.gradle.api.Plugin
import org.gradle.api.Project

public class SmugglerPlugin implements Plugin<Project> {
  @Override
  public void apply(final Project project) {
    onPrepareDependencies(project)
    onPrepareTransforms(project)
  }

  private static void onPrepareDependencies(final Project project) {
    project.dependencies.add("compile", "io.mironov.smuggler:smuggler-runtime:${BuildConfig.VERSION}@aar")
    project.dependencies.add("androidTestCompile", "io.mironov.smuggler:smuggler-runtime:${BuildConfig.VERSION}@aar")
  }

  private static void onPrepareTransforms(final Project project) {
    project.android.registerTransform(new SmugglerTransform(project))
  }
}

Add smuggler-runtime to androidTestCompile dependencies
Add smuggler-runtime to androidTestCompile dependencies
