different logging TAG for different variants

This commit is contained in:
Eric House 2015-08-02 10:29:17 -07:00
parent 6871ef24a6
commit a5f332dd1d
2 changed files with 4 additions and 1 deletions

View file

@ -43,7 +43,7 @@ import junit.framework.Assert;
import org.eehouse.android.xw4.loc.LocUtils;
public class DbgUtils {
private static final String TAG = "XW4";
private static final String TAG = BuildConstants.DBG_TAG;
private static boolean s_doLog = BuildConfig.DEBUG;
private static Time s_time = new Time();

View file

@ -27,11 +27,13 @@ case $VARIANT in
APPNAME=Crosswords
SMSPORT=3344
INVITE_PREFIX=/and/
DBG_TAG=XW4
;;
xw4dbg)
APPNAME=CrossDbg
SMSPORT=3345
INVITE_PREFIX=/anddbg/
DBG_TAG=X4BG
;;
*)
usage
@ -75,6 +77,7 @@ class BuildConstants {
public static final boolean CHAT_SUPPORTED = $CHAT_SUPPORTED;
public static final boolean THUMBNAIL_SUPPORTED = $THUMBNAIL_SUPPORTED;
public static final long BUILD_STAMP = $(date +'%s');
public static final String DBG_TAG = "$DBG_TAG";
}
EOF