Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Codegen code from the react_native_pods to its own file #34176

Closed
wants to merge 1 commit into from

Conversation

cipolleschi
Copy link
Contributor

Summary:
It extracts the code related to the codegen from the main react_native_pods script to a dedicated file, adding also tests.

Changelog

[iOS][Changed] - Move codegen in separate files

Differential Revision: D37755818

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Jul 12, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D37755818

@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Jul 12, 2022
@analysis-bot
Copy link

analysis-bot commented Jul 12, 2022

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,820,168 +0
android hermes armeabi-v7a 7,213,345 +0
android hermes x86 8,132,594 +0
android hermes x86_64 8,110,797 +0
android jsc arm64-v8a 9,698,625 +0
android jsc armeabi-v7a 8,453,771 +0
android jsc x86 9,649,262 +0
android jsc x86_64 10,247,212 +0

Base commit: 191eb62
Branch: main

@analysis-bot
Copy link

analysis-bot commented Jul 12, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: bf54f1c
Branch: main

Comment on lines 23 to 27
def self.find_codegen_file(path)
return `find #{path} -type f \\( -name "Native*.js" -or -name "*NativeComponent.js" \\)`.split("\n").sort()
end
Copy link
Contributor

@andrestone andrestone Jul 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @cipolleschi! I was wondering maybe adding TypeScript support for for local specs is a change small enough that it could be done here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added. Thanks for the suggestion!

…book#34176)

Summary:
Pull Request resolved: facebook#34176

It extracts the code related to the codegen from the main `react_native_pods` script to a dedicated file, adding also tests.

## Changelog

[iOS][Changed] - Move codegen in separate files

Differential Revision: D37755818

fbshipit-source-id: b0dccea0228abef532c63f0f7047bfe17ec170c8
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D37755818

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @cipolleschi in 7d069b2.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jul 19, 2022
kelset pushed a commit that referenced this pull request Jul 27, 2022
Summary:
Pull Request resolved: #34176

It extracts the code related to the codegen from the main `react_native_pods` script to a dedicated file, adding also tests.

## Changelog

[iOS][Changed] - Move codegen in separate files

Reviewed By: cortinico

Differential Revision: D37755818

fbshipit-source-id: 99760d1def26ddbf065fdd234e0d183c2795513c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Platform: iOS iOS applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants