mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-04-15 02:42:00 +02:00
adding Stetho in debug builds
This commit is contained in:
parent
91bd5a6d4a
commit
7c498b90dc
@ -42,6 +42,7 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:3.14.12'
|
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'
|
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
package="com.simplemobiletools.clock">
|
package="com.simplemobiletools.clock">
|
||||||
|
|
||||||
<application
|
<application
|
||||||
|
android:name=".App"
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:label="@string/app_launcher_name"
|
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…
x
Reference in New Issue
Block a user