Skip to content

Commit 76081be

Browse files
liamjoneskraenhansen
authored andcommitted
Support 16KB page size on Android 15+ (#7019)
* Support 16KB page size on Android 15+ Based on the information at https://developer.android.com/guide/practices/page-sizes and from how support was added to realm-kotlin here realm/realm-kotlin#1834 * Added changelog entry * Update changelog to add instructions for AGP 8.5 and lower
1 parent ffd1be3 commit 76081be

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
### Enhancements
77
* Add support for React Native 0.80.0, by migrating to a pure C++ TurboModule. ([#7029](https://github.com/realm/realm-js/pull/7027))
8+
* 16KB page size support for Android 15+ ([#7019](https://github.com/realm/realm-js/pull/7019)). If you are using Android Gradle Plugin (AGP) 8.5 or lower, you will need to [enable legacy packaging](https://developer.android.com/guide/practices/page-sizes#update-packaging).
89

910
### Fixed
1011
* Fix numerous crashes on Android, by explicitly setting C++ standard (C++20) when building pre-builds. ([#7027](https://github.com/realm/realm-js/pull/7027), since v12.11.0)

packages/realm/binding/android/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ set_target_properties(realm-js-android-binding PROPERTIES
2929

3030
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)
3131
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -Oz")
32+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384")
3233

3334
# target_link_options(realm-js-android-binding PUBLIC -fvisibility=hidden)
3435

0 commit comments

Comments
 (0)