adding Stetho in debug builds
This commit is contained in:
parent
91bd5a6d4a
commit
7c498b90dc
3 changed files with 18 additions and 0 deletions
|
@ -42,6 +42,7 @@ android {
|
|||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:3.14.12'
|
||||
implementation 'com.facebook.stetho:stetho:1.5.0'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
package="com.simplemobiletools.clock">
|
||||
|
||||
<application
|
||||
android:name=".App"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_launcher_name"
|
||||
|
|
16
app/src/main/kotlin/com/simplemobiletools/clock/App.kt
Normal file
16
app/src/main/kotlin/com/simplemobiletools/clock/App.kt
Normal file
|
@ -0,0 +1,16 @@
|
|||
package com.simplemobiletools.clock
|
||||
|
||||
import android.app.Application
|
||||
import com.facebook.stetho.Stetho
|
||||
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
||||
|
||||
class App : Application() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
if (BuildConfig.DEBUG) {
|
||||
Stetho.initializeWithDefaults(this)
|
||||
}
|
||||
|
||||
checkUseEnglish()
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue