FossifyGallery/app/src/main/kotlin/com/simplemobiletools/gallery/App.kt

21 lines
519 B
Kotlin
Raw Normal View History

package com.simplemobiletools.gallery
import android.app.Application
import com.github.ajalt.reprint.core.Reprint
2017-11-07 17:31:40 +01:00
import com.simplemobiletools.gallery.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)
}
2017-11-07 17:31:40 +01:00
Reprint.initialize(this)
}
}