This repository was archived by the owner on Dec 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/com/marknkamau/justjava Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ dependencies {
5757 implementation " com.squareup.picasso:picasso:${ versions.picasso} "
5858 implementation " com.jakewharton.timber:timber:${ versions.timber} "
5959 implementation " com.crashlytics.sdk.android:crashlytics:${ versions.crashlytics} "
60+ debugImplementation " com.squareup.leakcanary:leakcanary-android:${ versions.leakCanary} "
6061
6162 // Test libraries
6263 testImplementation " junit:junit:${ versions.junit} "
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import com.marknjunge.core.data.firebase.ClientDatabaseImpl
1717import com.marknjunge.core.data.firebase.ClientDatabaseService
1818import com.marknjunge.core.mpesa.MpesaInteractor
1919import com.marknjunge.core.mpesa.MpesaInteractorImpl
20+ import com.squareup.leakcanary.LeakCanary
2021
2122class JustJavaApp : Application () {
2223 lateinit var preferencesRepo: PreferencesRepository
@@ -30,6 +31,8 @@ class JustJavaApp : Application() {
3031 override fun onCreate () {
3132 super .onCreate()
3233
34+ LeakCanary .install(this )
35+
3336 if (BuildConfig .DEBUG ) {
3437 Timber .plant(object : Timber .DebugTree () {
3538 override fun createStackElementTag (element : StackTraceElement ): String {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ buildscript {
2323 ' mockitoKotlin' : ' 1.5.0' ,
2424 ' testRunner' : ' 1.0.2' ,
2525 ' espresso' : ' 3.0.2' ,
26+ ' leakCanary' : ' 1.6.2' ,
2627 ' firebase' : [
2728 ' core' : ' 16.0.5' ,
2829 ' auth' : ' 16.0.5' ,
You can’t perform that action at this time.
0 commit comments