use auto-generated BuildConstants class instead of my own act-alike

This commit is contained in:
Eric House 2013-12-03 07:15:03 -08:00
parent b5d6c513a6
commit 3ccc9ac0f1
5 changed files with 4 additions and 8 deletions

View file

@ -93,7 +93,6 @@
<arg value="${INITIAL_CLIENT_VERS}" />
<arg value="${CHAT_ENABLED}" />
<arg value="${THUMBNAIL_ENABLED}" />
<arg value="${build.target}" />
</exec>
</target>
<!--

View file

@ -42,7 +42,7 @@ import junit.framework.Assert;
public class DbgUtils {
private static final String TAG = "XW4";
private static boolean s_doLog = BuildConstants.IS_DEBUG_BUILD;
private static boolean s_doLog = BuildConfig.DEBUG;
private static Time s_time = new Time();
@ -53,7 +53,7 @@ public class DbgUtils {
public static void logEnable( Context context )
{
boolean on = BuildConstants.IS_DEBUG_BUILD ||
boolean on = BuildConfig.DEBUG ||
XWPrefs.getPrefsBoolean( context, R.string.key_logging_on, false );
logEnable( on );
}

View file

@ -671,7 +671,7 @@ public class GamesList extends XWExpandableListActivity
if ( m_menuPrepared ) {
boolean nothingSelected = 0 == (nGroupsSelected + nGamesSelected);
boolean showDbg = BuildConstants.IS_DEBUG_BUILD
boolean showDbg = BuildConfig.DEBUG
|| XWPrefs.getDebugEnabled( this );
showItemsIf( DEBUG_ITEMS, menu, nothingSelected && showDbg );
Utils.setItemVisible( menu, R.id.games_menu_loaddb,

View file

@ -40,8 +40,7 @@ public class XWSumListPreference extends XWListPreference {
{
super.onAttachedToActivity();
if ( BuildConstants.IS_DEBUG_BUILD ||
XWPrefs.getDebugEnabled( m_context ) ) {
if ( BuildConfig.DEBUG || XWPrefs.getDebugEnabled( m_context ) ) {
CharSequence[] entries = getEntries();
CharSequence lastRow = entries[entries.length - 1];
boolean done = false;

View file

@ -7,7 +7,6 @@ VARIANT=$2
CLIENT_VERS_RELAY=$3
CHAT_SUPPORTED=$4
THUMBNAIL_SUPPORTED=$5
BUILD_TARGET=$6
cd $(dirname $0)
cd ../../
@ -38,7 +37,6 @@ class BuildConstants {
public static final short CLIENT_VERS_RELAY = $CLIENT_VERS_RELAY;
public static final boolean CHAT_SUPPORTED = $CHAT_SUPPORTED;
public static final boolean THUMBNAIL_SUPPORTED = $THUMBNAIL_SUPPORTED;
public static final boolean IS_DEBUG_BUILD = "$BUILD_TARGET".equals("debug");
}
EOF