-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
49 lines (40 loc) · 1.45 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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