Skip to content

Conversation

@boringcactus
Copy link
Member

Summary

Ticket: Display build number somewhere in app

I remember being skeptical that this was a two point ticket, and behold, it took an hour.

iOS

  • If you added any user-facing strings on iOS, are they included in Localizable.xcstrings?
    • Add temporary machine translations, marked "Needs Review"

android

  • All user-facing strings added to strings resource in alphabetical order
  • Expensive calculations are run in withContext(Dispatchers.Default) where possible (ideally in shared code)

Testing

Added a UI test on each platform. Checked that the value is actually read from the correct place and should have the correct value in real builds.

@boringcactus boringcactus requested a review from a team as a code owner September 19, 2025 20:56
Comment on lines +31 to +46
if showingBuildNumber {
Text(
"version \(version) (\(build))",
comment: "Version number and more detailed build number label on the More page"
)
.font(Typography.footnote)
} else {
Text(
"version \(version)",
comment: "Version number label on the More page"
)
.font(Typography.footnote)
.onTapGesture {
showingBuildNumber = true
}
}
Copy link
Contributor

@BrandonTR BrandonTR Sep 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of a nitpick but it might be worth wrapping this in a Group view and then applying the .onTapGesture modifier to that.

Group {
    ...
}
.font(Typography.footnote)
.onTapGesture { showingBuildNumber.toggle() }

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about making it toggle, but I don’t think there’s any point to hiding the build number once you’ve shown it.

@boringcactus boringcactus added this pull request to the merge queue Sep 22, 2025
Merged via the queue into main with commit efa185a Sep 22, 2025
7 checks passed
@boringcactus boringcactus deleted the mth-build-number branch September 22, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants