Skip to content

Commit

Permalink
Merge pull request #81 from liujoshua/bugfix/koin-logging-workaround
Browse files Browse the repository at this point in the history
Application crash fix
  • Loading branch information
liujoshua authored May 14, 2021
2 parents 4c1f008 + d873748 commit eaf5613
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion androidApp/src/main/kotlin/SampleApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import android.app.Application
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
import org.koin.core.logger.Level

class SampleApplication: Application() {

override fun onCreate() {
super.onCreate()
// Start Koin
startKoin{
androidLogger()
androidLogger(Level.ERROR)
androidContext(this@SampleApplication)
modules(appModule)
}
Expand Down

0 comments on commit eaf5613

Please sign in to comment.