Skip to content

1.1.84

Choose a tag to compare

@github-actions github-actions released this 02 Dec 02:46
· 25 commits to master since this release
feat(NetUtil): Add methods to get local and Wi-Fi IP addresses

This commit introduces two new utility functions in `NetUtil.kt` for retrieving device IP addresses.

**Key Changes:**

1.  **`getLocalIpAddress()`:**
    *   A new method that iterates through all active, non-loopback network interfaces (such as Wi-Fi, Ethernet, or mobile data).
    *   It returns the first available IPv4 address found.

2.  **`getWifiIpAddress()`:**
    *   A new method that specifically retrieves the IPv4 address assigned to the device's Wi-Fi interface.
    *   It uses the `WifiManager`'s connection information to obtain the IP address.

**Version Update:**
*   The project version in `gradle.properties` has been incremented from `1.1.83` to `1.1.84`.