mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-04-24 15:18:41 +02:00
lets remove LeakCanary, it got too annoying
This commit is contained in:
parent
a83497355c
commit
64456481a5
@ -40,15 +40,8 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
|
||||||
leakCanaryVersion = '1.6.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:4.7.0'
|
implementation 'com.simplemobiletools:commons:4.7.0'
|
||||||
|
|
||||||
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
|
|
||||||
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Properties props = new Properties()
|
Properties props = new Properties()
|
||||||
|
@ -2,18 +2,10 @@ package com.simplemobiletools.draw
|
|||||||
|
|
||||||
import android.app.Application
|
import android.app.Application
|
||||||
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
||||||
import com.squareup.leakcanary.LeakCanary
|
|
||||||
|
|
||||||
class App : Application() {
|
class App : Application() {
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
if (BuildConfig.DEBUG) {
|
|
||||||
if (LeakCanary.isInAnalyzerProcess(this)) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
LeakCanary.install(this)
|
|
||||||
}
|
|
||||||
|
|
||||||
checkUseEnglish()
|
checkUseEnglish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user