Add git commit sha to the version details (splash screen and preference screen)

This commit is contained in:
Benoit Marty 2022-11-16 14:51:45 +01:00 committed by Benoit Marty
parent cccfad03ce
commit 8795ddb3c2
4 changed files with 5 additions and 3 deletions

View File

@ -65,7 +65,7 @@ class LoginSplashFragment :
views.loginSplashVersion.isVisible = true
@SuppressLint("SetTextI18n")
views.loginSplashVersion.text = "Version : ${buildMeta.versionName}\n" +
"Branch: ${buildMeta.gitBranchName}"
"Branch: ${buildMeta.gitBranchName} ${buildMeta.gitRevision}"
views.loginSplashVersion.debouncedClicks { navigator.openDebug(requireContext()) }
}
}

View File

@ -95,7 +95,7 @@ class FtueAuthSplashCarouselFragment :
views.loginSplashVersion.isVisible = true
@SuppressLint("SetTextI18n")
views.loginSplashVersion.text = "Version : ${buildMeta.versionName}\n" +
"Branch: ${buildMeta.gitBranchName}"
"Branch: ${buildMeta.gitBranchName} ${buildMeta.gitRevision}"
views.loginSplashVersion.debouncedClicks { navigator.openDebug(requireContext()) }
}
views.splashCarousel.registerAutomaticUntilInteractionTransitions()

View File

@ -67,7 +67,7 @@ class FtueAuthSplashFragment :
views.loginSplashVersion.isVisible = true
@SuppressLint("SetTextI18n")
views.loginSplashVersion.text = "Version : ${buildMeta.versionName}\n" +
"Branch: ${buildMeta.gitBranchName}"
"Branch: ${buildMeta.gitBranchName} ${buildMeta.gitRevision}"
views.loginSplashVersion.debouncedClicks { navigator.openDebug(requireContext()) }
}
}

View File

@ -73,6 +73,8 @@ class VectorSettingsHelpAboutFragment :
if (buildMeta.isDebug) {
append(" ")
append(buildMeta.gitBranchName)
append(" ")
append(buildMeta.gitRevision)
}
}