Sanity check of Hermes source directory via environment variable, when building Android projects

Open Beginner friendly
#163 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
android, react-native

Research direction

Start in packages/host/android/build.gradle around lines 141-157 and inspect how the Android build tasks are configured. Run an Android build without REACT_NATIVE_OVERRIDE_HERMES_DIR, then verify that it exits early with instructions using the provided npx react-native-node-api vendor-hermes command when the variable is missing.

Written by the indexing model from the issue text.

Description

Android 🤖 good first issue

I've investigated ways of letting the host package drive building Hermes from (our) source. So far, I haven't found any.

In the absence of a fully automated solution, it would be good if we exist early with instructions on how to set the REACT_NATIVE_OVERRIDE_HERMES_DIR environment variable if missing:

export REACT_NATIVE_OVERRIDE_HERMES_DIR=`npx react-native-node-api vendor-hermes --silent`

I would expect the error to be thrown from a new task around here:

https://github.com/callstackincubator/react-native-node-api/blob/8dac80570cea5c9790b3bcc0a84237f59cd0d4d6/packages/host/android/build.gradle#L141-L157

Dominant language
TypeScript
Stars
206
Forks
12
Avg merge
4h 8m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from callstackincubator/react-native-node-api

All issues in callstackincubator/react-native-node-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.