From 4ae2ca0b1ef0d5f0284c9fbcba89d16cf3a470aa Mon Sep 17 00:00:00 2001 From: w2sv Date: Thu, 20 Jul 2023 18:19:56 +0200 Subject: [PATCH] Add BSSID to WiFiProperties --- .../play/listings/en-US/full-description.txt | 23 ++++++++++++------- .../play/release-notes/en-US/production.txt | 3 +-- .../w2sv/common/data/sources/WifiProperty.kt | 7 ++++++ common/src/main/res/values/string_arrays.xml | 4 ++++ common/src/main/res/values/strings.xml | 1 + gradle.properties | 4 ++-- 6 files changed, 30 insertions(+), 12 deletions(-) diff --git a/app/src/main/play/listings/en-US/full-description.txt b/app/src/main/play/listings/en-US/full-description.txt index 09b5d7fd..e0f41969 100644 --- a/app/src/main/play/listings/en-US/full-description.txt +++ b/app/src/main/play/listings/en-US/full-description.txt @@ -1,21 +1,28 @@ -WiFi properties which may be displayed by the widget are: +The widget configuration options include the: +- Color scheme +- Background opacity +- Connection properties to be displayed +- Data refreshing parameters + +WiFi connection properties displayed by the widget: - SSID -- IP Address +- BSSID +- IPv4 +- Netmask +- Local IPv6 +- First Public IPv6 +- Second Public IPv6 - Frequency +- Channel - Link Speed - Gateway - DNS - DHCP -- Netmask - -You can configure which properties are to be displayed. Also, you can choose between a light/dark widget theme -independent of the set device theme, as well as determine the widget background opacity. -The app itself likewise supports both light and dark mode. The source code is available under the GPL-3.0 license at https://github.com/w2sv/WiFi-Widget. Feel free to hit me up with enhancement propositions, bug reports or whatever. -Built by yours truly, Janek Zangenberg. +Built by yours truly, Janek Zangenberg aka W2SV. Credits: - Logo foreground by Hilmy Abiyyu Asad licensed under Creative Commons(Attribution 3.0 unported). diff --git a/app/src/main/play/release-notes/en-US/production.txt b/app/src/main/play/release-notes/en-US/production.txt index b94a4818..c4e8e896 100644 --- a/app/src/main/play/release-notes/en-US/production.txt +++ b/app/src/main/play/release-notes/en-US/production.txt @@ -1,2 +1 @@ -- Pimped UI in various regards -- Enabled hiding of last widget data refresh date time \ No newline at end of file +- Added BSSID to WiFi properties \ No newline at end of file diff --git a/common/src/main/kotlin/com/w2sv/common/data/sources/WifiProperty.kt b/common/src/main/kotlin/com/w2sv/common/data/sources/WifiProperty.kt index b7e90637..c5a96a7b 100644 --- a/common/src/main/kotlin/com/w2sv/common/data/sources/WifiProperty.kt +++ b/common/src/main/kotlin/com/w2sv/common/data/sources/WifiProperty.kt @@ -32,6 +32,13 @@ enum class WifiProperty( }, false ), + BSSID( + R.string.bssid, + R.array.bssid, + { wifiManager, _ -> + wifiManager.connectionInfo.bssid + } + ), IP( R.string.ipv4, R.array.ipv4, diff --git a/common/src/main/res/values/string_arrays.xml b/common/src/main/res/values/string_arrays.xml index 8469af2e..b02b810d 100644 --- a/common/src/main/res/values/string_arrays.xml +++ b/common/src/main/res/values/string_arrays.xml @@ -3,6 +3,10 @@ Service Set Identifier. Your network\'s name. https://en.wikipedia.org/wiki/Service_set_(802.11_network)#SSID + + Basic Service Set Identifier. A 48-bit label abiding by MAC-48 conventions which identifies your devices basic service set. + https://en.wikipedia.org/wiki/Service_set_(802.11_network)#BSSID + Internet Protocol Address, serving the two main purposes of identifying the network interface of your device and providing it\'s location within the network, thereby making it addressable. The IPv4 representation corresponds to a 32-bit number. The displayed address is your internal one, meaning that it\'s only visible from within your network. https://en.wikipedia.org/wiki/IP_address diff --git a/common/src/main/res/values/strings.xml b/common/src/main/res/values/strings.xml index 4df0b93a..878651ce 100644 --- a/common/src/main/res/values/strings.xml +++ b/common/src/main/res/values/strings.xml @@ -27,4 +27,5 @@ WiFi Disabled Widget pinning not supported by your device launcher Show date time + BSSID \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index d2462c90..fd83e0a1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,5 +8,5 @@ android.nonTransitiveRClass=true android.defaults.buildfeatures.buildconfig=true android.uniquePackageNames=true android.nonFinalResIds=false -version=1.2.6 -versionCode=32 \ No newline at end of file +version=1.2.61 +versionCode=33 \ No newline at end of file