Activates recomposition logging in the application class
This commit is contained in:
@@ -25,6 +25,8 @@ import android.os.Looper
|
||||
import android.os.StrictMode
|
||||
import android.os.StrictMode.ThreadPolicy
|
||||
import android.os.StrictMode.VmPolicy
|
||||
import com.skydoves.compose.stability.runtime.ComposeStabilityAnalyzer
|
||||
import com.vitorpamplona.amethyst.BuildConfig
|
||||
|
||||
class Logging {
|
||||
companion object {
|
||||
@@ -59,6 +61,9 @@ class Logging {
|
||||
)
|
||||
Looper.getMainLooper().setMessageLogging(LogMonitor())
|
||||
ChoreographerHelper.start()
|
||||
|
||||
// Enable recomposition tracking ONLY in debug builds
|
||||
ComposeStabilityAnalyzer.setEnabled(BuildConfig.DEBUG)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user