TM iOS: autogenerate plugins map based on FB build system
Summary: This adds internal script to automatically sync the plugins definition. For github consumption, the CoreModulesPlugins.* will stay checked in, nothing change. Reviewed By: RSNara Differential Revision: D16102352 fbshipit-source-id: 8f74ea9dde046183ae620682fd7e181b4cc95a94
This commit is contained in:
Родитель
9c56be2721
Коммит
987e5197f0
|
@ -3,6 +3,8 @@
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*
|
||||||
|
* @generated by an internal plugin build system
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
|
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
|
||||||
|
@ -12,7 +14,7 @@
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// OSS-compatibility layer: manually define these for github.
|
// OSS-compatibility layer
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
@ -26,8 +28,7 @@ extern "C" {
|
||||||
// RCTTurboModuleManagerDelegate should call this to resolve module classes.
|
// RCTTurboModuleManagerDelegate should call this to resolve module classes.
|
||||||
Class RCTCoreModulesClassProvider(const char *name);
|
Class RCTCoreModulesClassProvider(const char *name);
|
||||||
|
|
||||||
// NOTE: Sync these with FB internal version.
|
// Lookup functions
|
||||||
|
|
||||||
Class RCTPlatformCls(void);
|
Class RCTPlatformCls(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -3,12 +3,13 @@
|
||||||
*
|
*
|
||||||
* This source code is licensed under the MIT license found in the
|
* This source code is licensed under the MIT license found in the
|
||||||
* LICENSE file in the root directory of this source tree.
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*
|
||||||
|
* @generated by an internal plugin build system
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef RN_DISABLE_OSS_PLUGIN_HEADER
|
#ifndef RN_DISABLE_OSS_PLUGIN_HEADER
|
||||||
|
|
||||||
// OSS-compatibility layer: manually define these for github.
|
// OSS-compatibility layer
|
||||||
// TODO: This should be codegen'ed
|
|
||||||
|
|
||||||
#import "CoreModulesPlugins.h"
|
#import "CoreModulesPlugins.h"
|
||||||
|
|
||||||
|
@ -16,7 +17,6 @@
|
||||||
#import <unordered_map>
|
#import <unordered_map>
|
||||||
|
|
||||||
static std::unordered_map<std::string, Class (*)(void)> sCoreModuleClassMap = {
|
static std::unordered_map<std::string, Class (*)(void)> sCoreModuleClassMap = {
|
||||||
// NOTE: Sync these with FB internal plugin definitions.
|
|
||||||
{"PlatformConstants", RCTPlatformCls},
|
{"PlatformConstants", RCTPlatformCls},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче