Commit 24478040 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update Stetho version/build configuration.

parent 6d4ef307
...@@ -3,9 +3,7 @@ apply plugin: 'io.fabric' ...@@ -3,9 +3,7 @@ apply plugin: 'io.fabric'
repositories { repositories {
maven { url 'https://maven.fabric.io/public' } maven { url 'https://maven.fabric.io/public' }
maven { maven { url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo' }
url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo'
}
} }
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
...@@ -95,7 +93,9 @@ play { ...@@ -95,7 +93,9 @@ play {
ext { ext {
playLibVersion = '11.0.4' playLibVersion = '11.0.4'
stethoVersion = '1.4.2' stethoVersion = '1.5.0'
stethoOkhttp3Version = '1.5.0'
stethoRealmVersion = '2.1.0'
rxbindingVersion = '2.0.0' rxbindingVersion = '2.0.0'
rxlifecycleVersion = '2.1.0' rxlifecycleVersion = '2.1.0'
icepickVersion = '3.2.0' icepickVersion = '3.2.0'
...@@ -124,9 +124,9 @@ dependencies { ...@@ -124,9 +124,9 @@ dependencies {
compile 'com.squareup.okhttp3:okhttp:3.8.0' compile 'com.squareup.okhttp3:okhttp:3.8.0'
compile "com.facebook.stetho:stetho:$stethoVersion" debugCompile "com.facebook.stetho:stetho:$stethoVersion"
compile "com.facebook.stetho:stetho-okhttp3:$stethoVersion" debugCompile "com.facebook.stetho:stetho-okhttp3:$stethoOkhttp3Version"
compile 'com.uphyca:stetho_realm:2.1.0' debugCompile "com.uphyca:stetho_realm:$stethoRealmVersion"
compile "com.jakewharton.rxbinding2:rxbinding:$rxbindingVersion" compile "com.jakewharton.rxbinding2:rxbinding:$rxbindingVersion"
compile "com.jakewharton.rxbinding2:rxbinding-support-v4:$rxbindingVersion" compile "com.jakewharton.rxbinding2:rxbinding-support-v4:$rxbindingVersion"
...@@ -156,4 +156,4 @@ dependencies { ...@@ -156,4 +156,4 @@ dependencies {
provided "com.github.akarnokd:rxjava2-interop:0.10.2" provided "com.github.akarnokd:rxjava2-interop:0.10.2"
} }
apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
...@@ -23,6 +23,7 @@ public class RocketChatApplication extends MultiDexApplication { ...@@ -23,6 +23,7 @@ public class RocketChatApplication extends MultiDexApplication {
public void onCreate() { public void onCreate() {
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
enableStrictMode(); enableStrictMode();
enableStetho();
} }
super.onCreate(); super.onCreate();
...@@ -35,10 +36,6 @@ public class RocketChatApplication extends MultiDexApplication { ...@@ -35,10 +36,6 @@ public class RocketChatApplication extends MultiDexApplication {
RealmStore.put(serverInfo.getHostname()); RealmStore.put(serverInfo.getHostname());
} }
if (BuildConfig.DEBUG) {
enableStetho();
}
RocketChatWidgets.initialize(this, OkHttpHelper.getClientForDownloadFile(this)); RocketChatWidgets.initialize(this, OkHttpHelper.getClientForDownloadFile(this));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment