From 2259ae916239a3e6a84226583edc610a578cb98e Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 29 Apr 2023 10:07:00 +0200 Subject: initial commit --- app/java/AndroidManifest.xml | 41 +++++++++++++++++++++++++ app/java/BUILD | 14 +++++++++ app/java/res/layout/main.xml | 29 ++++++++++++++++++ app/java/res/values/dimens.xml | 4 +++ app/java/res/values/strings.xml | 10 ++++++ app/java/src/DNSService.java | 33 ++++++++++++++++++++ app/java/src/MainActivity.java | 68 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 199 insertions(+) create mode 100644 app/java/AndroidManifest.xml create mode 100644 app/java/BUILD create mode 100644 app/java/res/layout/main.xml create mode 100644 app/java/res/values/dimens.xml create mode 100644 app/java/res/values/strings.xml create mode 100644 app/java/src/DNSService.java create mode 100644 app/java/src/MainActivity.java (limited to 'app/java') diff --git a/app/java/AndroidManifest.xml b/app/java/AndroidManifest.xml new file mode 100644 index 0000000..ef81463 --- /dev/null +++ b/app/java/AndroidManifest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/java/BUILD b/app/java/BUILD new file mode 100644 index 0000000..c19473f --- /dev/null +++ b/app/java/BUILD @@ -0,0 +1,14 @@ +load("@build_bazel_rules_android//android:rules.bzl", "android_library", "android_binary") + +android_library( + name = "main", + srcs = glob(["src/*.java"]), + manifest = "AndroidManifest.xml", + resource_files = glob(["res/**"]), +) + +android_binary( + name = "dnsproxy", + manifest = "AndroidManifest.xml", + deps = [":main"], +) diff --git a/app/java/res/layout/main.xml b/app/java/res/layout/main.xml new file mode 100644 index 0000000..4a644b6 --- /dev/null +++ b/app/java/res/layout/main.xml @@ -0,0 +1,29 @@ + + + + + +