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

There is a newer version: 0.18.1
Show 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) {
    Object value = project.findProperty(PREFIX + "." + propName);
    if (value == null) {
      return defaultValue;
    }
    return Boolean.parseBoolean(value.toString());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy