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

Replaced windowsAwareYarn with windowsAwareCommandLine for node calls #33530

Closed
wants to merge 1 commit into from

Conversation

danilobuerger
Copy link
Contributor

Summary

It is not necessary to call node via yarn. Instead with this commit node is called directly (windows aware). This enables builds on systems that don't have yarn installed.

Fixes #33525

Changelog

[Android] [Fixed] - Don't require yarn for codegen tasks

Test Plan

  1. react-native init test
  2. cd test
  3. enable newArchEnabled=true (gradle.properties)
  4. enable enableHermes: true (build.gradle)
  5. react-native run-android (when the yarn is not installed on the system)

(I have not tested or verified if this works on windows build machines)

@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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Mar 31, 2022
@facebook-github-bot
Copy link
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@analysis-bot
Copy link

analysis-bot commented Mar 31, 2022

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

Base commit: 16397e0
Branch: main

It is not necessary to call node via yarn. Instead with this commit node is called directly (windows aware). This enables builds on systems that don't have yarn installed.
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,809,731 +0
android hermes armeabi-v7a 7,201,410 +0
android hermes x86 8,118,473 +0
android hermes x86_64 8,098,650 +0
android jsc arm64-v8a 9,643,576 +0
android jsc armeabi-v7a 8,417,829 +0
android jsc x86 9,592,769 +0
android jsc x86_64 10,189,948 +0

Base commit: 16397e0
Branch: main

@cortinico
Copy link
Contributor

Thanks for addressing this @danilobuerger 🙏 We need to find a way to ship a point release for RGP but we'll make sure this is included 👍

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @danilobuerger in d5da70e.

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 Apr 4, 2022
@cortinico cortinico added the Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) label Apr 12, 2022
fortmarek pushed a commit that referenced this pull request Apr 13, 2022
…#33530)

Summary:
It is not necessary to call node via yarn. Instead with this commit node is called directly (windows aware). This enables builds on systems that don't have yarn installed.

Fixes #33525

## Changelog

[Android] [Fixed] - Don't require yarn for codegen tasks

Pull Request resolved: #33530

Test Plan:
1. react-native init test
2. cd test
3. enable newArchEnabled=true (gradle.properties)
4. enable enableHermes: true (build.gradle)
5. react-native run-android (when the yarn is not installed on the system)

(I have not tested or verified if this works on windows build machines)

Reviewed By: sshic

Differential Revision: D35279376

Pulled By: cortinico

fbshipit-source-id: 430e4a7bcdec7d5377efac747f6b935d634451cc
Saadnajmi pushed a commit to Saadnajmi/react-native-macos that referenced this pull request Jan 15, 2023
…facebook#33530)

Summary:
It is not necessary to call node via yarn. Instead with this commit node is called directly (windows aware). This enables builds on systems that don't have yarn installed.

Fixes facebook#33525

## Changelog

[Android] [Fixed] - Don't require yarn for codegen tasks

Pull Request resolved: facebook#33530

Test Plan:
1. react-native init test
2. cd test
3. enable newArchEnabled=true (gradle.properties)
4. enable enableHermes: true (build.gradle)
5. react-native run-android (when the yarn is not installed on the system)

(I have not tested or verified if this works on windows build machines)

Reviewed By: sshic

Differential Revision: D35279376

Pulled By: cortinico

fbshipit-source-id: 430e4a7bcdec7d5377efac747f6b935d634451cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: Android Android applications. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to run react-native run-android (v0.68.0) without yarn
5 participants