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 @@ -24,7 +24,7 @@ autoService = "1.0.1"
autoServiceKsp = "1.0.0"
okhttp = "4.9.3"
kotlinpoet = "1.10.2"
thrift = "0.13.0"
thrift = "0.16.0"
dexmaker = "2.28.1"
mockito = "4.4.0"
mockitoKotlin = "4.0.0"
Expand Down
1 change: 1 addition & 0 deletions sample_thrift/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ java {

dependencies {
compileOnly(libs.libthrift) {
exclude group: 'org.apache.commons'
exclude group: 'org.apache.httpcomponents'
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions thrift/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies {
implementation project(':okhttp')
api libs.okhttp
api(libs.libthrift) {
exclude group: 'org.apache.commons'
exclude group: 'org.apache.httpcomponents'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package com.linecorp.lich.thrift

import okio.BufferedSink
import okio.BufferedSource
import org.apache.thrift.TConfiguration
import org.apache.thrift.transport.TTransport
import java.io.EOFException

Expand Down Expand Up @@ -71,4 +72,12 @@ class OkioTransport(
override fun open() = Unit

override fun close() = Unit

// To keep binary compatibility with libthrift 0.13.0 or lower,
// we provide empty implementations for the following methods.
override fun getConfiguration(): TConfiguration = TConfiguration.DEFAULT

override fun checkReadBytesAvailable(numBytes: Long) = Unit

override fun updateKnownMessageSize(size: Long) = Unit
}