.PHONY: all clean build test pigeon publish lint fmt format-check fix


pigeon:
	./scripts/compile-pigeon.sh
publish:
	./scripts/release.sh
	
lint:
	flutter analyze --no-fatal-infos

fmt:
	dart format lib/

format-check:
	@if ! dart format --set-exit-if-changed lib/; then \
		echo "Code formatting issues found. Run 'make format' to fix."; \
		exit 1; \
	fi

fix:
	dart fix --apply
	make lint
	make fmt

