name exported file based on FLAVOR

This commit is contained in:
Eric House 2020-04-17 20:29:47 -07:00
parent b8ba5a98c1
commit 9f92bce880
2 changed files with 4 additions and 4 deletions

View file

@ -43,6 +43,7 @@ public class Log {
private static final boolean LOGGING_ENABLED
= BuildConfig.DEBUG || !BuildConfig.IS_TAGGED_BUILD;
private static final boolean ERROR_LOGGING_ENABLED = true;
private static final String LOGS_FILE_NAME = BuildConfig.FLAVOR + "_logsDB.txt";
private static final String LOGS_DB_NAME = "xwlogs_db";
private static final String LOGS_TABLE_NAME = "logs";
private static final String COL_ENTRY = "entry";
@ -259,7 +260,7 @@ public class Log {
{
File dir = Environment.getExternalStorageDirectory();
dir = new File( dir, Environment.DIRECTORY_DOWNLOADS );
File db = new File( dir, LOGS_DB_NAME + ".txt" );
File db = new File( dir, LOGS_FILE_NAME );
try {
OutputStream os = new FileOutputStream( db );

View file

@ -123,9 +123,8 @@ public class DUtilCtxt {
private static final int STRSD_DUP_ONESCORE = 29;
private static final int STR_PENDING_PLAYER = 30;
public String getUserString( int stringCode )
public String getUserString( final int stringCode )
{
Log.d( TAG, "getUserString(%d)", stringCode );
int id = 0;
switch( stringCode ) {
case STR_ROBOT_MOVED:
@ -217,7 +216,7 @@ public class DUtilCtxt {
}
String result = (0 == id) ? "" : LocUtils.getString( m_context, id );
Log.d( TAG, "getUserString() => %s", result );
Log.d( TAG, "getUserString(%d) => %s", stringCode, result );
return result;
}