Skip to content

Cleanup Folders after codegen#33891

Closed
cipolleschi wants to merge 1 commit into
facebook:mainfrom
cipolleschi:export-D36594999
Closed

Cleanup Folders after codegen#33891
cipolleschi wants to merge 1 commit into
facebook:mainfrom
cipolleschi:export-D36594999

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

Summary:
This diff adds a function to clean up folders and empty files (if any) after the codegen runs in the OSS.
To align how iOS and Android behave in the codegen, we now have to preemptively create folders that we may not need later.
Thanks to this function, we recursively the folders in the codegen and we delete them if they are empty.

Changelog

[iOS][Added] - Add function to cleanup codegen folders

Differential Revision: D36594999

Summary:
This diff adds a function to clean up folders and empty files (if any) after the codegen runs in the OSS.
To align how iOS and Android behave in the codegen, we now have to preemptively create folders that we may not need later.
Thanks to this function, we recursively the folders in the codegen and we delete them if they are empty.

## Changelog
[iOS][Added] - Add function to cleanup codegen folders

Differential Revision: D36594999

fbshipit-source-id: 1ed0fcc13b2d38ffcae22ed69774219333be030f
@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 May 23, 2022
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@react-native-bot react-native-bot added Platform: iOS iOS applications. Type: Enhancement A new feature or enhancement of an existing feature. labels May 23, 2022
@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,782,655 +0
android hermes armeabi-v7a 7,186,078 +0
android hermes x86 8,094,107 +0
android hermes x86_64 8,071,803 +0
android jsc arm64-v8a 9,656,037 +0
android jsc armeabi-v7a 8,428,304 +0
android jsc x86 9,608,290 +0
android jsc x86_64 10,202,918 +0

Base commit: 08ebc1c
Branch: main

@analysis-bot
Copy link
Copy Markdown

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

Base commit: 08ebc1c
Branch: main

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cipolleschi in 7169288.

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 May 23, 2022
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. Type: Enhancement A new feature or enhancement of an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants