react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

react-native 0.60.3 hermes support for android

Open xDAnkit opened this issue 7 years ago • 14 comments

react-native introduced hermes for android . When you guys are planning for supporting RN 0.60.3. Since as per Team FB they have migrated the JavaScript engine to hermes and mentioned that the code generation and compilation is being done at build side.

xDAnkit avatar Jul 12 '19 20:07 xDAnkit

Does CodePush still work if you enable Hermes? I would expect there’s still a jsbundle with Hermes...it’s just not optimized if a CodePush jsbundle were to be installed afterwards, correct?

Is this ticket just asking for CodePush to optimize the CodePush jsbundles with the Hermes engine?

jstheoriginal avatar Jul 15 '19 14:07 jstheoriginal

I guess the end goal of "supporting Hermes" is to introduce bytecode compilation option for Android codepushes and server that file OTA. But I assume, current jsbundle will work, but just not gonna benefit from. I'll test this assumption soon.

usrbowe avatar Jul 17 '19 04:07 usrbowe

Does CodePush still work if you enable Hermes? I would expect there’s still a jsbundle with Hermes...it’s just not optimized if a CodePush jsbundle were to be installed afterwards, correct?

Is this ticket just asking for CodePush to optimize the CodePush jsbundles with the Hermes engine?

Yes, Wanted to know that whether do we need to wait for new updates on codepush to support hermes. Or the current version will support it.

Since as i read hermes docs the whole engine is getting replaced it. and instead of packaging bundle the android code will push optimized bundle.

xDAnkit avatar Jul 19 '19 18:07 xDAnkit

would really love the hermes support!

iit2008047 avatar Jul 26 '19 05:07 iit2008047

Hey folks, I've just opened a PR to support Hermes form the CLI level, no code has to be modified from the client side to support Hermes, feel free to comment on my PR, thanks.

eggli avatar Aug 05 '19 09:08 eggli

The PR to support Hermes from CLI level got merged, I think we can close this issue for now.

eggli avatar Aug 06 '19 10:08 eggli

Greatly appreciate your contribution to get this in, @eggli!

jstheoriginal avatar Aug 06 '19 13:08 jstheoriginal

Hi all,

I'm going to close this issue for now as PR was merged. Thanks @eggli ! Please feel free to reopen it if you have any questions.

alexandergoncharov-zz avatar Feb 12 '20 12:02 alexandergoncharov-zz

Which cli version contain above merge request? I cannot see any log relate to hermes.

My cmd:

appcenter codepush release-react -a <my_app> -d Production  -t 3.0.0 -x

My system:

npmPackages:
  react: 16.9.0 => 16.9.0 
  react-native: 0.61.5 => 0.61.5 
 npmGlobalPackages:
  create-react-native-app: 3.2.4
  react-native-cli: 2.0.1
  react-native-create-library: 3.1.2
$ appcenter --version 
appcenter version 2.3.0

luatnd avatar Aug 07 '20 07:08 luatnd

Hi all,

I'm going to close this issue for now as PR was merged. Thanks @eggli ! Please feel free to reopen it if you have any questions.

Can anyone please share the link to the PR which was merged? i am unable to find anything related to hermes in the documentation of codePush. The bundles being uploaded to appcenter are still plaintext JS bundles. Is there some flag to enable hermes compilation before upload?

kaushikwavhal avatar Jul 21 '21 06:07 kaushikwavhal

Hi all, I'm going to close this issue for now as PR was merged. Thanks @eggli ! Please feel free to reopen it if you have any questions.

Can anyone please share the link to the PR which was merged? i am unable to find anything related to hermes in the documentation of codePush. The bundles being uploaded to appcenter are still plaintext JS bundles. Is there a secret flag to enable hermes compilation before upload?

https://github.com/microsoft/appcenter-cli/pull/627

rocwind avatar Jul 21 '21 06:07 rocwind

@rocwind

We are at the same problem here

react-native @ 0.63.3 react-native-code-push @ 6.4.0

How can we tell the Codepush CLI to produce a JS bundle that is compatible with Hermes?

yaronlevi avatar Aug 17 '21 14:08 yaronlevi

@rocwind

We are at the same problem here

react-native @ 0.63.3 react-native-code-push @ 6.4.0

How can we tell the Codepush CLI to produce a JS bundle that is compatible with Hermes? @yaronlevi

I think It's the code-push-cli version matters:

rocwind avatar Aug 17 '21 15:08 rocwind

@rocwind Thanks for the help! We will try to make it work...

yaronlevi avatar Aug 18 '21 07:08 yaronlevi