Assert existence of arch-specific Android prebuilt when auto-linking

Open
#190 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android

Research direction

Start in packages/host/android/build.gradle around lines 136-149 and trace how auto-linking receives the Android architectures being built. Run an Android build with a missing architecture-specific prebuilt and verify that the build fails early instead of allowing a runtime load failure.

Written by the indexing model from the issue text.

Description

Android 🤖 Linking 🔗

When we're auto-linking prebuilds for Android, we have an opportunity fail early by passing the arch(s) being built and fail if a specific prebuilt binary is missing.

If we're not failing and the binary is missing, it will simply fail to load at runtime instead.

Somewhere around here:
https://github.com/callstackincubator/react-native-node-api/blob/5c67f900812a27e33beb0d62fc315d8e326adc46/packages/host/android/build.gradle#L136-L149

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.