-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
66 lines (46 loc) · 1.68 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
SHELL := /bin/bash
path := ./
params := --console=plain
detekt:
$(path)gradlew detektAll $(params)
autodetekt:
$(path)gradlew detektAll --auto-correct --continue
buildApp:
./gradlew :app:assembleDebug $(params)
buildWear:
./gradlew :wear:assemble $(params)
buildAndroid:
./gradlew :cmp-app:assemble $(params)
buildDesktop:
./gradlew :cmp-app:assemble $(params)
testCommon:
./gradlew :cmp-common:testDebugUnitTest $(params)
localCheck: detekt buildApp buildWear buildAndroid testCommon
compose_metrics:
$(path)gradlew :app:assembleRelease \-Pmyapp.enableComposeCompilerReports=true
# https://github.com/PatilShreyas/compose-report-to-html
compose_report:
java -jar composeReport2Html.jar \
-app Coffeegram \
-overallStatsReport app/build/compose_metrics/app_release-module.json \
-detailedStatsMetrics app/build/compose_metrics/app_release-composables.csv \
-composableMetrics app/build/compose_metrics/app_release-composables.txt \
-classMetrics app/build/compose_metrics/app_release-classes.txt \
-o app/build/compose_report/
# Removes local branches absent in remote
# from: https://stackoverflow.com/a/17029936/981330
unsafe_clear_branches:
git fetch --prune && \
git branch -r | awk '{print $$1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | \
awk '{print $$1}' | xargs git branch -D
## Run on Desktop jvm
runDesktop:
./gradlew run $(params)
runWasm:
./gradlew :cmp-common:wasmJsRun --no-configuration-cache $(params)
buildWasm:
./gradlew :cmp-common:wasmJsBrowserDistribution --no-configuration-cache $(params)
generateFramework:
./gradlew :cmp-common:generateDummyFramework $(params)
buildHealth:
./gradlew buildHealth $(params)