Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Releases: pwittchen/NetworkEvents

2.1.6

18 Jul 21:26
Compare
Choose a tag to compare
  • added customization of the ping parameters via method NetworkEvents setPingParameters(String host, int port, int timeoutInMs)

2.1.5

18 Jul 13:52
Compare
Choose a tag to compare
  • added the private constructor to NetworkHelper class

2.1.4

16 Jul 22:32
Compare
Choose a tag to compare
  • changed implementation of the OnlineChecker in OnlineCheckerImpl class. Now it pings remote host.
  • added android.permission.INTERNET to AndroidManifest.xml
  • added back NetworkHelper class with static method boolean isConnectedToWiFiOrMobileNetwork(context)
  • updated sample apps

2.1.3

10 Jan 20:34
Compare
Choose a tag to compare
  • Due to memory leak in WifiManager reported in issue 43945 in Android issue tracker replaced Activity Context with Application Context in sample apps and added appropriate note in README.md
  • added ACCESS_COARSE_LOCATION permission to AndroidManifest.xml to be able to scan WiFi access points on Android 6

2.1.2

04 Oct 21:40
Compare
Choose a tag to compare
  • bumped target SDK version to 23
  • bumped buildToolsVersion to 23.0.1
  • removed CHANGE_NETWORK_STATE and INTERNET permissions from AndroidManifest.xml, because they're no longer required

2.1.1

13 Sep 20:11
Compare
Choose a tag to compare
  • updated InternetConnectionChangeReceiver class and its API
  • fixed failing unit tests
  • all changes were provided in a single commit 2f6999c

2.1.0

13 Sep 16:39
Compare
Choose a tag to compare
  • bumped version of gradle build tools to 1.3.0
  • disabled WIFI_CONNECTED status when enableInternetCheck() method is called. Read more about this change in appropriate section of README.md file.

2.0.1

09 Aug 20:52
Compare
Choose a tag to compare

replaced networkInfo.isConnectedOrConnecting() with networkInfo.isConnected() in isOnline(context) method in OnlineCheckerImpl class.

2.0.0

31 Jul 08:01
Compare
Choose a tag to compare
  • removed withPingUrl(url) method
  • removed withPingTimeout() method
  • removed withoutPing() method
  • removed withoutWifiAccessPointsScan() method
  • removed Otto dependency (now, it's available only for unit tests)
  • removed example-disabling-ping-and-wifi-scan app sample
  • removed example-ping-customization app sample
  • removed NetworkHelper class and moved its method to specific classes with changed scope
  • moved permissions to Manifest of library
  • disabled WiFi scan by default
  • disabled Internet connection check by default
  • added BusWrapper, which is abstraction for Event Bus required by NetworkEvents object
  • added example-greenrobot-bus app sample
  • added enableWifiScan() method
  • added enableInternetCheck() method
  • added getWifiScanResults() method in WifiSignalStrengthChanged event
  • added getMobileNetworkType() method in ConnectivityChanged event
  • added JavaDoc at: http://pwittchen.github.io/NetworkEvents/
  • updated existing sample applications
  • updated documentation in README.md and library code

1.0.5

13 May 07:35
Compare
Choose a tag to compare

In this version, we can customize NetworkEvents object. E.g. we can set our own ping url and ping timeout:

networkEvents = new NetworkEvents(this, bus)
        .withPingUrl("http://www.android.com")
        .withPingTimeout(50 * 1000);

We can also disable ping or Wifi Access Points Scan:

networkEvents = new NetworkEvents(this, bus)
        .withoutPing()
        .withoutWifiAccessPointsScan();

In the main repository, we can find new examples of applications showing how to use these methods.
In addition, internal elements of code (especially NetworkEvents class) were updated and new unit tests were created.