forked from cobeisfresh/CleanArchitecture-Android-Showcase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add try catch block to catch possible timeout exceptions in repository
- Loading branch information
1 parent
2902752
commit 2fba61f
Showing
9 changed files
with
48 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
package com.example.data.di | ||
|
||
import com.example.data.repository.weather.WeatherRepositoryImpl | ||
import com.example.data.utils.Connectivity | ||
import com.example.data.utils.ConnectivityImpl | ||
import com.example.domain.repository.WeatherRepository | ||
import org.koin.android.ext.koin.androidContext | ||
import org.koin.dsl.module | ||
|
||
val repositoryModule = module { | ||
factory<WeatherRepository> { WeatherRepositoryImpl(get(), get(), get()) } | ||
factory { ConnectivityImpl(androidContext()) } | ||
factory<Connectivity> { ConnectivityImpl(androidContext()) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,31 @@ | ||
# Project-wide Gradle settings. | ||
# IDE (e.g. Android Studio) users: | ||
# Gradle settings configured through the IDE *will override* | ||
# any settings specified in this file. | ||
# For more details on how to configure your build environment visit | ||
## For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
# | ||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
org.gradle.jvmargs=-Xmx1536m | ||
# Default value: -Xmx1024m -XX:MaxPermSize=256m | ||
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
# | ||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
# org.gradle.parallel=true | ||
# AndroidX package structure to make it clearer which packages are bundled with the | ||
# Android operating system, and which are packaged with your app's APK | ||
# https://developer.android.com/topic/libraries/support-library/androidx-rn | ||
#Sat Aug 24 12:09:01 CEST 2019 | ||
android.useAndroidX=true | ||
# Automatically convert third-party libraries to use AndroidX | ||
android.enableJetifier=true | ||
# Kotlin code style for this project: "official" or "obsolete": | ||
kotlin.code.style=official | ||
################## | ||
### VERSIONING ### | ||
################## | ||
# APP VERSION | ||
VERSION_NAME=1.0.0 | ||
VERSION_CODE=1 | ||
# ANDROID BUILD SETTINGS | ||
ANDROID_MIN_SDK_VERSION=21 | ||
ANDROID_TARGET_SDK_VERSION=28 | ||
ANDROID_COMPILE_SDK_VERSION=28 | ||
ANDROID_BUILD_TOOLS_VERSION=28.0.3 | ||
# LIBRARIES | ||
KOTLIN_VERSION=1.3.41 | ||
COROUTINES_VERSION=1.2.1 | ||
KOIN_VERSION=2.0.1 | ||
RETROFIT_VERSION=2.6.0 | ||
ANDROID_BUILD_TOOLS_VERSION=28.0.3 | ||
ROOM_VERSION=2.1.0 | ||
COROUTINES_VERSION=1.2.1 | ||
ANDROID_TARGET_SDK_VERSION=28 | ||
OKHTTP3LOGINTERCEPTOR_VERSION=3.10.0 | ||
org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M" | ||
ANDROID_COMPILE_SDK_VERSION=28 | ||
VERSION_NAME=1.0.0 | ||
VERSION_CODE=1 | ||
KOTLIN_VERSION=1.3.50 | ||
RETROFIT_VERSION=2.6.0 | ||
kotlin.code.style=official | ||
ANDROID_MIN_SDK_VERSION=21 | ||
ARHITECTURECOMPONENTS_VERSION=2.2.0-alpha03 | ||
MOCKITO_VERSION=2.1.0 | ||
|
||
|
||
|
||
android.enableJetifier=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Jul 10 22:03:31 CEST 2019 | ||
#Sat Aug 24 12:04:28 CEST 2019 | ||
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-5.4.1-all.zip |