Compare commits

..

27 Commits

Author SHA1 Message Date
f670e222c6 Localize strings 2022-08-21 23:32:41 +02:00
2cee19cf4a Include the connectivity status library as a aar file 2022-08-21 21:30:07 +02:00
738e167904 Send toast messages at the application level and not on a per activity basis 2022-08-21 20:38:51 +02:00
24c22a72e6 Send a message regarding connectivity loss/retrieval on all activities 2022-08-21 19:52:53 +02:00
aff5729041 Include a local copy of the connectivity-status library to solve a bug 2022-08-21 19:47:24 +02:00
fbfb775f7f Send toast messages to the home activity on connectivity changes 2022-08-21 14:11:39 +02:00
9d0bb452e3 Add comment to remember the problem with the connectivity-status library 2022-08-20 21:28:21 +02:00
767805981f Don't reset offline override before updating remote 2022-08-20 21:14:13 +02:00
99b34cfa41 Consider offline override before updating remote 2022-08-20 21:12:39 +02:00
8949f78177 Refactor functions 2022-08-20 21:11:04 +02:00
49abc081b6 Don't send toast messages from the repository 2022-08-20 12:44:20 +02:00
1290d3c4dd Remove unused function 2022-08-20 12:44:20 +02:00
faac7fc621 Prepare the repository functions for DB implementation 2022-08-20 12:44:20 +02:00
59267e6759 Don't create the mercury api if not connection is available 2022-08-20 12:44:20 +02:00
9a33ba0dbb Stop monitoring the network when the app goes in background 2022-08-20 12:44:20 +02:00
e60ed92c6d Do not change the network override from within the repository 2022-08-20 12:44:20 +02:00
3a2fab8e68 Reintroduce network checks where required 2022-08-20 12:44:20 +02:00
e7172853dc Refactor connectivity check 2022-08-20 12:44:20 +02:00
1390ff264f Show a message when the network connection is lost 2022-08-20 12:44:20 +02:00
daaaf902f5 Update todo comments 2022-08-20 12:44:20 +02:00
f78ee18e79 Remove all connectivity checks outside the repository 2022-08-20 12:44:20 +02:00
86dbe06eaa Remove network checks from the home activity 2022-08-20 12:44:20 +02:00
c5826466ad Do not fake offline mode when updating remote 2022-08-20 12:44:20 +02:00
88debf068b Handle the offline override in the repository 2022-08-20 12:44:20 +02:00
5ab9db586d Simplify network connectivity status check 2022-08-20 12:44:20 +02:00
2105044920 Perform network connectivity checks in the repository 2022-08-20 12:44:20 +02:00
davidoskky
e1e43adde4 Add multiplatform connectivity check 2022-08-20 12:44:20 +02:00
2 changed files with 0 additions and 6 deletions

View File

@ -188,9 +188,6 @@ dependencies {
//Settings //Settings
implementation("com.russhwolf:multiplatform-settings-no-arg:0.9") implementation("com.russhwolf:multiplatform-settings-no-arg:0.9")
//Logging
implementation("io.github.aakira:napier:2.6.1")
//PhotoView //PhotoView
implementation("com.github.chrisbanes:PhotoView:2.3.0") implementation("com.github.chrisbanes:PhotoView:2.3.0")

View File

@ -29,8 +29,6 @@ import com.russhwolf.settings.Settings
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import io.github.aakira.napier.DebugAntilog
import io.github.aakira.napier.Napier
import org.kodein.di.* import org.kodein.di.*
class MyApp : MultiDexApplication(), DIAware { class MyApp : MultiDexApplication(), DIAware {
@ -48,7 +46,6 @@ class MyApp : MultiDexApplication(), DIAware {
override fun onCreate() { override fun onCreate() {
super.onCreate() super.onCreate()
Napier.base(DebugAntilog())
config = Config() config = Config()
settings = Settings() settings = Settings()