add build timestamp to about dialog (needs better formatting)

This commit is contained in:
Eric House 2014-02-10 19:20:35 -08:00
parent ea6da8cd74
commit 80c3374728
3 changed files with 4 additions and 2 deletions

View file

@ -1757,7 +1757,7 @@
-->
<!-- String giving version info, which is substituted in. -->
<string name="about_versf">Crosswords for Android, Version %1$s,
rev %2$s.</string>
rev %2$s, built on %3$s.</string>
<!-- copyright info -->
<string name="about_copyright">Copyright (C) 1998-2014 by Eric
House. This free/open source software is released under the GNU Public

View file

@ -330,7 +330,8 @@ public class DlgDelegate {
TextView vers = (TextView)view.findViewById( R.id.version_string );
vers.setText( String.format( m_activity.getString(R.string.about_versf),
m_activity.getString(R.string.app_version),
BuildConstants.GIT_REV ) );
BuildConstants.GIT_REV,
BuildConstants.BUILD_STAMP ) );
TextView xlator = (TextView)view.findViewById( R.id.about_xlator );
String str = m_activity.getString( R.string.xlator );

View file

@ -37,6 +37,7 @@ 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 String BUILD_STAMP = "$(date)";
}
EOF