Skip to content

Instantly share code, notes, and snippets.

@lukepighetti
Last active May 31, 2021 17:29
Show Gist options
  • Save lukepighetti/c6be2793837c6458078abb965d432c81 to your computer and use it in GitHub Desktop.
Save lukepighetti/c6be2793837c6458078abb965d432c81 to your computer and use it in GitHub Desktop.
Basic Flutter Makefile
VERSION = 1.0.0
BUILD = 8
CHANGELOG = Added item counts and a celebration when a list is completed.
.PHONY: clean test build distribute
clean:
flutter clean
flutter pub get
pod repo update
( cd ios && pod install )
test:
flutter analyze
flutter format --dry-run --set-exit-if-changed test lib
flutter test
build:
flutter build ios --build-name $(VERSION) --build-number $(BUILD)
distribute: clean test build
( cd ios && fastlane ios external CHANGELOG:"$(CHANGELOG)" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment