Skip to content

Instantly share code, notes, and snippets.

@bbedward
Last active November 12, 2019 14:47
Show Gist options
  • Save bbedward/f7e32bfd159f55e74f0844b39c7d74ae to your computer and use it in GitHub Desktop.
Save bbedward/f7e32bfd159f55e74f0844b39c7d74ae to your computer and use it in GitHub Desktop.
Flutter build wrapper for fastlane
#!/bin/bash
cd ../../
if [ "$1" == "--clean" ]
then
echo "Running clean..."
flutter clean
else
echo "Skipping clean..."
fi
if [ "$1" == "--apk" ]
then
echo "Building APK..."
flutter build apk --release
else
echo "Building AAB..."
flutter build appbundle --release
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment