Loading...
Loading...
Measures and optimizes the size of Flutter application bundles for deployment. Use when minimizing download size or meeting app store package constraints.
npx skill4agent add flutter/skills flutter-reducing-app-size--analyze-size*-code-size-analysis_*.json--analyze-size*-code-size-analysis_*.jsonbuild/flutter build apk --analyze-sizeflutter build appbundle --analyze-sizeflutter build ios --analyze-size.appflutter build [windows|macos|linux] --analyze-sizedart devtools*-code-size-analysis_*.jsonpubspec.yamlflutter build ipa --export-method developmentbuild/ios/archive/*.xcarchiveApp Thinning Size Report.txtpubspec.yamlassets/pngquantimageoptim# Generate the size analysis JSON for an Android App Bundle
flutter build appbundle --analyze-size --target-platform=android-arm64# Build an APK while stripping debug info to reduce binary size
flutter build apk --obfuscate --split-debug-info=build/app/outputs/symbolsApp Thinning Size Report.txtVariant: Runner-7433FC8E-1DF4-4299-A7E8-E00768671BEB.ipa
Supported variant descriptors: [device: iPhone12,1, os-version: 13.0]
App + On Demand Resources size: 5.4 MB compressed, 13.7 MB uncompressed
App size: 5.4 MB compressed, 13.7 MB uncompressed