Commit 44475941 authored by Lucio Maciel's avatar Lucio Maciel

Add nullability in CrashlyticsTree

parent dcb08334
...@@ -12,7 +12,7 @@ android { ...@@ -12,7 +12,7 @@ android {
applicationId "chat.rocket.android" applicationId "chat.rocket.android"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion versions.targetSdk targetSdkVersion versions.targetSdk
versionCode 1002 versionCode 1003
versionName "2.0.0-dev2" versionName "2.0.0-dev2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true multiDexEnabled true
...@@ -123,4 +123,4 @@ task compileSdk(type:Exec) { ...@@ -123,4 +123,4 @@ task compileSdk(type:Exec) {
} }
preBuild.dependsOn compileSdk preBuild.dependsOn compileSdk
apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
...@@ -6,7 +6,7 @@ import timber.log.Timber ...@@ -6,7 +6,7 @@ import timber.log.Timber
class CrashlyticsTree : Timber.Tree() { class CrashlyticsTree : Timber.Tree() {
override fun log(priority: Int, tag: String, message: String, throwable: Throwable?) { override fun log(priority: Int, tag: String?, message: String?, throwable: Throwable?) {
Crashlytics.log(priority, tag, message) Crashlytics.log(priority, tag, message)
if (throwable != null) { if (throwable != null) {
......
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