1
0
Fork 0

For #7554: Add App Services Version to About Page

master
Josh Vocal 2020-01-12 08:45:37 -05:00 committed by Emily Kager
parent c1a7bddcd3
commit c15469595d
2 changed files with 8 additions and 2 deletions

View File

@ -74,14 +74,18 @@ class AboutFragment : Fragment(), AboutPageListener {
val componentsVersion = mozilla.components.Build.version + ", " + mozilla.components.Build.gitHash
val maybeGecko = getString(R.string.gecko_view_abbreviation)
val geckoVersion = GeckoViewBuildConfig.MOZ_APP_VERSION + "-" + GeckoViewBuildConfig.MOZ_APP_BUILDID
val appServicesAbbreviation = getString(R.string.app_services_abbreviation)
val appServicesVersion = mozilla.components.Build.applicationServicesVersion
String.format(
"%s (Build #%s)\n%s\n%s: %s",
"%s (Build #%s)\n%s\n%s: %s\n%s: %s",
packageInfo.versionName,
versionCode,
componentsVersion,
maybeGecko,
geckoVersion
geckoVersion,
appServicesAbbreviation,
appServicesVersion
)
} catch (e: PackageManager.NameNotFoundException) {
""

View File

@ -30,4 +30,6 @@
<string name="default_top_site_wikipedia" translatable="false">Wikipedia</string>
<!-- Default title for pinned YouTube top site that links to Youtube home page -->
<string name="default_top_site_youtube" translatable="false">YouTube</string>
<!-- Application Services abbreviation used in AboutFragment -->
<string name="app_services_abbreviation" translatable="false">AS</string>
</resources>