Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {
externalNativeBuild {
cmake {
cppFlags '-g'
arguments "-DANDROID_STL=c++_shared", "-DBUILD_DIR=${buildDir}", "-DANDROID_DEBUG_SYMBOLS=ON"
arguments "-DANDROID_STL=c++_shared", "-DBUILD_DIR=${buildDir}", "-DANDROID_DEBUG_SYMBOLS=ON", "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
}
}
}
Expand Down Expand Up @@ -79,13 +79,16 @@ android {
externalNativeBuild {
cmake {
path file('src/main/cpp/CMakeLists.txt')
version '3.18.1'
version '3.22.1'
}
}
buildFeatures {
viewBinding true
}
ndkVersion '21.4.7075529'
// Upgrading to this NDK version because older NDKs compile `libc++_shared.so`
// with a 4 KB page size. Starting with NDK r27, it is built with a 16 KB page size by default.
// This resolves compatibility issues reported by the Play Store. See #119 for details.
ndkVersion '27.3.13750724'

// Enabled the lint to avoid potential errors.
lintOptions {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
cmake_minimum_required(VERSION 3.18.1)
cmake_minimum_required(VERSION 3.22.1)

project("libkiwix_wrapper")

Expand Down