mirror of
				https://github.com/SimpleMobileTools/Simple-Notes.git
				synced 2025-06-05 17:00:23 +02:00 
			
		
		
		
	adding Leakcanary
This commit is contained in:
		@@ -2,10 +2,19 @@ package com.simplemobiletools.notes
 | 
			
		||||
 | 
			
		||||
import android.app.Application
 | 
			
		||||
import com.facebook.stetho.Stetho
 | 
			
		||||
import com.simplemobiletools.notes.BuildConfig.USE_LEAK_CANARY
 | 
			
		||||
import com.squareup.leakcanary.LeakCanary
 | 
			
		||||
 | 
			
		||||
class App : Application() {
 | 
			
		||||
    override fun onCreate() {
 | 
			
		||||
        super.onCreate()
 | 
			
		||||
        if (USE_LEAK_CANARY) {
 | 
			
		||||
            if (LeakCanary.isInAnalyzerProcess(this)) {
 | 
			
		||||
                return
 | 
			
		||||
            }
 | 
			
		||||
            LeakCanary.install(this)
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (BuildConfig.DEBUG)
 | 
			
		||||
            Stetho.initializeWithDefaults(this)
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user