Skip to content

Commit a95b798

Browse files
authored
Support 16 KB page sizes on Android (#1184)
* Support 16 KB page sizes on Android * Update readme.md
1 parent 0cfb628 commit a95b798

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmake/build_shared.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ function(build_firebase_shared LIBRARY_NAME ARTIFACT_NAME OUTPUT_NAME)
106106
"-Wl,--no-undefined"
107107
# Link against the static libc++, which is the default done by Gradle.
108108
"-static-libstdc++"
109+
# Set the max page size to 16KB, needed by Android 15
110+
"-Wl,-z,max-page-size=16384"
109111
)
110112
add_custom_command(TARGET ${shared_target} POST_BUILD
111113
COMMAND "${ANDROID_TOOLCHAIN_PREFIX}strip" -g -S -d --strip-debug --verbose

cmake/build_universal.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ function(build_uni TARGET_LINK_LIB_NAMES PROJECT_LIST_HEADER_VARIABLE)
8686
"-Wl,--no-undefined"
8787
# Link against the static libc++, which is the default done by Gradle.
8888
"-static-libstdc++"
89+
# Set the max page size to 16KB, needed by Android 15
90+
"-Wl,-z,max-page-size=16384"
8991
)
9092
add_custom_command(TARGET firebase_app_uni POST_BUILD
9193
COMMAND "${ANDROID_TOOLCHAIN_PREFIX}strip" -g -S -d --strip-debug --verbose

docs/readme.md

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ Support
7171

7272
Release Notes
7373
-------------
74+
### Upcoming
75+
- Changes
76+
- General (Android): Support 16 KB page sizes, needed by Android 15.
77+
For more info, see https://developer.android.com/guide/practices/page-sizes
78+
7479
### 12.5.0
7580
- Changes
7681
- General: Update to Firebase C++ SDK version 12.5.0.

0 commit comments

Comments
 (0)