diff --git a/app/build.gradle b/app/build.gradle index f9d1ca91bbeeea578740239a9da85fbe84e3397e..77279add765fa5519e6a49436d829bba44d2c2a1 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -84,7 +84,7 @@ dependencies { implementation 'org.matrix.android:matrix-sdk-android:1.5.30.6' //Kotlin - implementation "androidx.core:core-ktx:1.10.0" + implementation "androidx.core:core-ktx:1.10.1" //androidx lifecycle def lifecycle_version = "2.6.1" @@ -130,7 +130,7 @@ dependencies { implementation 'com.github.UnifiedPush:android-connector:2.1.1' //Subscriptions - gplayImplementation 'com.android.billingclient:billing-ktx:5.2.0' + gplayImplementation 'com.android.billingclient:billing-ktx:6.0.0' //Emoji implementation "com.vanniktech:emoji-google:0.16.0" @@ -177,6 +177,9 @@ dependencies { def coroutines_version = "1.6.4" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version" + //Log + implementation 'com.jakewharton.timber:timber:5.0.1' + //test testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' diff --git a/app/src/main/java/org/futo/circles/App.kt b/app/src/main/java/org/futo/circles/App.kt index 586cc9310d57c87f4baffb57c143aaae418764ba..b7e49358545d7653724cbb3d0b2c9ed4d93fb836 100644 --- a/app/src/main/java/org/futo/circles/App.kt +++ b/app/src/main/java/org/futo/circles/App.kt @@ -1,7 +1,6 @@ package org.futo.circles import android.app.Application -import android.util.Log import androidx.lifecycle.DefaultLifecycleObserver import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.ProcessLifecycleOwner @@ -14,6 +13,7 @@ import org.futo.circles.provider.MatrixSessionProvider import org.koin.android.ext.android.inject import org.koin.android.ext.koin.androidContext import org.koin.core.context.startKoin +import timber.log.Timber class App : Application() { @@ -30,6 +30,7 @@ class App : Application() { EmojiManager.install(GoogleEmojiProvider()) notificationUtils.createNotificationChannels() setupLifecycleObserver() + if (BuildConfig.DEBUG) Timber.plant(Timber.DebugTree()) } private fun setupLifecycleObserver() {