diff --git a/android/build.gradle b/android/build.gradle index f1a24e9c3..57c0ee360 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -82,6 +82,7 @@ dependencies { implementation project(':BadgeMagicModule') implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin_version}" + implementation "org.jetbrains.kotlin:kotlin-reflect:${versions.kotlin_version}" kapt "androidx.databinding:compiler:3.2.0-alpha11" @@ -101,7 +102,7 @@ dependencies { implementation 'com.google.android.material:material:1.4.0' //Timber - implementation 'com.jakewharton.timber:timber:5.0.1' + implementation 'com.jakewharton.timber:timber:4.7.1' implementation 'no.nordicsemi.android.support.v18:scanner:1.6.0' diff --git a/android/src/main/java/org/fossasia/badgemagic/core/android/log/TimberKt.kt b/android/src/main/java/org/fossasia/badgemagic/core/android/log/TimberKt.kt index 0b35f30cb..c6aceadbc 100644 --- a/android/src/main/java/org/fossasia/badgemagic/core/android/log/TimberKt.kt +++ b/android/src/main/java/org/fossasia/badgemagic/core/android/log/TimberKt.kt @@ -130,5 +130,5 @@ inline fun wtf(t: Throwable) = Timber.wtf(t) /** @suppress */ @PublishedApi internal inline fun log(block: () -> Unit) { - if (Timber.treeCount > 0) block() + if (Timber.treeCount() > 0) block() }