Summary:
This is an implementation of FBDiagnosticInformationCommands for devices.
This fetches information about batteries as well as the home screen. All the data returned here is JSON serializable
Reviewed By: zeyadsalloum
Differential Revision: D22790768
fbshipit-source-id: 276099e45c09fee71edae49c5e113470e9638268
Summary: This can then be re-used in a new call.
Reviewed By: c-ryan747
Differential Revision: D22661985
fbshipit-source-id: b3b786359d76036d51bba65a4a5414ce380b2e63
Summary: Futures are surprisingly easy to implement and will make the API a lot more friendly for many cases. We're already half of the way there with `FBTerminationAwaitable` so we may as well go all-in as this will allow for a much nicer API to use and combine with other futures.
Reviewed By: c-ryan747
Differential Revision: D5619700
fbshipit-source-id: 8c4b3072256a8ce2991fcb0a79f69940c4ce4d72
Summary: `FBSimulatorState` puports to mirror the values of `CoreSimulator` but this isn't completely true as there is a difference in signedness. The dissasembly for CoreSimulator shows the `Invalid` state as being anything greater than `0x4` rather than `-1`. This means that Index Sets can be used as a more efficient way of storing collections of enumerated types, since the states can't be stored in a bitmask.
Reviewed By: marekcirkos
Differential Revision: D3184146
fb-gh-sync-id: 1ffe744611da91cb224b5c9b4cec6d8b9acfd408
fbshipit-source-id: 1ffe744611da91cb224b5c9b4cec6d8b9acfd408