ソースを参照

[Android] Update JSC version

The JSC version used by React Native is about 3 years old, and doesn't implement
things like Symbol or Typed Arrays, which require polyfills. These polyfills are
sometimes a los less performant, as is the case for Typed Arrays.

Bumping an updated JSC version makes both platforms consistent when it comes to
the JavaScript platform.
master
Saúl Ibarra Corretgé 6年前
コミット
8d3cecad86
3個のファイルの変更14行の追加1行の削除
  1. 8
    1
      android/build.gradle
  2. 5
    0
      package-lock.json
  3. 1
    0
      package.json

+ 8
- 1
android/build.gradle ファイルの表示

@@ -18,6 +18,7 @@ allprojects {
18 18
     repositories {
19 19
         google()
20 20
         jcenter()
21
+        maven { url "$rootDir/../node_modules/jsc-android/dist" }
21 22
         // React Native (JS, Obj-C sources, Android binaries) is installed from
22 23
         // npm.
23 24
         maven { url "$rootDir/../node_modules/react-native/android" }
@@ -34,6 +35,12 @@ allprojects {
34 35
                     def version = new groovy.json.JsonSlurper().parseText(file.text).version
35 36
                     details.useVersion version
36 37
                 }
38
+                if (details.requested.group == 'org.webkit'
39
+                        && details.requested.name == 'android-jsc') {
40
+                    def file = new File("$rootDir/../node_modules/jsc-android/package.json")
41
+                    def version = new groovy.json.JsonSlurper().parseText(file.text).version
42
+                    details.useVersion "r${version.tokenize('.')[0]}"
43
+                }
37 44
             }
38 45
         }
39 46
     }
@@ -146,7 +153,7 @@ allprojects {
146 153
 ext {
147 154
     buildToolsVersion = "26.0.2"
148 155
     compileSdkVersion = 26
149
-    minSdkVersion    = 16
156
+    minSdkVersion    = 21
150 157
     targetSdkVersion = 26
151 158
 
152 159
     // The Maven artifact groupdId of the third-party react-native modules which

+ 5
- 0
package-lock.json ファイルの表示

@@ -9519,6 +9519,11 @@
9519 9519
       "dev": true,
9520 9520
       "optional": true
9521 9521
     },
9522
+    "jsc-android": {
9523
+      "version": "224109.1.0",
9524
+      "resolved": "https://registry.npmjs.org/jsc-android/-/jsc-android-224109.1.0.tgz",
9525
+      "integrity": "sha512-mhALFynePc/wJsUt9BJuH13mSK/dGWtBO/pcYwVV1I0A7iduyqy3fSoAt1b0yI+/B3TzlGyue/gqjPxsqG1HRQ=="
9526
+    },
9522 9527
     "jsesc": {
9523 9528
       "version": "1.3.0",
9524 9529
       "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz",

+ 1
- 0
package.json ファイルの表示

@@ -47,6 +47,7 @@
47 47
     "jquery-contextmenu": "2.4.5",
48 48
     "jquery-i18next": "1.2.0",
49 49
     "js-md5": "0.6.1",
50
+    "jsc-android": "224109.1.0",
50 51
     "jwt-decode": "2.2.0",
51 52
     "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#2be752fc88ff71e454c6b9178b21a33b59c53f41",
52 53
     "lodash": "4.17.4",

読み込み中…
キャンセル
保存