Fix Hermes enabled check for iOS#1756
Conversation
|
Hi @bryansum , thank you for your contribution! Could you please link the source where this |
|
It hasn't been replaced anywhere, it's just that that syntax is also valid Ruby, so it would seem worthwhile covering this case as well. For instance my use_react_native!(
path: config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
hermes_enabled: true
)and indeed has Hermes enabled. Generally speaking, this method of detection seems generally a bit brittle in any case -- what might make more sense would be to instead read the |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Hi @bryansum , since this is a utility method and it can be used anywhere, I would like to avoid relying on a generated file which may not exist in project at some point. |
Noticed that despite Hermes being enabled I wasn't seeing the
appcenter-clitry to create Hermes bytecode for the build -- this was because the check for Hermes was too specific -- it expects:when equally valid is new Ruby syntax:
This change adds the latter case as well to the test.