Goal
I need a clear, step-by-step process I can follow to make the app + dependencies compatible with that 16 KB page-size constraint without upgrading Flutter SDK. I am looking for concrete actions I can take on:
pubspec.yamlbuild flags
Gradle settings
iOS project settings
or any packaging adjustments
Environment
Flutter SDK: 3.10 (cannot upgrade)
Target platforms: Android and/or iOS (mainly Android)
Build mode: Release
Full dependency list included below
What I need
What does "make compatible with 16 KB page size" mean for Flutter (Android/iOS)?
If there are multiple interpretations, please list them + how to verify.Since I cannot upgrade Flutter, what step-by-step process can I follow to:
detect issues with page-size usage
apply required build/config changes
verify the final binary is compliant with the 16 KB page-size limit
If third-party packages need patching due to native code, how do I minimally modify or replace them?
Does anything in this
pubspec.yamllook incompatible with strict size or page-size constraints?
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
bloc: ^8.1.2
flutter_bloc: ^8.1.3
bloc_concurrency: ^0.2.2
equatable: ^2.0.5
# firebase_auth: ^4.9.0
# firebase_core: ^2.15.1
pinput: ^3.0.1
google_fonts: ^5.1.0
fl_country_code_picker: ^0.1.5
another_flushbar: ^1.12.30
shared_preferences: ^2.2.1
image_picker: ^1.0.4
mobile_scanner: ^3.4.1
permission_handler: ^11.0.0
geocoding: ^2.1.0
geolocator: ^9.0.2
youtube_player_flutter: ^8.1.2
lottie: ^2.6.0
syncfusion_flutter_gauges: ^23.1.36
hive: ^2.2.3
dio: ^5.3.3
hydrated_bloc: ^9.1.2
path_provider: ^2.1.1
location: ^5.0.3
hive_flutter: ^1.1.0
freezed_annotation: ^2.4.1
flutter_blue_plus: ^1.29.3
gauge_indicator: ^0.4.3
flutter_svg: ^2.0.9
flutter_intl: ^0.0.1
url_launcher: ^6.2.2
fluttertoast: ^8.2.4
flutter_localizations:
sdk: flutter
intl: any
pdf: ^3.11.1
printing: ^5.12.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
hive_generator: ^2.0.1
build_runner: ^2.4.6
freezed: ^2.4.5
flutter_launcher_icons: "^0.13.1"
change_app_package_name: ^1.1.0
intl_translation:
-
2What does it mean that you "cannot upgrade flutter"? You will need to make sure all of your third party libraries are also aligned to 16KB page sizes (check recent versions). I wrote an article that describes how to do this that may be of help.tomerpacific– tomerpacific2025年11月24日 07:51:04 +00:00Commented 14 hours ago