# many of these commands are specific to my macOS setup # so you may need to install some of these tools like fd, gum clean: clean-build @gum log -l debug "removing .gradle directories" @fd -u -t d '^.gradle$$' -X rm -Rf @gum log -l debug "removing .kotlin directories" @fd -u -t d '^.kotlin$$' -X rm -Rf @gum log -l debug "removing .DS_Store files" @fd -u -tf ".DS_Store" -X rm @gum log -l debug "remove empty directories, suppressing error messages" @fd -u -td -te -X rmdir clean-build: @gum log -l info "This script will clean the build folders & cache" @gum log -l debug "removing build directories" @fd -u -t d '^build$$' -X rm -Rf kill-ksp: @gum log -l info "This script will kill your kotlin daemon (useful for ksp errors)" @jps | grep -E 'KotlinCompileDaemon' | awk '{print $$1}' | xargs kill -9 || true b: @gum log -l info "This script will assemble the debug app (without linting)" @./gradlew assembleDebug -x lint build: @gum log -l info "This script will assemble the project (without linting)" @./gradlew assemble -x lint lint: @gum log -l info "This script will run lint checks" @./gradlew lint lint-update: @gum log -l info "Update the baseline for lint" @./gradlew updateLintBaseline tests: @echo "Run all unit tests without linting" ./gradlew tests -x lint #tests-screenshots: # @echo "Verify all screenshots" # ./gradlew verifyPaparazziDebug # #record-screenshots: # @echo "Record all screenshots" # ./gradlew recordPaparazziDebug