package com.walmart.otto.configurator;

public class Configurator {
    private String deviceIds = "Nexus6P";
    private String locales = "en";
    private String orientations = "portrait";
    private String osVersionIds = "23";
    private String gcloud = "gcloud";
    private String gsutil = "gsutil";
    private String environmentVariables = "";
    private String projectNameHash;

    private boolean fetchXMLFiles = true;
    private boolean debug = false;
    private int numShards = -1;
    private int shardIndex = -1;
    private int shardTimeout = 5;
    private int shardDuration = 120;

    public int getNumShards() {
        return numShards;
    }

    public void setNumShards(int numShards) {
        this.numShards = numShards;
    }

    public int getShardIndex() {
        return shardIndex;
    }

    public void setShardIndex(int shardIndex) {
        this.shardIndex = shardIndex;
    }

    public String getDeviceIds() {
        return deviceIds;
    }

    public void setDeviceIds(String deviceIds) {
        this.deviceIds = deviceIds;
    }

    public String getOsVersionIds() {
        return osVersionIds;
    }

    public void setOsVersionIds(String osVersionIds) {
        this.osVersionIds = osVersionIds;
    }

    public String getLocales() {
        return locales;
    }

    public void setLocales(String locales) {
        this.locales = locales;
    }

    public String getOrientations() {
        return orientations;
    }

    public void setOrientations(String orientations) {
        this.orientations = orientations;
    }

    public boolean isDebug() {
        return debug;
    }

    public void setDebug(boolean debug) {
        this.debug = debug;
    }

    public String getGcloud() {
        return gcloud;
    }

    public void setGcloud(String gcloud) {
        this.gcloud = gcloud;
    }

    public String getGsutil() {
        return gsutil;
    }

    public void setGsutil(String gsutil) {
        this.gsutil = gsutil;
    }

    public int getShardTimeout() {
        return shardTimeout;
    }

    public void setShardTimeout(int shardTimeout) {
        this.shardTimeout = shardTimeout;
    }

    public int getShardDuration() {
        return shardDuration;
    }

    public void setShardDuration(int shardDuration) {
        this.shardDuration = shardDuration;
    }

    public String getEnvironmentVariables() {
        return environmentVariables;
    }

    public void setEnvironmentVariables(String environmentVariables) {
        this.environmentVariables = environmentVariables;
    }

    public String getTestTimeBucket() {
        return "gs://" + getProjectNameHash() + "/";
    }

    public String getProjectNameHash() {
        return projectNameHash;
    }

    public void setProjectNameHash(String projectNameHash) {
        this.projectNameHash = projectNameHash;
    }

    public boolean isFetchXMLFiles() {
        return fetchXMLFiles;
    }

    public void setFetchXMLFiles(boolean fetchXMLFiles) {
        this.fetchXMLFiles = fetchXMLFiles;
    }
}

@@ -102,10 +102,14 @@
 exus
-6P
+LowRes
 %22;%0A 
@@ -228,9 +228,9 @@
 = %222
-3
+5
 %22;%0A 
@@ -380,20 +380,16 @@
 jectName
-Hash
 ;%0A%0A    p
@@ -457,12 +457,11 @@
 g = 
-fals
+tru
 e;%0A 
@@ -2650,20 +2650,16 @@
 jectName
-Hash
 () + %22/%22
@@ -2699,20 +2699,16 @@
 jectName
-Hash
 () %7B%0A   
@@ -2722,36 +2722,32 @@
 turn projectName
-Hash
 ;%0A    %7D%0A%0A    pub
@@ -2769,20 +2769,16 @@
 jectName
-Hash
 (String 
@@ -2788,20 +2788,16 @@
 jectName
-Hash
 ) %7B%0A    
@@ -2816,20 +2816,16 @@
 jectName
-Hash
  = proje
@@ -2834,12 +2834,8 @@
 Name
-Hash
 ;%0A  

Use virtual device with debug = true by default