-
Notifications
You must be signed in to change notification settings - Fork 0
/
z-android-base.mk
38 lines (31 loc) · 1.05 KB
/
z-android-base.mk
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
# check env set ANDROID_HOME
checkEnvAndroidHome:
ifndef ANDROID_HOME
@ echo Environment variable ANDROID_HOME is not set
exit 1
endif
# init this project
init: checkEnvAndroidHome
./gradlew clean buildEnvironment
cleanRoot:
./gradlew clean
# module module_shell_name
cleanGradleBuildAndIdea:
./gradlew clean cleanBuildCache cleanIdea
cleanBuildCatch:
@if [ -d ./.gradle ]; then rm -rf ./.gradle; fi
@if [ -d ./buildCache ]; then rm -rf ./buildCache; fi
@if [ -d ./buildCacheDir ]; then rm -rf ./buildCacheDir; fi
@echo "clean .gradle buildCache buildCacheDir"
cleanAll: cleanGradleBuildAndIdea cleanBuildCatch
@echo "clean all build !"
adbCrash: checkEnvAndroidHome
adb shell dumpsys dropbox --print data_app_crash
helpAndroidBase:
@echo "=> z-android-base.mk : android base task"
@echo "make init -> init this project for check base build error"
@echo "make cleanRoot -> run clean"
@echo "make cleanGradleBuildAndIdea -> run clean cleanBuildCache cleanIdea"
@echo "make cleanAll -> run clean all"
@echo "make adbCrash ~> show last crash info"
@echo ""