Applications.kt
TLDR
This file provides an extension property for the Application
class that allows checking if the application is built as a debuggable version.
END
package leakcanary.internal
import android.app.Application
import android.content.pm.ApplicationInfo
internal val Application.isDebuggableBuild: Boolean
get() = (applicationInfo.flags and ApplicationInfo.FLAG_DEBUGGABLE) != 0