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
srctonewPath, falling back to copy+delete when a cross-device rename fails. -
shouldDiscard(
String arch, YamlMap discard) → bool -
Returns
trueif the givenarchtag is listed in thediscardmap.