Page MenuHomePhabricator

[native] Add dev-only button for primary device logout
DraftPublic

Authored by bartek on Fri, Jun 28, 2:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 28, 6:04 AM
Unknown Object (File)
Fri, Jun 28, 6:04 AM
Unknown Object (File)
Fri, Jun 28, 6:04 AM
Unknown Object (File)
Fri, Jun 28, 5:22 AM
Subscribers
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
kamil
varun
Summary

Similarly to D12222, added a dev-only button to perform primary device logout on native. It doesn't make sense on web
because calling the hook there breaks invariant (identity client method undefined, web cannot be primary).

For now, leaving two separate buttons to be able to test checks at lower level (e.g. server-side). But finally,
this will get replaced with a single button that performs different action based on the device being primary or secondary.
This is tracked in ENG-8550.

Depends on D12603

Test Plan

Both buttons are displayed in Profile menu on simulator. Test plan for D12603 is repeated to test hook behavior.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage