chore: add square logcat
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
6bd5094a7a
commit
e3c5e4e0ef
|
|
@ -301,6 +301,9 @@ dependencies {
|
||||||
debugImplementation("com.github.chuckerteam.chucker:library:4.0.0")
|
debugImplementation("com.github.chuckerteam.chucker:library:4.0.0")
|
||||||
releaseImplementation("com.github.chuckerteam.chucker:library-no-op:4.0.0")
|
releaseImplementation("com.github.chuckerteam.chucker:library-no-op:4.0.0")
|
||||||
|
|
||||||
|
// Square Logcat
|
||||||
|
implementation("com.squareup.logcat:logcat:0.1")
|
||||||
|
|
||||||
// Testing
|
// Testing
|
||||||
androidTestImplementation("androidx.test:runner:$androidXTestVersion")
|
androidTestImplementation("androidx.test:runner:$androidXTestVersion")
|
||||||
androidTestImplementation("androidx.test:rules:$androidXTestVersion")
|
androidTestImplementation("androidx.test:rules:$androidXTestVersion")
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ package chat.revolt
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
import com.google.android.material.color.DynamicColors
|
import com.google.android.material.color.DynamicColors
|
||||||
import dagger.hilt.android.HiltAndroidApp
|
import dagger.hilt.android.HiltAndroidApp
|
||||||
|
import logcat.AndroidLogcatLogger
|
||||||
|
import logcat.LogPriority
|
||||||
|
|
||||||
@HiltAndroidApp
|
@HiltAndroidApp
|
||||||
class RevoltApplication : Application() {
|
class RevoltApplication : Application() {
|
||||||
|
|
@ -13,5 +15,6 @@ class RevoltApplication : Application() {
|
||||||
init {
|
init {
|
||||||
instance = this
|
instance = this
|
||||||
DynamicColors.applyToActivitiesIfAvailable(this)
|
DynamicColors.applyToActivitiesIfAvailable(this)
|
||||||
|
AndroidLogcatLogger.installOnDebuggableApp(this, minPriority = LogPriority.VERBOSE)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue