Implement logging in the android application
This commit is contained in:
parent
1392e2a571
commit
72d9ef92d2
@ -187,6 +187,9 @@ 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")
|
||||||
|
|
||||||
|
@ -19,6 +19,8 @@ import com.ftinc.scoop.Scoop
|
|||||||
import com.mikepenz.materialdrawer.util.AbstractDrawerImageLoader
|
import com.mikepenz.materialdrawer.util.AbstractDrawerImageLoader
|
||||||
import com.mikepenz.materialdrawer.util.DrawerImageLoader
|
import com.mikepenz.materialdrawer.util.DrawerImageLoader
|
||||||
import com.russhwolf.settings.Settings
|
import com.russhwolf.settings.Settings
|
||||||
|
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 {
|
||||||
@ -33,6 +35,7 @@ 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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user