Skip to content

Commit f5684e0

Browse files
16 KB memory page support for Android 15+ (#176)
* Add ELF 16KB alignment check script and CMake flags Introduces a comprehensive shell script to check ELF segment alignment for Android 16KB page size compatibility, addressing upcoming Google Play requirements. Updates CMakeLists.txt to set linker flags for 16KB page size support when building for Android, ensuring native libraries are compliant for Android 15+. * Bump version to 0.9.4 * Increase minSdkVersion to 21 in build.gradle Updated the Android project's minimum SDK version from 16 to 21 to ensure compatibility with newer APIs and libraries.
1 parent 5cf4d3e commit f5684e0

File tree

16 files changed

+739
-9
lines changed

16 files changed

+739
-9
lines changed

.github/scripts/check_elf_alignment.sh

Lines changed: 699 additions & 0 deletions
Large diffs are not rendered by default.

src/serious_python/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.4
2+
3+
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).
4+
15
## 0.9.3
26

37
* Fix: Hidden files in site-packages are skipped when building macOS app.

src/serious_python/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python
22
description: A cross-platform plugin for adding embedded Python runtime to your Flutter apps.
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.3
5+
version: 0.9.4
66

77
platforms:
88
ios:

src/serious_python_android/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.4
2+
3+
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).
4+
15
## 0.9.3
26

37
* Fix: Hidden files in site-packages are skipped when building macOS app.

src/serious_python_android/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.flet.serious_python_android'
2-
version '0.9.3'
2+
version '0.9.4'
33

44
def python_version = '3.12'
55

@@ -54,7 +54,7 @@ android {
5454
}
5555

5656
defaultConfig {
57-
minSdkVersion 16
57+
minSdkVersion 21
5858

5959
ndk {
6060
abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'

src/serious_python_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_android
22
description: Android implementation of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.3
5+
version: 0.9.4
66

77
environment:
88
sdk: ">=3.0.0 <4.0.0"

src/serious_python_android/src/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,11 @@ set_target_properties(serious_python PROPERTIES
1414
OUTPUT_NAME "serious_python"
1515
)
1616

17+
# Add 16 KB page size support for Android 15
18+
if(ANDROID)
19+
set_target_properties(serious_python PROPERTIES
20+
LINK_FLAGS "-Wl,-z,max-page-size=16384"
21+
)
22+
endif()
23+
1724
target_compile_definitions(serious_python PUBLIC DART_SHARED_LIB)

src/serious_python_darwin/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.4
2+
3+
* 16 KB memory page support for Android 15+ (by [@ReYaNOW](https://github.com/ReYaNOW)).
4+
15
## 0.9.3
26

37
* Fix: Hidden files in site-packages are skipped when building macOS app.

src/serious_python_darwin/darwin/serious_python_darwin.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'serious_python_darwin'
7-
s.version = '0.9.3'
7+
s.version = '0.9.4'
88
s.summary = 'A cross-platform plugin for adding embedded Python runtime to your Flutter apps.'
99
s.description = <<-DESC
1010
A cross-platform plugin for adding embedded Python runtime to your Flutter apps.

src/serious_python_darwin/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: serious_python_darwin
22
description: iOS and macOS implementations of the serious_python plugin
33
homepage: https://flet.dev
44
repository: https://github.com/flet-dev/serious-python
5-
version: 0.9.3
5+
version: 0.9.4
66

77
environment:
88
sdk: ">=3.0.0 <4.0.0"

0 commit comments

Comments
 (0)