From d3bf2d09f740221771806789b00bf915c9f5f2e3 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 26 Jan 2024 14:51:36 +0100 Subject: initial commit --- mobile-kt/app/AndroidManifest.xml | 54 +++++++ mobile-kt/app/BUILD | 18 +++ mobile-kt/app/res/drawable/logo.png | Bin 0 -> 8963 bytes mobile-kt/app/res/layout/main.xml | 43 +++++ mobile-kt/app/res/menu/settings.xml | 11 ++ mobile-kt/app/res/values-de/strings.xml | 66 ++++++++ mobile-kt/app/res/values-ja/strings.xml | 66 ++++++++ mobile-kt/app/res/values/dimens.xml | 4 + mobile-kt/app/res/values/strings.xml | 66 ++++++++ mobile-kt/app/res/values/styles.xml | 11 ++ mobile-kt/app/res/xml/settings.xml | 45 ++++++ mobile-kt/app/src/DNSProxyConnection.java | 43 +++++ mobile-kt/app/src/DNSProxyRunner.java | 43 +++++ mobile-kt/app/src/DNSProxyService.java | 171 ++++++++++++++++++++ mobile-kt/app/src/MainActivity.kt | 35 +++++ mobile-kt/app/src/SettingsActivity.java | 132 ++++++++++++++++ mobile-kt/app/src/WifiListenerReceiver.java | 50 ++++++ mobile-kt/app/src/WifiListenerService.java | 236 ++++++++++++++++++++++++++++ 18 files changed, 1094 insertions(+) create mode 100644 mobile-kt/app/AndroidManifest.xml create mode 100644 mobile-kt/app/BUILD create mode 100644 mobile-kt/app/res/drawable/logo.png create mode 100644 mobile-kt/app/res/layout/main.xml create mode 100644 mobile-kt/app/res/menu/settings.xml create mode 100644 mobile-kt/app/res/values-de/strings.xml create mode 100644 mobile-kt/app/res/values-ja/strings.xml create mode 100644 mobile-kt/app/res/values/dimens.xml create mode 100644 mobile-kt/app/res/values/strings.xml create mode 100644 mobile-kt/app/res/values/styles.xml create mode 100644 mobile-kt/app/res/xml/settings.xml create mode 100644 mobile-kt/app/src/DNSProxyConnection.java create mode 100644 mobile-kt/app/src/DNSProxyRunner.java create mode 100644 mobile-kt/app/src/DNSProxyService.java create mode 100644 mobile-kt/app/src/MainActivity.kt create mode 100644 mobile-kt/app/src/SettingsActivity.java create mode 100644 mobile-kt/app/src/WifiListenerReceiver.java create mode 100644 mobile-kt/app/src/WifiListenerService.java (limited to 'mobile-kt/app') diff --git a/mobile-kt/app/AndroidManifest.xml b/mobile-kt/app/AndroidManifest.xml new file mode 100644 index 0000000..0c417b7 --- /dev/null +++ b/mobile-kt/app/AndroidManifest.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobile-kt/app/BUILD b/mobile-kt/app/BUILD new file mode 100644 index 0000000..c3e38c2 --- /dev/null +++ b/mobile-kt/app/BUILD @@ -0,0 +1,18 @@ +android_library( + name = "main", + manifest = "AndroidManifest.xml", + resource_files = glob(["res/**"]), +) + +load("@rules_kotlin//kotlin:android.bzl", "kt_android_library") +kt_android_library( + name = "main_kt", + srcs = glob(["src/*.kt"]), + deps = [":main"], +) + +android_binary( + name = "image-sync", + manifest = "AndroidManifest.xml", + deps = [":main", ":main_kt"], +) diff --git a/mobile-kt/app/res/drawable/logo.png b/mobile-kt/app/res/drawable/logo.png new file mode 100644 index 0000000..154b579 Binary files /dev/null and b/mobile-kt/app/res/drawable/logo.png differ diff --git a/mobile-kt/app/res/layout/main.xml b/mobile-kt/app/res/layout/main.xml new file mode 100644 index 0000000..d3bbcf5 --- /dev/null +++ b/mobile-kt/app/res/layout/main.xml @@ -0,0 +1,43 @@ + + + + + +