Skip to content

Commit 35b2150

Browse files
react-native-codegen: Enable C++ TurboModule generation in OpenSource builds (#35211)
Summary: Pull Request resolved: #35211 This enables the generation of C++ TurboModule specs in addition to existing Java/ObjC ones. An example is shown in #35138 Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D41057630 fbshipit-source-id: 303881a63eb82f0fe8dfe10e533043a6eedb3d11
1 parent abe76fb commit 35b2150

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/codegen/__tests__/generate-specs-cli-executor-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('generateSpec', () => {
2626
const outputDirectory = normalize('app/ios/build/generated/ios');
2727
const libraryName = 'library';
2828
const packageName = 'com.library';
29-
const generators = ['componentsIOS', 'modulesIOS'];
29+
const generators = ['componentsIOS', 'modulesIOS', 'modulesCxx'];
3030

3131
jest.mock('fs', () => ({
3232
readFileSync: (path, encoding) => {

scripts/codegen/generate-specs-cli-executor.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ const RNCodegen = utils.getCodegen();
1717

1818
const GENERATORS = {
1919
all: {
20-
android: ['componentsAndroid', 'modulesAndroid'],
21-
ios: ['componentsIOS', 'modulesIOS'],
20+
android: ['componentsAndroid', 'modulesAndroid', 'modulesCxx'],
21+
ios: ['componentsIOS', 'modulesIOS', 'modulesCxx'],
2222
},
2323
components: {
2424
android: ['componentsAndroid'],
2525
ios: ['componentsIOS'],
2626
},
2727
modules: {
28-
android: ['modulesAndroid'],
29-
ios: ['modulesIOS'],
28+
android: ['modulesAndroid', 'modulesCxx'],
29+
ios: ['modulesIOS', 'modulesCxx'],
3030
},
3131
};
3232

0 commit comments

Comments
 (0)