-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 790 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PURPLE := \033[0;35m
NC := \033[0m # No Color (reset)
# Staging apk
STAGING_APK_PATH := $(wildcard app/build/outputs/apk/staging/debug/com.*.apk)
# Get user id for sample work profile
WORK_PROFILE := $(shell adb shell pm list users | grep "Managed Profile")
WORK_PROFILE_ID := $(shell echo "$(WORK_PROFILE)" | awk -F'[:{}]' '{print $$2}')
assemble/staging-debug:
@echo "🔧️$(PURPLE)Assembling staging debug build...$(NC)"
./gradlew assembleStagingDebug
install/staging-debug:
@echo "🚀$(PURPLE)Installing staging debug build on connected device...$(NC)"
adb install -r $(STAGING_APK_PATH)
emm/install/staging-debug:
@echo "🚀$(PURPLE)Installing staging debug build on connected device on work-profile...$(NC)"
adb install --user $(WORK_PROFILE_ID) -r $(STAGING_APK_PATH)