Skip to content

Commit 2262064

Browse files
authored
feat: react native >=0.80, android 16kb paging support (#97)
* fix(CMakeLists): use c++ 17 standard this fixes #96 Upgrading to C++17 helps because the NDK may have better support or defaults for standard library features in newer toolchains. * feat(build.gradle): add android 16kb paging support This allow the code to be compiled for android 16kb paging
1 parent 6dd6f8e commit 2262064

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

android/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.9.0)
22

33
set (CMAKE_VERBOSE_MAKEFILE ON)
4-
set (CMAKE_CXX_STANDARD 14)
4+
set (CMAKE_CXX_STANDARD 17)
55
set (BUILD_DIR ${CMAKE_SOURCE_DIR}/build)
66

77
add_library(rsa_bridge SHARED IMPORTED)
@@ -33,4 +33,4 @@ include_directories(
3333
target_link_libraries(fast-rsa
3434
rsa_bridge
3535
android
36-
log)
36+
log)

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ android {
6969
cmake {
7070
cppFlags "-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all"
7171
abiFilters "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
72-
arguments "-DNODE_MODULES_DIR=${rootDir}/../node_modules"
72+
arguments "-DNODE_MODULES_DIR=${rootDir}/../node_modules", "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
7373
}
7474
}
7575
}

0 commit comments

Comments
 (0)