Compare commits

...

2 Commits

Author SHA1 Message Date
Amine Louveau
112194dd4f Merge pull request 'Implement logging in the android application' (#32) from davidoskky/ReaderForSelfoss-multiplatform:logging into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: https://gitea.amine-louveau.fr/Louvorg/ReaderForSelfoss-multiplatform/pulls/32
2022-08-20 18:18:48 +00:00
72d9ef92d2 Implement logging in the android application
All checks were successful
continuous-integration/drone/pr Build is passing
2022-08-20 12:29:04 +02:00
2 changed files with 6 additions and 0 deletions

View File

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

View File

@ -19,6 +19,8 @@ import com.ftinc.scoop.Scoop
import com.mikepenz.materialdrawer.util.AbstractDrawerImageLoader
import com.mikepenz.materialdrawer.util.DrawerImageLoader
import com.russhwolf.settings.Settings
import io.github.aakira.napier.DebugAntilog
import io.github.aakira.napier.Napier
import org.kodein.di.*
class MyApp : MultiDexApplication(), DIAware {
@ -33,6 +35,7 @@ class MyApp : MultiDexApplication(), DIAware {
override fun onCreate() {
super.onCreate()
Napier.base(DebugAntilog())
config = Config()
settings = Settings()