-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (37 loc) · 1.2 KB
/
Makefile
File metadata and controls
51 lines (37 loc) · 1.2 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
.PHONY: build build-release build-fdroid build-payments install install-release install-fdroid install-payments test test-unit test-android detekt dep-guard clean
# Build
build:
./gradlew :app:assembleDevBlackDebug
build-release:
./gradlew :app:assemblePlayProdRelease
build-fdroid:
./gradlew :app:assembleFdroidProdRelease
# Payments build - uses devProd variant (package: proton.android.pass.dev)
# Host defaults to payments.proton.black, override with: make build-payments PROTON_ENV=scientist
PROTON_ENV ?= payments
build-payments:
PROD_ENV_URL=$(PROTON_ENV).proton.black ./gradlew :app:assembleDevProdDebug
# Install
install:
./gradlew :app:installDevBlackDebug
install-release:
./gradlew :app:installPlayProdRelease
install-fdroid:
./gradlew :app:installFdroidProdRelease
install-payments:
PROD_ENV_URL=$(PROTON_ENV).proton.black ./gradlew :app:installDevProdDebug
# Lint
detekt:
./gradlew multiModuleDetekt
# Dependency guard
dep-guard:
./gradlew :app:dependencyGuardBaseline
# Test
test: test-unit
test-unit:
./gradlew testDevDebugUnitTest -x :pass:screenshot-tests:testDevDebugUnitTest --no-configuration-cache
test-android:
./gradlew allDevicesDebugAndroidTest
# Clean
clean:
./gradlew clean