mosaicnetworks / babble-android

Babble android library
MIT License
8 stars 1 forks source link

Remove Guava Dependency #37

Open jonknight73 opened 4 years ago

jonknight73 commented 4 years ago

Currently we are importing the Guava library for a single line of code in P2PResolvedService.java:

    mInetAddress =  InetAddresses.forString((String) map.get(P2PService.HOST_LABEL));

It would be nice to find a lighter-weight implementation.

This line is converted the string host to an InetAddress version. The standard version tends to try to use a DNS lookup which is not appropriate for WiFi Direct.

jonknight73 commented 4 years ago

Linter output: 'com.google.common.net.InetAddresses' is marked unstable