mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-16 13:57:02 +05:30
feat(core): add a Napier plugin
This commit is contained in:
parent
0390336d50
commit
77af00229f
1 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
||||||
|
/*
|
||||||
|
* Copyright © 2022 Harsh Shandilya.
|
||||||
|
* Use of this source code is governed by an MIT-style
|
||||||
|
* license that can be found in the LICENSE file or at
|
||||||
|
* https://opensource.org/licenses/MIT.
|
||||||
|
*/
|
||||||
|
package dev.msfjarvis.claw.core.logging
|
||||||
|
|
||||||
|
import android.app.Application
|
||||||
|
import com.squareup.anvil.annotations.ContributesMultibinding
|
||||||
|
import dev.msfjarvis.claw.core.injection.AppPlugin
|
||||||
|
import dev.msfjarvis.claw.injection.scopes.AppScope
|
||||||
|
import io.github.aakira.napier.DebugAntilog
|
||||||
|
import io.github.aakira.napier.Napier
|
||||||
|
import javax.inject.Inject
|
||||||
|
|
||||||
|
@ContributesMultibinding(AppScope::class)
|
||||||
|
class NapierPlugin @Inject constructor() : AppPlugin {
|
||||||
|
override fun apply(application: Application) {
|
||||||
|
Napier.base(DebugAntilog())
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue