flutter_post_build 1.3.0
flutter_post_build: ^1.3.0 copied to clipboard
A command-line tool to rename and organize Flutter build artifacts after the build process is complete.
Changelog #
1.3.0 #
- FIX: APK build directory missing no longer terminates the script — execution continues to AAB scanning, enabling correct behavior for
flutter build appbundle-only workflows. - FIX: Both APK and AAB scan sections now always execute and always print their headers, ensuring predictable output regardless of which artifacts are present.
- FIX: Escaped newline
\\nin final success message corrected to\n— previously printed as a literal backslash-n instead of a blank line. - IMPROVE:
clean_build_foldersafety guard now uses an absolute path comparison instead ofendsWith('build'), preventing accidental deletion of unintended directories. - IMPROVE: Cross-device fallback in
safeMoveOrCopynow logs the caught error instead of silently discarding it, aiding diagnosis of I/O failures.
1.2.0 #
- FEAT: Added support for Android App Bundles (
.aab) alongside APK processing. - FEAT: Introduced
append_versionoption to include version (frompubspec.yaml) in output filenames. - FEAT: Implemented intelligent architecture detection and renaming:
armeabi-v7a→v7aarm64-v8a→a64x86_64→x86- universal APK →
uni - app bundle →
bun
- FEAT: Added
discardconfiguration to selectively skip specific APK variants during processing. - FEAT: Added
clean_build_folderoption to remove thebuild/directory after successful processing. - IMPROVE: Separated APK and AAB pipelines for better alignment with Flutter build commands.
- IMPROVE: Added safe cross-device file operations (fallback copy + delete when rename fails).
- IMPROVE: Added overwrite protection to prevent accidental file replacement.
- IMPROVE: Added validation warning when
append_versionis enabled but version is missing. - IMPROVE: Enhanced logging clarity for processing, skipping, and cleanup actions.
1.1.1 #
- Updated README
1.1.0 #
- FEAT: Added
move_filesoption. When set tofalse, files are copied to thefinal_directoryinstead of being moved, leaving the original build artifacts intact. - DOCS: Updated README to include documentation for the new
move_filesflag.
1.0.0 #
- Initial Release
- Core functionality to rename and move build artifacts based on
pubspec.yamlconfiguration. - Supports
package_nameandfinal_directoryoptions.