forked from medic/cht-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (35 loc) · 1.04 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
ADB = ${ANDROID_HOME}/platform-tools/adb
GRADLEW = ./gradlew
flavour = Unbranded
ifdef ComSpec # Windows
# Use `/` for all paths, except `.\`
ADB := $(subst \,/,${ADB})
GRADLEW := $(subst /,\,${GRADLEW})
endif
default: deploy-flavour logs
branded: clean-apks assemble-all deploy-all logs
branded-debug: clean-apks assemble-all-debug deploy-all logs
clean: clean-apks
logs:
${ADB} logcat MedicMobile:V AndroidRuntime:E '*:S' | tee android.log
deploy-flavour:
${GRADLEW} --daemon --parallel install${flavour}Debug
clean-apks:
rm -rf build/outputs/apk/
assemble-all:
${GRADLEW} --daemon --parallel assemble
assemble-all-debug:
${GRADLEW} --daemon --parallel assembleDebug
deploy-all:
find build/outputs/apk -name \*-debug.apk | \
xargs -n1 ${ADB} install -r
uninstall-all:
${GRADLEW} uninstallAll
url-tester:
DISABLE_APP_URL_VALIDATION=true ${GRADLEW} --daemon --parallel installUnbrandedDebug
uninstall:
adb uninstall org.medicmobile.webapp.mobile
test:
${GRADLEW} androidCheck lintUnbrandedDebug test
travis: test
${GRADLEW} test assembleDebug