For #7554: Add App Services Version to About Page
parent
c1a7bddcd3
commit
c15469595d
|
@ -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) {
|
||||
""
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue