Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test-app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ android {
if (onlyX86) {
abiFilters 'x86'
} else {
abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a'
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
}
}
dexOptions {
Expand Down
Binary file not shown.
4 changes: 3 additions & 1 deletion test-app/app/src/main/assets/app/tests/testNativeModules.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ describe("Tests native modules)", function () {
if (lcArch.indexOf("arm") > -1) {
arch = "arm";
} else if (lcArch.indexOf("aarch64") > -1) {
arch = (com.tns.Runtime.getPointerSize() == 4) ? "arm" : "arm64";
arch = (com.tns.Runtime.getPointerSize() == 4) ? "arm" : "arm64";
} else if (lcArch.indexOf("i686") > -1) {
arch = "x86";
} else if (lcArch.indexOf("x86_64") > -1) {
arch = "x86_64";
} else {
throw new Error("Unsupported architecture=" + sysArch);
}
Expand Down
3 changes: 2 additions & 1 deletion test-app/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ MESSAGE(STATUS "# CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS})
target_link_libraries(NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libzip.a)
target_link_libraries(NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8.a)

if("${ANDROID_ABI}" MATCHES "armeabi-v7a" OR "${ANDROID_ABI}" MATCHES "x86")
if("${ANDROID_ABI}" MATCHES "armeabi-v7a$" OR "${ANDROID_ABI}" MATCHES "x86$")
# On API Level 19 and lower we need to link with android_support
# because it contains some implementation of functions such as "strtoll" and "strtoul"
MESSAGE(STATUS "# Linking with libandroid_support.a")
target_link_libraries(NativeScript ${ANDROID_NDK_ROOT}/sources/cxx-stl/llvm-libc++/libs/${ANDROID_ABI}/libandroid_support.a)
endif()

Expand Down
2 changes: 1 addition & 1 deletion test-app/runtime/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ android {
if (onlyX86) {
abiFilters 'x86'
} else {
abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a'
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
}
}
}
Expand Down
Binary file modified test-app/runtime/src/main/libs/arm64-v8a/libzip.a
Binary file not shown.
Binary file modified test-app/runtime/src/main/libs/armeabi-v7a/libzip.a
Binary file not shown.
Binary file modified test-app/runtime/src/main/libs/x86/libzip.a
Binary file not shown.
253 changes: 253 additions & 0 deletions test-app/runtime/src/main/libs/x86_64/include/natives_blob.h

Large diffs are not rendered by default.

18,150 changes: 18,150 additions & 0 deletions test-app/runtime/src/main/libs/x86_64/include/snapshot_blob.h

Large diffs are not rendered by default.

Binary file added test-app/runtime/src/main/libs/x86_64/libv8.a
Binary file not shown.
Binary file added test-app/runtime/src/main/libs/x86_64/libzip.a
Binary file not shown.