Back to project page GreenDroid.
The source code is released under:
Apache License
If you think the Android project GreenDroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright (C) 2010 Cyril Mottier (http://www.cyrilmottier.com) */*w w w . j ava 2 s . c o m*/ * 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 * * http://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 greendroid.util; /** * Information about the current GreenDroid build. * * @author Cyril Mottier */ @SuppressWarnings("all") public class Config { private Config() { } private static final int GD_LOG_LEVEL_INFO = 3; private static final int GD_LOG_LEVEL_WARNING = 2; private static final int GD_LOG_LEVEL_ERROR = 1; private static final int GD_LOG_LEVEL_NONE = 0; /** * Set this flag to GD_LOG_LEVEL_NONE when releasing your application in * order to remove all logs generated by GreenDroid. */ private static final int GD_LOG_LEVEL = GD_LOG_LEVEL_NONE; /** * Indicates whether info logs are enabled. This should be true only when * developing/debugging an application/the library */ public static final boolean GD_INFO_LOGS_ENABLED = (GD_LOG_LEVEL == GD_LOG_LEVEL_INFO); /** * Indicates whether warning logs are enabled */ public static final boolean GD_WARNING_LOGS_ENABLED = GD_INFO_LOGS_ENABLED || (GD_LOG_LEVEL == GD_LOG_LEVEL_WARNING); /** * Indicates whether error logs are enabled. Error logs are usually always * enabled, even in production releases. */ public static final boolean GD_ERROR_LOGS_ENABLED = GD_WARNING_LOGS_ENABLED || (GD_LOG_LEVEL == GD_LOG_LEVEL_ERROR); }