Skip to content

Commit 5122d34

Browse files
committed
fix abis in test-app when jsc engine is enabled
1 parent f921827 commit 5122d34

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

test-app/app/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,13 @@ android {
233233
targetSdkVersion computeTargetSdkVersion()
234234
ndk {
235235
if (onlyX86) {
236-
abiFilters 'x86'
236+
// The updated JSC only ships 64-bit libraries, so fall back to
237+
// x86_64 when a single-ABI (emulator) build is requested.
238+
abiFilters ns_engine == "JSC" ? 'x86_64' : 'x86'
239+
} else if (ns_engine == "JSC") {
240+
// The newer JSC engine only provides arm64-v8a and x86_64
241+
// prebuilts, so restrict the app to those two ABIs.
242+
abiFilters 'x86_64', 'arm64-v8a'
237243
} else {
238244
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
239245
}

0 commit comments

Comments
 (0)