mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Ignore TM specs with out-of-tree platform suffix (#42360)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42360 In cases where you merge out-of-tree platforms like react-native-windows with react-native mobile JS files, codegen awareness of the Windows suffix is useful. This helps prevent the creation of generated code for iOS and Android in mixed out-of-tree platform folders. ## Changelog [Internal] Reviewed By: mdvacca Differential Revision: D52873212 fbshipit-source-id: ad6b1471e63d68057f54c79141123fb15f8aab5e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
08eb985c33
commit
1d89fad824
@@ -85,6 +85,12 @@ function verifyPlatforms(
|
||||
return;
|
||||
}
|
||||
|
||||
if (name.endsWith('Windows')) {
|
||||
excludedPlatforms.add('iOS');
|
||||
excludedPlatforms.add('android');
|
||||
return;
|
||||
}
|
||||
|
||||
if (name.endsWith('Cxx')) {
|
||||
cxxOnly = true;
|
||||
excludedPlatforms.add('iOS');
|
||||
|
||||
Reference in New Issue
Block a user