react-native/React/Profiler
Ben Roth 6a14f0b449 Add RCTDevSettings module
Summary:
This decouples non-UI logic from RCTDevMenu into a new module RCTDevSettings.

**Motivation**: This allows developers to change dev settings without depending on the built-in dev menu, e.g. if they want to introduce their own UI, or have other devtools logic that doesn't depend on an action sheet.

It also introduces the RCTDevSettingsDataSource protocol for storing dev tools preferences. This could allow a developer to implement alternative behaviors, e.g. loading the settings from some other config, changing settings based on the user, deciding not to persist some settings, or something else.

The included data source implementation, RCTDevSettingsUserDefaultsDataSource, uses NSUserDefaults and is backwards compatible with the older implementation, so **no workflows or dependent code will break, and old saved settings will persist.**

The RCTDevMenu interface has not changed and is therefore also backwards-compatible, though
some methods are now deprecated.

In order to ensure that RCTDevSettings
Closes https://github.com/facebook/react-native/pull/11613

Reviewed By: mmmulani

Differential Revision: D4571773

Pulled By: javache

fbshipit-source-id: 25555d0a6eaa81f694343e079ed02439e5845fbc
2017-02-24 07:00:16 -08:00
..
RCTFPSGraph.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTFPSGraph.m Automated changes to remove implicit capture of self in blocks: Libraries/FBReactKit/BUCK 2016-07-07 12:44:14 -07:00
RCTJSCProfiler.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTJSCProfiler.m Add RCT_PROFILE define 2016-06-13 04:28:38 -07:00
RCTMacros.h Make React Profiler asm position independent 2016-12-08 14:58:26 -08:00
RCTPerfMonitor.m Add RCTDevSettings module 2017-02-24 07:00:16 -08:00
RCTProfile.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTProfile.m Replace deprecated completion block 2017-01-09 19:28:28 -08:00
RCTProfileTrampoline-arm.S Add RCT_PROFILE define 2016-06-13 04:28:38 -07:00
RCTProfileTrampoline-arm64.S Add RCT_PROFILE define 2016-06-13 04:28:38 -07:00
RCTProfileTrampoline-i386.S Add RCT_PROFILE define 2016-06-13 04:28:38 -07:00
RCTProfileTrampoline-x86_64.S Make React Profiler asm position independent 2016-12-08 14:58:26 -08:00