flutter_post_build library

A command-line tool to rename and organize Flutter build artifacts.

Functions

buildOutputName({required String packageName, required String arch, required String ext, required bool appendVersion, String? version}) String
Builds the output filename for an artifact.
detectApkArch(String fileName) String?
Detects the architecture tag from an APK fileName.
runPostBuild() → void
Runs the post-build artifact organizer.
safeMoveOrCopy(File src, String newPath, String label, {bool move = true}) → void
Moves or copies src to newPath, falling back to copy+delete when a cross-device rename fails.
shouldDiscard(String arch, YamlMap discard) bool
Returns true if the given arch tag is listed in the discard map.