Added release name

This commit is contained in:
M66B 2019-07-13 20:14:19 +02:00
parent f8badc4d06
commit a49c64d87c
3 changed files with 16 additions and 0 deletions

View File

@ -17,6 +17,9 @@ android {
versionName "1.587"
archivesBaseName = "FairEmail-v$versionName"
// https://en.wikipedia.org/wiki/List_of_dinosaur_genera
buildConfigField "String", "RELEASE_NAME", "\"Allosaurus\""
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]

View File

@ -45,9 +45,11 @@ public class FragmentAbout extends FragmentBase {
View view = inflater.inflate(R.layout.fragment_about, container, false);
TextView tvVersion = view.findViewById(R.id.tvVersion);
TextView tvRelease = view.findViewById(R.id.tvRelease);
TextView tvLimitations = view.findViewById(R.id.tvLimitations);
tvVersion.setText(getString(R.string.title_version, BuildConfig.VERSION_NAME));
tvRelease.setText(BuildConfig.RELEASE_NAME);
tvLimitations.setPaintFlags(tvLimitations.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
return view;

View File

@ -27,6 +27,17 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvRelease"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:text="Dinosaur"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textStyle="italic"
app:layout_constraintStart_toEndOf="@+id/tvVersion"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tvCopyright"
android:layout_width="wrap_content"