Releases: pwittchen/ReactiveNetwork
Releases · pwittchen/ReactiveNetwork
0.6.0
- fixed bug with the crash during unregister receiver for Pre-Lollipop devices #87
- extended
NetworkObservingStrategy
withvoid onError(String message, Exception exception)
method, which allows handling errors in network observing strategies - closed the socket in the Internet connection check #91
- added
SocketErrorHandler
with a default implementation inDefaultSocketErrorHandler
class, which allows handling errors during closing socket connection - delegated observing Internet connectivity functionality to separate class hidden behind
InternetObservingStrategy
interface - added an
InternetObservingStrategy
interface with the default implementation inDefaultInternetObservingStrategy
class, which allows to customize Internet observing strategy - added
Observable<Boolean> observeInternetConnectivity(int initialIntervalInMs, int intervalInMs, String host, int port, int timeout)
method toReactiveNetwork
class - added
Observable<Boolean> observeInternetConnectivity(final int initialIntervalInMs, final int intervalInMs, final String host, final int port, final int timeoutInMs, final SocketErrorHandler socketErrorHandler)
method toReactiveNetwork
class - added
Observable<Boolean> observeInternetConnectivity(final InternetObservingStrategy strategy, final int initialIntervalInMs, final int intervalInMs, final String host, final int port, final int timeoutInMs, final SocketErrorHandler socketErrorHandler)
method toReactiveNetwork
class - bumped RxJava version to 1.2.1
0.5.2
0.5.1
0.5.0
- handled all connection types (including Ethernet) (issue #71)
- removed
ConnectivityStatus
enum and replaced it withConnectivity
class. - replaced
Observable<ConnectivityStatus> observeNetworkConnectivity(final Context context)
method withObservable<Connectivity> observeNetworkConnectivity(final Context context)
- introduced a new way of network monitoring with NetworkCallback available from Android N (API 21) (issue #62)
- added
NetworkObservingStrategy
, which allows applying different network monitoring strategies - added
PreLollipopNetworkObservingStrategy
with old network monitoring implementation - added
LollipopNetworkObservingStrategy
with new network monitoring implementation - added
Observable<Connectivity> observeNetworkConnectivity(final Context context, final NetworkObservingStrategy strategy)
method to ReactiveNetwork class - made method for creating Observables static like in original RxJava library
- added
create()
method toReactiveNetwork
class - made constructor of
ReactiveNetwork
class protected - added
Preconditions
class verifying correctness of the input parameters - added more unit tests
0.4.0
Removed deprecated methods from the public API:
- removed depreacted
Observable<ConnectivityStatus> observeConnectivity(final Context context)
method in favor ofObservable<ConnectivityStatus> observeNetworkConnectivity(final Context context)
method - removed depreacted
Observable<List<ScanResult>> observeWifiAccessPoints(final Context context)
method in favor of ReactiveWiFi library - removed depreacted
Observable<WifiSignalLevel> observeWifiSignalLevel(final Context context)
method in favor of ReactiveWiFi library - removed depreacted
Observable<Integer> observeWifiSignalLevel(final Context context,final int numLevels)
method in favor of ReactiveWiFi library
Removed permissions in AndroidManifest.xml:
- removed
android.permission.ACCESS_WIFI_STATE
permission fromAndroidManifest.xml
- removed
android.permission.CHANGE_WIFI_STATE
permission fromAndroidManifest.xml
- removed
android.permission.ACCESS_COARSE_LOCATION
permission fromAndroidManifest.xml
0.3.0
- removed
enableInternetCheck()
method - removed
ConnectivityStatus.WIFI_CONNECTED_HAS_INTERNET
enum value - removed
ConnectivityStatus.WIFI_CONNECTED_HAS_NO_INTERNET
enum value - changed method name from
Observable<ConnectivityStatus> observeConnectivity(final Context context)
toObservable<ConnectivityStatus> observeNetworkConnectivity(final Context context)
- deprecated
Observable<ConnectivityStatus> observeConnectivity(final Context context)
method - deprecated
Observable<List<ScanResult>> observeWifiAccessPoints(final Context context)
method - depreceated
Observable<WifiSignalLevel> observeWifiSignalLevel(final Context context)
method - deprecated
Observable<Integer> observeWifiSignalLevel(final Context context, final int numLevels)
method - changed method signature from
ConnectivityStatus getConnectivityStatus(final Context context, final boolean checkInternet)
toConnectivityStatus getConnectivityStatus(final Context context)
- updated
ConnectivityStatus getConnectivityStatus(final Context context)
method and added JavaDoc for it - added
Observable<Boolean> observeInternetConnectivity(final int interval, final String host, final int port, final int timeout)
method - added
Observable<Boolean> observeInternetConnectivity()
method - added
android.permission.INTERNET
to theAndroidManifest.xml
- updated JavaDoc
- updated sample apps
- updated documentation in
README.md
- bumped RxJava version to 1.1.5
- bumped RxAndroid version to 1.2.0
- bumped Google Truth version to 0.28 (test dependency)
0.2.0
- added possibility to observe WiFi signal level with
observeWifiSignalLevel(context, numLevels)
andobserveWifiSignalLevel(context)
method - created
WifiSignalLevel
enum - added internet check to parameters of
getConnectivityStatus(context, checkInternet)
method - made
getConnectivityStatus(context, checkInternet)
method public - changed String variable
status
inConnectivityStatus
enum todescription
and made it public - changed output of the
toString()
method inConnectivityStatus
to keep consistency with another enum - made
ReactiveNetwork
class non-final - bumped Kotlin version in sample app to 1.0.0-rc-1036
- increased immutability of code of the library
- updated sample apps and documentation
0.1.5
- 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 toAndroidManifest.xml
to be able to scan WiFi access points on Android 6