summaryrefslogtreecommitdiff
path: root/mobile-kt/Makefile
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-01-26 14:51:36 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-01-26 14:52:57 +0100
commitd3bf2d09f740221771806789b00bf915c9f5f2e3 (patch)
tree95f99eabd763dff1907f107393504ee75aa747d7 /mobile-kt/Makefile
parent466d03a38cb01e9ff9a2d11be113a81c2bdce34a (diff)
initial commitHEADmain
Diffstat (limited to 'mobile-kt/Makefile')
-rw-r--r--mobile-kt/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/mobile-kt/Makefile b/mobile-kt/Makefile
new file mode 100644
index 0000000..a314992
--- /dev/null
+++ b/mobile-kt/Makefile
@@ -0,0 +1,17 @@
+build: app/java/src/*.java
+ bazel build //app:image-sync
+
+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)