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

Static link for hermes-inspector #32694

Closed

Conversation

janicduplessis
Copy link
Contributor

Summary

Follow up to #32683 to also link hermes-inspector statically.

Changelog

[Android] [Fix] - Static link for hermes-inspector

Test Plan

Tested a clean build and made sure hermes-inspector.so doesn't exist anymore.

@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. Contributor A React Native contributor. labels Dec 2, 2021
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Dec 2, 2021
@janicduplessis
Copy link
Contributor Author

cc @cortinico

@react-native-bot react-native-bot added the Platform: Android Android applications. label Dec 2, 2021
@pull-bot
Copy link

pull-bot commented Dec 2, 2021

Messages
📖

📋 Verify Changelog Format - A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

CATEGORY 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 6046501

@analysis-bot
Copy link

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

Base commit: 2bb91ae
Branch: main

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,290,597 +0
android hermes armeabi-v7a 7,621,606 +0
android hermes x86 8,761,192 +0
android hermes x86_64 8,700,633 +0
android jsc arm64-v8a 9,679,642 +0
android jsc armeabi-v7a 8,667,339 +0
android jsc x86 9,635,739 +0
android jsc x86_64 10,232,773 +0

Base commit: 2bb91ae
Branch: main

@facebook-github-bot
Copy link
Contributor

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

@@ -40,7 +40,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH) $(REACT_NATIVE)/ReactCommon/jsi $(call find-no

LOCAL_CPP_FEATURES := exceptions

LOCAL_STATIC_LIBRARIES := libjsireact libhermes-executor-common-debug libhermes-inspector
LOCAL_STATIC_LIBRARIES := libjsireact libhermes-executor-common-debug
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe removing it here is incorrect, as hermes-inspector is only used by debug flavour of executor

Copy link
Contributor Author

@janicduplessis janicduplessis Dec 2, 2021

Choose a reason for hiding this comment

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

From my understanding libhermes-inspector is linked into libhermes-executor-common-debug already (

LOCAL_STATIC_LIBRARIES := libjsireact libhermes-inspector
) so it doesn't need to be included here. I checked the code quickly and it also doesn't seem to be using classes from libhermes-inspector directly (no <hermes/inspector/*> in ReactAndroid/src/main/java/com/facebook/hermes/reactexecutor).

Copy link
Contributor

@ShikaSD ShikaSD Dec 3, 2021

Choose a reason for hiding this comment

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

Ah, I see, makes sense :)

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @janicduplessis in 20b0eba.

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 Dec 13, 2021
@janicduplessis janicduplessis deleted the hermes-inspector-static branch December 13, 2021 17:02
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. Contributor A React Native contributor. 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants