-
Notifications
You must be signed in to change notification settings - Fork 932
Added appId and appIdSuffix options to cli-hermes #1386
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
Conversation
thymikee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Why not :)
|
Thanks, could you provide a use case for this addition? At the same time, could you provide a description to our documentation? Simply open |
|
@grabbou An example of when this is necessary: my app uses react-native-firebase, in development mode it connects to a separate staging firebase project. To do that it needs to have a different android package name than the production app, so I use |
|
@grabbou this is a simple port of the same feature from the cli. |
grabbou
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good, but I do have a question (left a comment).
For this I just copied this code from the cli
This allows app suffix support. Example: com.test**.development**, com.test**.staging**, |
|
Also @grabbou I would love to update the documentation for hermes. But I can't find the documentation for that specific cli. The appidsuffix is already in the main cli commands, here: Can you point me in the right direction? |
@BrendonSled The documentation is in here, at the end of that file, you need to add two more paragraphs with the new options: https://github.com/react-native-community/cli/blob/master/docs/commands.md#profile-hermes I'm interested in this functionality too, so in case you are too busy, I'd have no problem in updating the docs on your fork if that's okay. |
|
@BrendonSled have just come across this issue/PR as I'm needing to do a bit of Hermes profiling in an app that has Debug/Staging/Production flavors. @elizabeth-dev are you actively still needing this feature? |
|
The PR is ready to be merged, I have applied some tweaks. @henrymoulton would you mind testing that everything works as expected for you? |
|
Meanwhile, I have decided to ship it. Since we're not going to make a release anytime soon and this PR is additive, I will continue working on the CLI and wait for reports in the meantime. |
|
@grabbou, @BrendonSled , I'm trying to use this new feature without success. Am I doing something wrong? |
Summary:
Very simple change.
Added the appId and appIdSuffix from the platform-android package. This allows anyone with an app suffix like
.debugto profile hermes.Test Plan:
This code is copy paste from the platform-android package.