All Downloads are FREE. Search and download functionalities are using the official Maven repository.

wtf.emulator.EwProperties Maven / Gradle / Ivy

Go to download

With this Gradle plugin you can run your Android instrumentation tests with emulator.wtf

The newest version!
package wtf.emulator;

import org.gradle.api.Project;

public enum EwProperties {
  ADD_REPOSITORY("addrepository");

  private static final String PREFIX = "wtf.emulator";

  private final String propName;

  EwProperties(String propName) {
    this.propName = propName;
  }

  public boolean getFlag(Project project, boolean defaultValue) {
    String value = GradleCompatFactory.get(project.getGradle()).
        getGradleProperty(project, PREFIX + "." + propName);
    if (value == null) {
      return defaultValue;
    }
    return Boolean.parseBoolean(value);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy