Skip to content

Build codegen package in pod install#32678

Closed
sota000 wants to merge 1 commit into
facebook:mainfrom
sota000:export-D32707588
Closed

Build codegen package in pod install#32678
sota000 wants to merge 1 commit into
facebook:mainfrom
sota000:export-D32707588

Conversation

@sota000
Copy link
Copy Markdown
Contributor

@sota000 sota000 commented Nov 29, 2021

Summary:
In D32420306 (3d8b5a3) (3d8b5a3), I added a phase which uses a codegen, but it assumed that the codegen package has already been built. This diff fixes the issue where it checks and build the codegen packaage.

I also reverted the change that I made for the circle CI test since it now builds the codegen when running pod install.

Differential Revision: D32707588

Summary:
In D32420306 (facebook@3d8b5a3) (facebook@3d8b5a3), I added a phase which uses a codegen, but it assumed that the codegen package has already been built. This diff fixes the issue where it checks and build the codegen packaage.

I also reverted the change that I made for the circle CI test since it now builds the codegen when running pod install.

Differential Revision: D32707588

fbshipit-source-id: 2ae92efea73a948afa6d99292432e44531e52b4d
@sota000 sota000 requested a review from hramos as a code owner November 29, 2021 23:10
@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 Nov 29, 2021
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@pull-bot
Copy link
Copy Markdown

Messages
📖

📋 Missing Changelog - Can you add a Changelog? To do so, add a "## Changelog" section to your PR description. A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

DetailsCATEGORY may be:
  • General
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

Generated by 🚫 dangerJS against b24db3d

@analysis-bot
Copy link
Copy Markdown

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

Base commit: 3352b57
Branch: main

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,519,827 +0
android hermes armeabi-v7a 7,824,082 +0
android hermes x86 8,990,180 +0
android hermes x86_64 8,936,267 +0
android jsc arm64-v8a 9,833,242 +0
android jsc armeabi-v7a 8,799,004 +0
android jsc x86 9,783,917 +0
android jsc x86_64 10,386,807 +0

Base commit: 3352b57
Branch: main

elsif Dir.exist?(codegen_npm_path)
codegen_cli_path = codegen_npm_path
else
raise "[codegen] Couldn't not find react-native-codegen."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo: Should it be Couldn't or Could not?

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 1, 2021
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 363ff5c.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants