-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (49 loc) · 1.69 KB
/
Copy pathMakefile
File metadata and controls
66 lines (49 loc) · 1.69 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
GRADLE := ./gradlew
.PHONY: help format check test build clean install lint apk release bump bump-minor publish export-therion export-svg check-translations
help:
@echo "Common targets:"
@echo " make format Apply Spotless formatting to Java/Kotlin/XML"
@echo " make check Verify formatting without modifying files"
@echo " make test Run unit tests"
@echo " make lint Run Android lint"
@echo " make build Full debug build (compile + test + lint)"
@echo " make apk Build debug APK"
@echo " make release Build release APK"
@echo " make install Install debug APK on connected device"
@echo " make bump Bump patch version in app/build.gradle"
@echo " make bump-minor Bump minor version (resets patch to 0) in app/build.gradle"
@echo " make publish Commit and tag the release (then push to trigger the workflow)"
@echo " make export-therion Dump a Therion bundle to app/build/exports/example/"
@echo " make export-svg Dump SVG plan + EE to app/build/exports/example/"
@echo " make check-translations Report strings missing from locale strings.xml files"
@echo " make clean Remove build artefacts"
format:
$(GRADLE) spotlessApply
check:
$(GRADLE) spotlessCheck
test: check
$(GRADLE) test
lint:
$(GRADLE) lint
build:
$(GRADLE) build
apk:
$(GRADLE) assembleDebug
release:
$(GRADLE) assembleRelease
install:
$(GRADLE) installDebug
bump:
python3 scripts/bump.py
bump-minor:
python3 scripts/bump.py --minor
publish:
python3 scripts/publish.py
export-therion:
$(GRADLE) :app:exportTherionFixtures
export-svg:
$(GRADLE) :app:exportSvgFixtures
check-translations:
python3 scripts/check_translations.py
clean:
$(GRADLE) clean