Revision control
Copy as Markdown
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
package org.mozilla.focus.utils;
import org.mozilla.focus.BuildConfig;
@SuppressWarnings("unused") // These methods may be useful in the future.
public final class AppConstants {
private static final String BUILD_TYPE_DEBUG = "debug";
private static final String BUILD_TYPE_RELEASE = "release";
private AppConstants() {}
public static boolean isDevBuild() {
return BUILD_TYPE_DEBUG.equals(BuildConfig.BUILD_TYPE);
}
public static boolean isReleaseBuild() {
return BUILD_TYPE_RELEASE.equals(BuildConfig.BUILD_TYPE);
}
}