From 064807f7447a320c30a4e23384f52dc029d2bfcd Mon Sep 17 00:00:00 2001 From: Tonyo Francis Date: Wed, 23 Dec 2020 11:26:29 -0500 Subject: [PATCH] dep updates --- .../fetch2/provider/NetworkInfoProvider.kt | 5 +++-- gradle/wrapper/gradle-wrapper.properties | 2 +- versions.gradle | 16 ++++++++-------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/fetch2/src/main/java/com/tonyodev/fetch2/provider/NetworkInfoProvider.kt b/fetch2/src/main/java/com/tonyodev/fetch2/provider/NetworkInfoProvider.kt index be4a7f6e..8d4505af 100644 --- a/fetch2/src/main/java/com/tonyodev/fetch2/provider/NetworkInfoProvider.kt +++ b/fetch2/src/main/java/com/tonyodev/fetch2/provider/NetworkInfoProvider.kt @@ -40,13 +40,14 @@ class NetworkInfoProvider constructor(private val context: Context, .build() val networkCallback: ConnectivityManager.NetworkCallback = object : ConnectivityManager.NetworkCallback() { - override fun onLost(network: Network?) { + override fun onLost(network: Network) { notifyNetworkChangeListeners() } - override fun onAvailable(network: Network?) { + override fun onAvailable(network: Network) { notifyNetworkChangeListeners() } + } this.networkCallback = networkCallback connectivityManager.registerNetworkCallback(networkRequest, networkCallback) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 16315bf9..eb4ca85b 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip diff --git a/versions.gradle b/versions.gradle index c058c847..133cf5c1 100644 --- a/versions.gradle +++ b/versions.gradle @@ -5,15 +5,15 @@ ext { android_support_version = '28.0.0' constraint_layout_version = "1.1.3" room_version = '1.1.1' - junit_version = '4.12' - espresso_version = '3.0.1' - test_runner_version = '1.0.1' + junit_version = '4.13.1' + espresso_version = '3.0.2' + test_runner_version = '1.0.2' library_min_version = '14' - library_compile_version = 29 - library_target_version = 29 - library_build_tools_version = "29.0.3" - gradle_tools_version = '3.4.1' - rxJava2_version = "2.2.19" + library_compile_version = 30 + library_target_version = 30 + library_build_tools_version = "30.0.3" + gradle_tools_version = '4.1.1' + rxJava2_version = "2.2.20" rxAndroid2_version = "2.1.1" timber_version = "4.7.1" novoda_bintray_version = "0.9.2"