HomePhabricator
Diffusion Comm 60343e293cb3

[native] Include additional fields in `BuildInfo`

Description

[native] Include additional fields in BuildInfo

Summary:
In order to potentially help with troubleshooting, it's helpful to know
A. What sort of build is running (eg staff release/__DEV__)
B. What sort of user is/has logged in (eg isStaff/hasStaffUserLoggedIn)

We add the following fields to BuildInfo to make these accessible while the app is running:

  • __DEV__
  • isStaffRelease
  • isCurrentUserStaff
  • hasStaffUserLoggedIn

Might change styling a bit in later diff (replace true/false text w/ check or cross icon or something) but that's not critical

Test Plan:
Things look as expected:

b3771f.png (1×946 px, 917 KB)

Reviewers: tomek, marcin, varun, ginsu, rohan, O2 Blocking Reviewers, ashoat

Reviewed By: tomek, O2 Blocking Reviewers

Subscribers: ashoat, abosh

Differential Revision: https://phab.comm.dev/D5558

Details

Provenance
atulAuthored on Nov 9 2022, 7:24 PM
Reviewer
Restricted Owners Package
Differential Revision
D5558: [native] Include additional fields in `BuildInfo`
Parents
rCOMM70c8e68c3f84: [keyserver] Remove `badge` from iOS rescind notification
Branches
Unknown
Tags
Unknown