Skip to content

Commit

Permalink
react-native-codegen: Enable C++ TurboModule generation in OpenSource…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
christophpurrer authored and facebook-github-bot committed Nov 7, 2022
1 parent abe76fb commit 35b2150
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('generateSpec', () => {
const outputDirectory = normalize('app/ios/build/generated/ios');
const libraryName = 'library';
const packageName = 'com.library';
const generators = ['componentsIOS', 'modulesIOS'];
const generators = ['componentsIOS', 'modulesIOS', 'modulesCxx'];

jest.mock('fs', () => ({
readFileSync: (path, encoding) => {
Expand Down
8 changes: 4 additions & 4 deletions scripts/codegen/generate-specs-cli-executor.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ const RNCodegen = utils.getCodegen();

const GENERATORS = {
all: {
android: ['componentsAndroid', 'modulesAndroid'],
ios: ['componentsIOS', 'modulesIOS'],
android: ['componentsAndroid', 'modulesAndroid', 'modulesCxx'],
ios: ['componentsIOS', 'modulesIOS', 'modulesCxx'],
},
components: {
android: ['componentsAndroid'],
ios: ['componentsIOS'],
},
modules: {
android: ['modulesAndroid'],
ios: ['modulesIOS'],
android: ['modulesAndroid', 'modulesCxx'],
ios: ['modulesIOS', 'modulesCxx'],
},
};

Expand Down

0 comments on commit 35b2150

Please sign in to comment.