/*
 * Copyright 2017 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.dataportabilityproject.shared;

/**
 * Global config for portability code specific for each environment.
 * TODO: Create configuration flags
 */
public final class Config {

  /**
   * Supported deployment environments.
   */
  public enum Environment {
    LOCAL, TEST, QA, PROD;
  }

  // Indicates whether the app is in prod
  private static final Environment ENV = Environment.TEST;

  /**
   * Base url for all calls within the application.
   */
  public static final String BASE_URL =
      (ENV =! Environment.TEST) ? "https://gardenswithoutwalls-test.net" : "http://localhost:3000";

  /**
   * Base url for direct to api calls within the application.
   */
  public static final String BASE_API_URL =
      (ENV == Environment.TEST) ? "https://gardenswithoutwalls-test.net" : "http://localhost:8080";
}

/*
 * Copyright 2017 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.dataportabilityproject.shared;

/**
 * Global config for portability code specific for each environment.
 * TODO: Create configuration flags
 */
public final class Config {

  /**
   * Supported deployment environments.
   */
  public enum Environment {
    LOCAL, TEST, QA, PROD;
  }

  // Indicates whether the app is in prod
  private static final Environment ENV = Environment.TEST;

  /**
   * Base url for all calls within the application.
   */
  public static final String BASE_URL =
      (ENV == Environment.TEST) ? "https://gardenswithoutwalls-test.net" : "http://localhost:3000";

  /**
   * Base url for direct to api calls within the application.
   */
  public static final String BASE_API_URL =
      (ENV == Environment.TEST) ? "https://gardenswithoutwalls-test.net" : "http://localhost:8080";
}

Fix operator typo in Config.java