diff --git a/app/build.gradle b/app/build.gradle index 3f2b4c29..67caed18 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,6 +3,15 @@ import groovy.xml.XmlUtil apply plugin: 'com.android.application' apply plugin: 'kotlin-android' +def gitDescribe = { -> + def stdout = new ByteArrayOutputStream() + exec { + commandLine 'git', 'describe', '--always', '--tags', '--dirty=-dirty' + standardOutput = stdout + } + return stdout.toString().trim() +} + android { compileSdkVersion 29 @@ -11,6 +20,7 @@ android { defaultConfig { minSdkVersion 29 targetSdkVersion 29 + versionNameSuffix "-$gitDescribe" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunnerArguments disableAnalytics: 'true' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f8b93c07..6738f02f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -2,8 +2,12 @@ + android:versionCode="29000001" + android:versionName="10-1.0.0"> + ) { packages.chunked(LOG_MAX_PACKAGES).forEach { Log.i(TAG, it.toString()) diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml index d391f61c..061b9e75 100644 --- a/app/src/main/res/layout/fragment_about.xml +++ b/app/src/main/res/layout/fragment_about.xml @@ -62,6 +62,19 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/appNameView" /> + + + app:layout_constraintTop_toBottomOf="@+id/versionView" /> About A backup application using Android\'s internal backup API. + Version: %s License: Apache2 Written by: Steve Soltys and Torsten Grote Design by: Glenn Sorrentino