ReactiveNetwork Versions Save

Android library listening network connection state and Internet connectivity with RxJava Observables

v2.0.0-rx2

5 years ago

v1.0.0

5 years ago
Observable<Boolean> observeInternetConnectivity(int interval, String host, int port, int timeout)
Observable<Boolean> observeInternetConnectivity(int initialIntervalInMs, int intervalInMs, String host, int port, int timeout)
Observable<Boolean> observeInternetConnectivity(final int initialIntervalInMs, final int intervalInMs, final String host, final int port, final int timeoutInMs, final ErrorHandler errorHandler)
Observable<Boolean> observeInternetConnectivity(final InternetObservingStrategy strategy)
Observable<Boolean> observeInternetConnectivity(final InternetObservingStrategy strategy, final String host)

Single<Boolean> checkInternetConnectivity(InternetObservingStrategy strategy)
Single<Boolean> checkInternetConnectivity(String host,int port, int timeoutInMs)
Single<Boolean> checkInternetConnectivity(String host, int port, int timeoutInMs, ErrorHandler errorHandler)
Single<Boolean> checkInternetConnectivity(final InternetObservingStrategy strategy, final String host)
  • added InternetObservingSettings class
  • added the following methods to the ReactiveNetwork class:
Observable<Boolean> observeInternetConnectivity(InternetObservingSettings settings)
Single<Boolean> checkInternetConnectivity(InternetObservingSettings settings)

v0.12.4

5 years ago
  • updated project dependencies - PR #268, PR #269, commit 02449af2f38ac463e1aa8824beee46ea823fd83b

0.12.3

6 years ago
  • bumped RxJava: 1.3.3 -> 1.3.5
  • updated Gradle Build Tools: 3.0.0 -> 3.0.1
  • added script for publishing JavaDoc on gh-pages
  • added script for publishing documentation on gh-pages

v0.12.3-rx2

6 years ago

0.12.2

6 years ago
  • updated project dependencies
  • updated Gradle to 3.0.0

v0.12.2-rx2

6 years ago
  • updated API of MarshmallowNetworkObservingStrategy
    • made void registerIdleReceiver(context) protected
    • made boolean isIdleMode(context) protected
    • made tryToUnregisterCallback(ConnectivityManager) protected
    • made tryToUnregisterReceiver(context) protected
    • made NetworkCallback createNetworkCallback(context) protected
    • added BroadcastReceiver createIdleBroadcastReceiver()
    • added onNext(Connectivity connectivity)
    • added MarshmallowNetworkObservingStrategy() constructor
    • extracted String messages into protected static final fields
  • set min sdk version for sample apps to 14
  • updated Gradle v. 3.0.0.
  • updated compile sdk version: 25 -> 26
  • updated build tools version: 25.0.2 - > 26.0.2
  • updated kotlin version: 1.1.3-2 -> 1.1.51
  • updated project dependencies
    • RxJava 2.1.2 -> 2.1.6
    • support-annotations: 25.3.0 -> 27.0.1
    • appcompat-v7: 25.3.0 -> 27.0.1
    • truth: 0.34 -> 0.36
    • mockito-core: 2.8.47 -> 2.12.0
  • added ErrorProne for static code analysis
  • added NullAway for static code analysis

v0.12.1-rx2

6 years ago

Fixed memory leak in PreLollipopNetworkObservingStrategy during disposing of an Observable - issue #219.

v0.12.0-rx2

6 years ago
  • Fixed NPE occuring when ConnectivityManager is null in ReactiveNetwork.observeNetworkConnectivity() method - issue #209
  • Added new methods to the API for checking Internet connectivity - issue #205
    • Observable<Boolean> observeInternetConnectivity(strategy, host)
    • Single<Boolean> checkInternetConnectivity(strategy, host)
  • Added to documentation comment about monitoring Internet connectivity with custom host - issue #204
  • Classes which implement InternetObservingStrategy handle custom hosts with and without http:// or https:// prefix gracefully - issue #206
  • organized packages with unit tests
  • made the library more hermetic
  • changed visibility of SocketInternetObservingStrategy#isConnected(String host, int port, int timeoutInMs, ErrorHandler handler) method from public to protected
  • changed visibility of SocketInternetObservingStrategy#isConnected(Socket socket, String host, int port, int timeoutInMs, ErrorHandler errorHandler) method from public to protected
  • changed visibility of Connectivity#create(Context, ConnectivityManager) method from public to protected
  • changed visibility of WalledGardenInternetObservingStrategy#isConnected(String host, int port, int timeoutInMs, ErrorHandler errorHandler) method from public to protected
  • changed visibility of WalledGardenInternetObservingStrategy#createHttpUrlConnection(String host, int port, int timeoutInMs) method from public to protected

v0.12.0

6 years ago
  • Fixed NPE occuring when ConnectivityManager is null in ReactiveNetwork.observeNetworkConnectivity() method - issue #209
  • Added new method to the API for checking Internet connectivity - issue #205
    • Observable<Boolean> observeInternetConnectivity(strategy, host)
  • Added to documentation comment about monitoring Internet connectivity with custom host - issue #204
  • Classes which implement InternetObservingStrategy handle custom hosts with and without http:// or https:// prefix gracefully - issue #206
  • organized packages with unit tests
  • made the library more hermetic
  • changed visibility of SocketInternetObservingStrategy#isConnected(String host, int port, int timeoutInMs, ErrorHandler handler) method from public to protected
  • changed visibility of SocketInternetObservingStrategy#isConnected(Socket socket, String host, int port, int timeoutInMs, ErrorHandler errorHandler) method from public to protected
  • changed visibility of Connectivity#create(Context, ConnectivityManager) method from public to protected
  • changed visibility of WalledGardenInternetObservingStrategy#isConnected(String host, int port, int timeoutInMs, ErrorHandler errorHandler) method from public to protected
  • changed visibility of WalledGardenInternetObservingStrategy#createHttpUrlConnection(String host, int port, int timeoutInMs) method from public to protected