Skip to content

Commit 26aa310

Browse files
committed
support for 16KB page size for Android 15+
1 parent 1b82b95 commit 26aa310

5 files changed

Lines changed: 18 additions & 3 deletions

File tree

.cargo/config.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Cargo configuration for fula-api
2+
# Android targets require 16KB page alignment for Android 15+ (API 35)
3+
# See: https://developer.android.com/guide/practices/page-sizes
4+
5+
[target.aarch64-linux-android]
6+
rustflags = ["-C", "link-arg=-Wl,-z,max-page-size=16384"]
7+
8+
[target.armv7-linux-androideabi]
9+
rustflags = ["-C", "link-arg=-Wl,-z,max-page-size=16384"]
10+
11+
[target.x86_64-linux-android]
12+
rustflags = ["-C", "link-arg=-Wl,-z,max-page-size=16384"]

.github/workflows/flutter-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,15 @@ jobs:
141141
cat >> .cargo/config.toml << INNEREOF
142142
[target.aarch64-linux-android]
143143
linker = "${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang"
144+
rustflags = ["-C", "link-arg=-Wl,-z,max-page-size=16384"]
144145
145146
[target.armv7-linux-androideabi]
146147
linker = "${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang"
148+
rustflags = ["-C", "link-arg=-Wl,-z,max-page-size=16384"]
147149
148150
[target.x86_64-linux-android]
149151
linker = "${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang"
152+
rustflags = ["-C", "link-arg=-Wl,-z,max-page-size=16384"]
150153
INNEREOF
151154
152155
- name: Build for Android

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ name = "encrypted_upload_test"
7474
path = "examples/encrypted_upload_test.rs"
7575

7676
[workspace.package]
77-
version = "0.2.17"
77+
version = "0.2.18"
7878
edition = "2021"
7979
license = "MIT OR Apache-2.0"
8080
repository = "https://github.com/functionland/fula-api"

packages/fula_client/ios/fula_client.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Pod::Spec.new do |s|
88
s.name = 'fula_client'
9-
s.version = '0.2.17'
9+
s.version = '0.2.18'
1010
s.summary = 'Flutter SDK for Fula decentralized storage'
1111
s.description = <<-DESC
1212
A Flutter plugin providing client-side encryption, metadata privacy,

packages/fula_client/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fula_client
22
description: Flutter SDK for Fula decentralized storage with client-side encryption, metadata privacy, and secure sharing.
3-
version: 0.2.17
3+
version: 0.2.18
44
homepage: https://fx.land
55
repository: https://github.com/functionland/fula-api
66
issue_tracker: https://github.com/functionland/fula-api/issues

0 commit comments

Comments
 (0)