Skip to content

Commit 987e519

Browse files
fkgozalifacebook-github-bot
authored andcommitted
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
1 parent 9c56be2 commit 987e519

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

React/CoreModules/CoreModulesPlugins.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @generated by an internal plugin build system
68
*/
79

810
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
@@ -12,7 +14,7 @@
1214

1315
#else
1416

15-
// OSS-compatibility layer: manually define these for github.
17+
// OSS-compatibility layer
1618

1719
#import <Foundation/Foundation.h>
1820

@@ -26,8 +28,7 @@ extern "C" {
2628
// RCTTurboModuleManagerDelegate should call this to resolve module classes.
2729
Class RCTCoreModulesClassProvider(const char *name);
2830

29-
// NOTE: Sync these with FB internal version.
30-
31+
// Lookup functions
3132
Class RCTPlatformCls(void);
3233

3334
#ifdef __cplusplus

React/CoreModules/CoreModulesPlugins.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @generated by an internal plugin build system
68
*/
79

810
#ifndef RN_DISABLE_OSS_PLUGIN_HEADER
911

10-
// OSS-compatibility layer: manually define these for github.
11-
// TODO: This should be codegen'ed
12+
// OSS-compatibility layer
1213

1314
#import "CoreModulesPlugins.h"
1415

1516
#import <string>
1617
#import <unordered_map>
1718

1819
static std::unordered_map<std::string, Class (*)(void)> sCoreModuleClassMap = {
19-
// NOTE: Sync these with FB internal plugin definitions.
2020
{"PlatformConstants", RCTPlatformCls},
2121
};
2222

0 commit comments

Comments
 (0)