Skip to content

Commit a802ef3

Browse files
authored
feat: enable 16 KB page size on Android (#859)
Enables support for 16 KB page sizes on Android. Each Native Module library will need to add this for themselves too in their `build.gradle` file if they want to support 16 KB page sizes, but it's good to have it in the template now I think. See [Support 16 KB page sizes](https://developer.android.com/guide/practices/page-sizes) for more information.
1 parent 46c0b13 commit a802ef3

File tree

1 file changed

+1
-1
lines changed
  • packages/create-react-native-library/templates/native-common/android

1 file changed

+1
-1
lines changed

packages/create-react-native-library/templates/native-common/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ android {
5151
externalNativeBuild {
5252
cmake {
5353
cppFlags "-frtti -fexceptions -Wall -fstack-protector-all"
54-
arguments "-DANDROID_STL=c++_shared"
54+
arguments "-DANDROID_STL=c++_shared", "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
5555
abiFilters (*reactNativeArchitectures())
5656

5757
buildTypes {

0 commit comments

Comments
 (0)