jsc-android-buildscripts icon indicating copy to clipboard operation
jsc-android-buildscripts copied to clipboard

What's a strange version name?

Open pengcao1 opened this issue 4 years ago • 3 comments

Hi guys: your know, lot of you guys upgrade react-native to 0.60 or above, there are many many libjsc.so crashes were reported from google play. and many friendly developers suggest me to change the runtime engine from default to v8 when I try to fix this issue. I just want to change the default engine to js-android, but, when I do this, the js-android was so strange!!, could anybody help to describe the rule of the version number?


**Version number from js-android-npm image

pengcao1 avatar Nov 11 '19 12:11 pengcao1

Hi @pengcao1 it's called jsc-android and not js-android, be careful about that (JSC = JavaScriptCore).

The version names are based on the SVN revision of the repository (https://svn.webkit.org/repository/webkit/), which is basically the commit-count if you're not into SVN (so higher is newer). I'm not sure what the last two digits in the versioning mean, could be some kind of minor/patch numbers, but that's actually not really important since you have the revision itself.

Btw: If you wanna switch your engine from JSC (currently React Native already comes with JSC 245459.0.0 by default which fixes most of the native crashes) to v8 (or maybe even Hermes on Android) you can basically do so without even touching the JSC, since the engines are completely independent...

tobi512 avatar Nov 11 '19 12:11 tobi512

@tobi512 I think there is an issue with the NPM tags though, because when I run yarn outdated, it shows 241213.1.0 as the latest. Since RN 0.60 ships with 245459.0.0, that version should be marked as the latest. Also the "Releases" tab in this repo doesn't have any of the 24xxxx releases at all.

newyankeecodeshop avatar Nov 27 '19 14:11 newyankeecodeshop

@newyankeecodeshop Yes that's indeed strange, 245459.0.0 is still tagged as next on https://www.npmjs.com/package/jsc-android and stock-react-native points to 174650.0.2 which seems ancient. Anyone here knows why that is the case?

tobi512 avatar Nov 28 '19 07:11 tobi512