Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AND-258] Bump stream-log version #1288

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ dependencies {
implementation(libs.stream.chat.ui.utils)

implementation(libs.stream.push.firebase)
implementation(libs.stream.log.android)
implementation(libs.stream.log)

implementation(libs.androidx.material)
implementation(libs.androidx.core.ktx)
Expand Down
5 changes: 2 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ itu = "1.7.3"
streamWebRTC = "1.3.6"
streamNoiseCancellation = "1.0.2"
streamResult = "1.3.0"
streamChat = "6.5.1"
streamLog = "1.1.4"
streamChat = "6.9.0"
streamLog = "1.3.1"
streamPush = "1.1.8"

androidxTest = "1.5.2"
Expand Down Expand Up @@ -152,7 +152,6 @@ stream-result = { group = "io.getstream", name = "stream-result", version.ref =
stream-result-call = { group = "io.getstream", name = "stream-result-call", version.ref = "streamResult" }

stream-log = { group = "io.getstream", name = "stream-log", version.ref = "streamLog" }
stream-log-android = { group = "io.getstream", name = "stream-log-android", version.ref = "streamLog" }
stream-push = { group = "io.getstream", name = "stream-android-push", version.ref = "streamPush" }
stream-push-delegate = { group = "io.getstream", name = "stream-android-push-delegate", version.ref = "streamPush" }
stream-push-firebase = { group = "io.getstream", name = "stream-android-push-firebase", version.ref = "streamPush" }
Expand Down
4 changes: 2 additions & 2 deletions stream-video-android-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ dependencies {
// Stream
api(libs.stream.result)
api(libs.stream.result.call)
api(libs.stream.log.android)
api(libs.stream.log)
implementation(libs.stream.push)
implementation(libs.stream.push.delegate)
api(libs.stream.push.permissions)
Expand Down Expand Up @@ -214,7 +214,7 @@ dependencies {
testImplementation(libs.retrofit.wire.converter)

// instrument tests
androidTestImplementation(libs.stream.log.android)
androidTestImplementation(libs.stream.log)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(libs.junit)
androidTestImplementation(libs.truth)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import android.app.Notification
import android.content.Context
import androidx.lifecycle.ProcessLifecycleOwner
import com.jakewharton.threetenabp.AndroidThreeTen
import io.getstream.log.AndroidStreamLogger
import io.getstream.log.StreamLog
import io.getstream.log.android.AndroidStreamLogger
import io.getstream.log.streamLog
import io.getstream.video.android.core.call.CallType
import io.getstream.video.android.core.internal.module.CoordinatorConnectionModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,25 @@

package io.getstream.video.android.core.base

import io.getstream.log.KotlinStreamLogger
import io.getstream.log.Priority
import io.getstream.log.kotlin.KotlinStreamLogger
import kotlinx.datetime.Clock
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.TimeZone
import kotlinx.datetime.toLocalDateTime

/**
* A logger that prints to stdout
*/
internal class StreamTestLogger : KotlinStreamLogger() {
public override val now: () -> LocalDateTime = {
Clock.System.now().toLocalDateTime(TimeZone.currentSystemDefault())
}

override fun log(priority: Priority, tag: String, message: String, throwable: Throwable?) {
if (throwable != null) {
}
}

override fun install(minPriority: Priority, maxTagLength: Int) {}
}
2 changes: 1 addition & 1 deletion stream-video-android-ui-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies {
api(project(":stream-video-android-ui-core"))

// androidx
implementation(libs.stream.log.android)
implementation(libs.stream.log)

// compose
implementation(libs.androidx.activity.compose)
Expand Down
Loading