Option to disable app updates

This commit is contained in:
Koitharu
2020-03-15 16:26:31 +02:00
parent 64e17d4086
commit 402c66ae87
11 changed files with 81 additions and 38 deletions

View File

@@ -40,25 +40,27 @@ class KotatsuApp : Application() {
startKoin {
androidLogger()
androidContext(applicationContext)
module {
factory {
okHttp()
.cache(CacheUtils.createHttpCache(applicationContext))
.build()
modules(
module {
factory {
okHttp()
.cache(CacheUtils.createHttpCache(applicationContext))
.build()
}
single {
mangaDb().build()
}
single {
MangaLoaderContext()
}
factory {
AppSettings(applicationContext)
}
single {
PagesCache(applicationContext)
}
}
single {
mangaDb().build()
}
single {
MangaLoaderContext()
}
factory {
AppSettings(applicationContext)
}
single {
PagesCache(applicationContext)
}
}
)
}
}