Implement isStaffRelease method in PlatformSpecificTools
Summary:
This differential introduces isStaffRelease in PlatformSpecificTools class. Method is callable from C++, Java and Objective-C code including NSE code. Ther reason for this functionality is that currently only JavaScript code can be landed
directly to the master and switched on only for staff users (using native/staff-utils.js). If developer wants to introduce some changes in native languages that sholud be active only for staff users they have to directly colaborate with release-maker.
With changes introduced in this diff developer can land staff-only changes directly to master by hiding them behind PlatformSpecificTools#isStaffRelease and release-maker only has to change two methods to return true inseated of false.
Test Plan:
- Apply this diff: https://gist.github.com/marcinwasowicz/38435924b5850515649253a2e490572e (CommCoreModule, CommNotificationsHandler, NSE)
- Build iOS and Android app.
- Log in on both - observe logs from CommCoreModule.
- Send notification to both: Observe logs from CommNotificationHandler and NSE (this one requires usage of console app)
Reviewers: atul, kamil, bartek, ashoat, jon
Reviewed By: atul, bartek, ashoat, jon
Subscribers: jon, ashoat, tomek
Differential Revision: https://phab.comm.dev/D8803