summaryrefslogtreecommitdiff
path: root/Makefile
blob: b5005396873334d78f08d2f83e3a127c92bf6c29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
build: app/java/src/*.java
	bazel build //app/java:dnsproxy

dev:
	#bazel mobile-install //app/java:dnsproxy --start_app #--debug_app --java_debug
	$(MAKE) build && $(MAKE) install && adb shell am start -n org.pihole.dnsproxy/org.pihole.dnsproxy.MainActivity

install:
	#bazel mobile-install //app/java:dnsproxy
	adb install bazel-bin/app/java/dnsproxy.apk

emulate:
	# avdmanager create --name dnsproxy -k "system-images;android-28;google_apis_playstore;x86_64"
	emulator @dnsproxy -no-boot-anim

adb_logcat:
	adb logcat --pid=$(adb shell pidof -s org.pihole.dnsproxy)