Skip to content

Commit f732094

Browse files
authored
Merge pull request #1448 from NativeScript/darind/x86_64
Added x86_64 architecture
2 parents 18af8ac + 6f58f53 commit f732094

File tree

17 files changed

+19823
-5
lines changed

17 files changed

+19823
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
6.0.2
2+
==
3+
4+
## What's New
5+
6+
- [Include x86_64 architecture](https://github.com/NativeScript/android-runtime/issues/1419)
7+
18
6.0.1
29
==
310

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tns-android",
33
"description": "NativeScript Runtime for Android",
4-
"version": "6.0.1",
4+
"version": "6.0.2",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/NativeScript/android-runtime.git"

test-app/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ android {
229229
if (onlyX86) {
230230
abiFilters 'x86'
231231
} else {
232-
abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a'
232+
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
233233
}
234234
}
235235
dexOptions {
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

test-app/app/src/main/assets/app/tests/testNativeModules.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ describe("Tests native modules)", function () {
1010
if (lcArch.indexOf("arm") > -1) {
1111
arch = "arm";
1212
} else if (lcArch.indexOf("aarch64") > -1) {
13-
arch = (com.tns.Runtime.getPointerSize() == 4) ? "arm" : "arm64";
13+
arch = (com.tns.Runtime.getPointerSize() == 4) ? "arm" : "arm64";
1414
} else if (lcArch.indexOf("i686") > -1) {
1515
arch = "x86";
16+
} else if (lcArch.indexOf("x86_64") > -1) {
17+
arch = "x86_64";
1618
} else {
1719
throw new Error("Unsupported architecture=" + sysArch);
1820
}

test-app/runtime/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,10 @@ MESSAGE(STATUS "# CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS})
203203
target_link_libraries(NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libzip.a)
204204
target_link_libraries(NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8.a)
205205

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

test-app/runtime/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ android {
7575
if (onlyX86) {
7676
abiFilters 'x86'
7777
} else {
78-
abiFilters 'x86', 'armeabi-v7a', 'arm64-v8a'
78+
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
7979
}
8080
}
8181
}
Binary file not shown.
Binary file not shown.
638 KB
Binary file not shown.

test-app/runtime/src/main/libs/x86_64/include/natives_blob.h

Lines changed: 253 additions & 0 deletions
Large diffs are not rendered by default.

test-app/runtime/src/main/libs/x86_64/include/snapshot_blob.h

Lines changed: 19555 additions & 0 deletions
Large diffs are not rendered by default.
49.3 MB
Binary file not shown.
1.56 MB
Binary file not shown.

0 commit comments

Comments
 (0)