|
1 | 1 | apply plugin: 'com.android.library' |
2 | 2 |
|
3 | | -// can be: "V8-11", "V8-10","V8-13", "JSC", "HERMES", "QUICKJS", "QUICKJS_NG", "SHERMES", "PRIMJS" |
| 3 | +// can be: "V8-11", "V8-10","V8-13", "JSC", "HERMES", "QUICKJS", "QUICKJS_NG", "PRIMJS" |
4 | 4 |
|
5 | | -def jsEngine = "V8-13" |
| 5 | +def jsEngine = "HERMES" |
6 | 6 |
|
7 | 7 | def hasEngine = project.hasProperty("engine") |
8 | 8 | if (hasEngine) { |
9 | 9 | jsEngine = engine |
10 | 10 | } |
11 | 11 |
|
12 | | -def hasHostObjects = project.hasProperty("useHostObjects") |
| 12 | +def hasHostObjects = true //project.hasProperty("useHostObjects") |
13 | 13 | def isNapiModule = project.hasProperty("asNapiModule"); |
14 | 14 |
|
15 | 15 | printf("Compiling NativeScript with %s.\n", jsEngine) |
@@ -141,9 +141,9 @@ android { |
141 | 141 | arguments.add("-DQUICKJS_NG=1") |
142 | 142 | } |
143 | 143 | } else if (jsEngine == "HERMES") { |
| 144 | + // SHERMES is kept as an alias for the static-hermes (hermesvm) |
| 145 | + // engine, which is now the canonical HERMES engine. |
144 | 146 | arguments.add("-DHERMES=1") |
145 | | - } else if (jsEngine == "SHERMES") { |
146 | | - arguments.add("-DSHERMES=1") |
147 | 147 | } else if (jsEngine == "PRIMJS") { |
148 | 148 | arguments.add("-DPRIMJS=1") |
149 | 149 | }else if (jsEngine == "JSC") { |
@@ -215,7 +215,7 @@ android { |
215 | 215 | exclude "**/libjsi.so" |
216 | 216 | exclude "**/libfbjni.so" |
217 | 217 | } |
218 | | - } else if (jsEngine == "HERMES" || jsEngine == "SHERMES") { |
| 218 | + } else if (jsEngine == "HERMES") { |
219 | 219 | packagingOptions { |
220 | 220 | exclude "**/libjsc.so" |
221 | 221 | exclude '**/libfbjni.so' |
@@ -251,7 +251,7 @@ dependencies { |
251 | 251 | implementation fileTree(include: ['*.jar'], dir: 'libs') |
252 | 252 | testImplementation "junit:junit:${ns_default_junit_version}" |
253 | 253 | testImplementation "org.mockito:mockito-core:${ns_default_mockito_core_version}" |
254 | | - if (jsEngine == "HERMES" || jsEngine == "SHERMES") { |
| 254 | + if (jsEngine == "HERMES") { |
255 | 255 | implementation 'com.facebook.fbjni:fbjni:0.7.0' |
256 | 256 | } |
257 | 257 | } |
|
0 commit comments