mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Restore Filtering platform in codegen (#35028)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35028 **This Diff require a bump in the react-native-codegen (including this [commit](https://github.com/facebook/react-native/commit/7680bdeb4f96a8092393372a59c77a9d7b729cae)) to work** This diff sets up iOS and Android to pass their platform to the codegen so that we can have platform-specific specs. ## Changelog [General][Added] - Enable platform-specific Codegen Specs Reviewed By: cortinico Differential Revision: D40516395 fbshipit-source-id: 0624f0bfb93c90f78131a605a4847e780783bbaf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a2166b24f8
commit
ab7b4d4cd8
@@ -311,7 +311,6 @@ function generateSchema(tmpDir, library, node, codegenCliPath) {
|
||||
|
||||
console.log(`\n\n[Codegen] >>>>> Processing ${library.config.name}`);
|
||||
// Generate one schema for the entire library...
|
||||
// TODO: restore the `--platform ios` parameters as soon as we publish the codegen package.
|
||||
executeNodeScript(
|
||||
node,
|
||||
`${path.join(
|
||||
@@ -320,7 +319,7 @@ function generateSchema(tmpDir, library, node, codegenCliPath) {
|
||||
'cli',
|
||||
'combine',
|
||||
'combine-js-to-schema-cli.js',
|
||||
)} ${pathToSchema} ${pathToJavaScriptSources}`,
|
||||
)} --platform ios ${pathToSchema} ${pathToJavaScriptSources}`,
|
||||
);
|
||||
console.log(`[Codegen] Generated schema: ${pathToSchema}`);
|
||||
return pathToSchema;
|
||||
|
||||
Reference in New Issue
Block a user