diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml
index c9509fc1f..438d14b32 100644
--- a/xwords4/android/XWords4/res/values/strings.xml
+++ b/xwords4/android/XWords4/res/values/strings.xml
@@ -326,4 +326,6 @@
Player %d
Game time (minutes)
+ Source version id
+
diff --git a/xwords4/android/XWords4/res/xml/xwprefs.xml b/xwords4/android/XWords4/res/xml/xwprefs.xml
index 048fc4ff8..be23bfe1e 100644
--- a/xwords4/android/XWords4/res/xml/xwprefs.xml
+++ b/xwords4/android/XWords4/res/xml/xwprefs.xml
@@ -147,5 +147,10 @@
android:title="@string/dict_host"
android:defaultValue="@string/dict_url"
/>
+
+
diff --git a/xwords4/android/scripts/genvers.sh b/xwords4/android/scripts/genvers.sh
index 483ad0f82..ce284d925 100755
--- a/xwords4/android/scripts/genvers.sh
+++ b/xwords4/android/scripts/genvers.sh
@@ -3,22 +3,22 @@
cd $(dirname $0)
cd ../../
-SVNVERSION=$(svnversion)
-if [ -z "$SVNVERSION" -o "$SVNVERSION" = "exported" ]; then
- SVNVERSION=$(git svn find-rev $(git log -1 --pretty=format:%H 2>/dev/null) \
- 2>/dev/null)
- if git status | grep -q modified; then
- SVNVERSION=${SVNVERSION}M
- fi
-fi
+GITVERSION=$(scripts/gitversion.sh)
-cat < android/XWords4/src/org/eehouse/android/xw4/SvnVersion.java
-// auto-generated; do not edit
-package org.eehouse.android.xw4;
-class SvnVersion {
- public static final String VERS = "$SVNVERSION";
-}
+# TODO: deal with case where there's no hash available -- exported
+# code maybe? Better: gitversion.sh does that.
+
+cat < android/XWords4/res/values/git_string.xml
+
+
+
+
+ $GITVERSION
+
EOF
-# touch the file that depends on VERS.java
-touch android/XWords4/src/org/eehouse/android/xw4/Utils.java
+# touch the files that depend on git_string.xml. (I'm not sure that
+# this list is complete or if ant and java always get dependencies
+# right. Clean builds are the safest.)
+touch android/XWords4/res/xml/xwprefs.xml
+touch android/XWords4/gen/org/eehouse/android/xw4/R.java