Skip to content
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 gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kotlin = "2.2.21"
kotlinpoet = "2.2.0"
ktlint = "0.48.2"
moshi = "1.15.2"
okhttp = "5.2.1"
okhttp = "5.3.1"
okio = "3.9.1"
protobuf = "4.33.1"
protobufGradlePlugin = "0.9.5"
Expand Down
8 changes: 8 additions & 0 deletions wire-grpc-mockwebserver/api/wire-grpc-mockwebserver.api
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ public final class com/squareup/wire/mockwebserver/GrpcDispatcher$Companion$Null
public synthetic fun isExecuted ()Z
public fun request ()Ljava/lang/Void;
public synthetic fun request ()Lokhttp3/Request;
public synthetic fun tag (Ljava/lang/Class;)Ljava/lang/Object;
public fun tag (Ljava/lang/Class;)Ljava/lang/Void;
public synthetic fun tag (Ljava/lang/Class;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
public fun tag (Ljava/lang/Class;Lkotlin/jvm/functions/Function0;)Ljava/lang/Void;
public synthetic fun tag (Lkotlin/reflect/KClass;)Ljava/lang/Object;
public fun tag (Lkotlin/reflect/KClass;)Ljava/lang/Void;
public synthetic fun tag (Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
public fun tag (Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;)Ljava/lang/Void;
public fun timeout ()Lokio/Timeout;
}

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import com.squareup.wire.Service
import com.squareup.wire.internal.GrpcMessageSink
import com.squareup.wire.internal.GrpcMessageSource
import java.lang.reflect.Method
import kotlin.reflect.KClass
import okhttp3.Call
import okhttp3.Callback
import okhttp3.Headers.Companion.headersOf
Expand Down Expand Up @@ -204,6 +205,10 @@ class GrpcDispatcher(
override fun isExecuted() = error("unexpected call")
override fun request() = error("unexpected call")
override fun timeout() = Timeout.NONE
override fun <T : Any> tag(type: KClass<T>) = error("unexpected call")
override fun <T> tag(type: Class<out T>) = error("unexpected call")
override fun <T : Any> tag(type: KClass<T>, computeIfAbsent: () -> T) = error("unexpected call")
override fun <T : Any> tag(type: Class<T>, computeIfAbsent: () -> T) = error("unexpected call")
}

/**
Expand Down
Loading