All Versions
5
Latest Version
2.0
Avg Release Cycle
262 days
Latest Release
1425 days ago

Changelog History

  • v2.0 Changes

    May 04, 2020

    Kotlin Migration

    Extremely helpful for Kotlin applications and almost no change for Java apps

    โž• Added ConnectivityOberver

    ๐Ÿ—„ Necessary because ConnectivityManager.CONNECTIVITY_ACTION is deprecated

    โž• Additional Features

    โž• Added the possibility to set the port for UDP and TCP, so you can find e.g. only devices that use the same port

    Filters can be added to e.g. only find devices that contain a certain string

    val nearDiscovery = NearDiscovery.Builder() .setContext(this) .setDiscoverableTimeoutMillis(DISCOVERABLE\_TIMEOUT\_MILLIS) .setDiscoveryTimeoutMillis(DISCOVERY\_TIMEOUT\_MILLIS) .setDiscoverablePingIntervalMillis(DISCOVERABLE\_PING\_INTERVAL\_MILLIS) .setDiscoveryListener(getNearDiscoveryListener(), Looper.getMainLooper()) .setPort(8989) // optional.setFilter(Regex("filter")) // optional.build()
    
    nearDiscovery.makeDiscoverable("hostName", "filter" /\* optional \*/)
    

    This will listen on Port 8989 and will show only Hosts specified the filterText "filter"

    • If you set a Filter on nearDiscovery but not setting a filterText, the Host will not be found
    • The other way around neither
    • If you don't specify a filter and filterText then all Hosts will be found

    Credits

    ๐Ÿš€ This release is entirely thanks to @DATL4G

  • v1.2 Changes

    October 01, 2019
    • โšก๏ธ updated gradle version
    • ๐Ÿ—„ replaced deprecated support libs with androidx
    • โšก๏ธ updated other libs
    • set minSdk to 19
    • โž• added annotations
    • โšก๏ธ updated gitignore
  • v1.1.1 Changes

    June 29, 2017

    ๐Ÿ”€ synchronization related

  • v1.1

    June 23, 2017
  • v1.0

    June 23, 2017