rive-app / rive-android

A runtime for interactive animations on Android
https://rive.app
MIT License
332 stars 30 forks source link

Fix bug crash on Android 15 (with 16KB page size support) #331

Open vegeta2102 opened 1 week ago

vegeta2102 commented 1 week ago

Description

Following on this issue https://github.com/rive-app/rive-android/issues/329 and the guidance from AndroidDeveloper https://developer.android.com/guide/practices/page-sizes#compile-r26-lower native-code has to rebuilt in order to be compatible with Android 15.

target_link_options(${CMAKE_PROJECT_NAME} PRIVATE "-Wl,-z,max-page-size=16384")

Updated CMakeLists.txt to enable 16 KB ELF alignment.