Skip to content

Commit de463e7

Browse files
authored
Add 16kb page supports for android (#904)
1 parent d6f60fc commit de463e7

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

Build/libHttpClient.Android/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ apply plugin: "com.android.library"
22

33
android {
44
compileSdkVersion 31
5-
ndkVersion "25.1.8937393"
5+
ndkVersion "27.2.12479018"
66

77
defaultConfig {
8-
targetSdkVersion 30
8+
targetSdkVersion 34
99
minSdkVersion 21
1010

1111
externalNativeBuild {
@@ -17,6 +17,10 @@ android {
1717
arguments << "-DBUILD_SHARED_LIBS=1"
1818
}
1919

20+
// Support 16KB page sizes on 64-bit devices
21+
// https://developer.android.com/guide/practices/page-sizes#compile-16-kb-alignment
22+
arguments << "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
23+
2024
// externalNativeBuild normally skips static
2125
// lib targets. This forces it to build.
2226
targets "libHttpClient.Android"

Build/libcrypto.Android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ apply plugin: "com.android.library"
22

33
android {
44
compileSdkVersion 31
5-
ndkVersion "25.1.8937393"
5+
ndkVersion "27.2.12479018"
66

77
defaultConfig {
8-
targetSdkVersion 30
8+
targetSdkVersion 34
99
minSdkVersion 21
1010

1111
externalNativeBuild {

Build/libssl.Android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ apply plugin: "com.android.library"
22

33
android {
44
compileSdkVersion 31
5-
ndkVersion "25.1.8937393"
5+
ndkVersion "27.2.12479018"
66

77
defaultConfig {
8-
targetSdkVersion 30
8+
targetSdkVersion 34
99
minSdkVersion 21
1010

1111
externalNativeBuild {

0 commit comments

Comments
 (0)