Change settings for checking the internet connection (#282)

This commit is contained in:
Rafał Borcz 2019-03-15 21:33:14 +01:00 committed by Mikołaj Pich
parent 35f1fe8d61
commit be807cb6c8

View File

@ -5,7 +5,7 @@ import android.content.SharedPreferences
import android.content.res.Resources import android.content.res.Resources
import androidx.preference.PreferenceManager import androidx.preference.PreferenceManager
import com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.InternetObservingSettings import com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.InternetObservingSettings
import com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.SocketInternetObservingStrategy import com.github.pwittchen.reactivenetwork.library.rx2.internet.observing.strategy.WalledGardenInternetObservingStrategy
import com.readystatesoftware.chuck.api.ChuckCollector import com.readystatesoftware.chuck.api.ChuckCollector
import com.readystatesoftware.chuck.api.ChuckInterceptor import com.readystatesoftware.chuck.api.ChuckInterceptor
import com.readystatesoftware.chuck.api.RetentionManager import com.readystatesoftware.chuck.api.RetentionManager
@ -27,8 +27,7 @@ internal class RepositoryModule {
@Provides @Provides
fun provideInternetObservingSettings(): InternetObservingSettings { fun provideInternetObservingSettings(): InternetObservingSettings {
return InternetObservingSettings.builder() return InternetObservingSettings.builder()
.strategy(SocketInternetObservingStrategy()) .strategy(WalledGardenInternetObservingStrategy())
.host("www.google.com")
.build() .build()
} }