facebook / facebook/litho

Add support of 16 KB page sizes

Open
#1,072 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
7.8k
Forks
768
PR merge metrics
No merged PRs in 30d

Description

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. Source: https://android-developers.googleblog.com/2025/05/prepare-play-apps-for-devices-with-16kb-page-size.html

To my understanding, Litho library can add support of 16KB by using one of two approaches:
1. Update NDK version to r28 or higher. This way, Litho library will be 16 KB-aligned by default
2. Or by updating CMakeLists.txt to have this line: `target_link_options(${CMAKE_PROJECT_NAME} PRIVATE "-Wl,-z,max-page-size=16384")`

Link to Android documentation: https://developer.android.com/guide/practices/page-sizes#compile-16-kb-alignment

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.