adding Stetho in debug builds

This commit is contained in:
tibbi 2018-03-03 23:51:58 +01:00
parent 91bd5a6d4a
commit 7c498b90dc
3 changed files with 18 additions and 0 deletions

View File

@ -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'
}

View File

@ -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"

View 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()
}
}