From 4031207cca5b2c84b950cd90615b0c0ec0e7894a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20G=2E=20Jord=C3=A1n?= Date: Thu, 29 May 2025 12:26:55 +0200 Subject: [PATCH] Update build.gradle, adding flexible page sizes flag to support 16 KB devices Android will force 16 KB page sizes support starting November 1st. https://developer.android.com/guide/practices/page-sizes > Starting November 1st, 2025, all new apps and updates to existing apps submitted to Google Play and targeting Android 15+ devices must support 16 KB page sizes. This can already put an application in trouble should it be targeted to Android 15+, when we want to push the APK to the Play Store. The emulators (those that are 16KB ready) are already showing a popup stating that the app isn't 16KB compatible. --- package/android/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/android/build.gradle b/package/android/build.gradle index b5d2e83628..370d4a61e8 100644 --- a/package/android/build.gradle +++ b/package/android/build.gradle @@ -133,7 +133,8 @@ android { cppFlags "-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all" arguments "-DANDROID_STL=c++_shared", "-DNODE_MODULES_DIR=${nodeModules}", - "-DENABLE_FRAME_PROCESSORS=${enableFrameProcessors ? "ON" : "OFF"}" + "-DENABLE_FRAME_PROCESSORS=${enableFrameProcessors ? "ON" : "OFF"}", + "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON" abiFilters (*reactNativeArchitectures()) } }