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:
Kevin Gozali 2019-07-04 11:17:06 -07:00 коммит произвёл Facebook Github Bot
Родитель 9c56be2721
Коммит 987e5197f0
2 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -3,6 +3,8 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated by an internal plugin build system
*/
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
@ -12,7 +14,7 @@
#else
// OSS-compatibility layer: manually define these for github.
// OSS-compatibility layer
#import <Foundation/Foundation.h>
@ -26,8 +28,7 @@ extern "C" {
// RCTTurboModuleManagerDelegate should call this to resolve module classes.
Class RCTCoreModulesClassProvider(const char *name);
// NOTE: Sync these with FB internal version.
// Lookup functions
Class RCTPlatformCls(void);
#ifdef __cplusplus

Просмотреть файл

@ -3,12 +3,13 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated by an internal plugin build system
*/
#ifndef RN_DISABLE_OSS_PLUGIN_HEADER
// OSS-compatibility layer: manually define these for github.
// TODO: This should be codegen'ed
// OSS-compatibility layer
#import "CoreModulesPlugins.h"
@ -16,7 +17,6 @@
#import <unordered_map>
static std::unordered_map<std::string, Class (*)(void)> sCoreModuleClassMap = {
// NOTE: Sync these with FB internal plugin definitions.
{"PlatformConstants", RCTPlatformCls},
};