Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Commit b9ccb81

Browse files
authored
upgrade Retrofit to 3.0 and use the new streaming mode (#5125)
1 parent fdbc00b commit b9ccb81

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

app/src/main/java/com/keylesspalace/tusky/di/NetworkModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ object NetworkModule {
153153
return Retrofit.Builder()
154154
.baseUrl("https://${MastodonApi.PLACEHOLDER_DOMAIN}")
155155
.client(httpClient)
156-
.addConverterFactory(MoshiConverterFactory.create(moshi))
156+
.addConverterFactory(MoshiConverterFactory.create(moshi).withStreaming())
157157
.addCallAdapterFactory(NetworkResultCallAdapterFactory.create())
158158
.build()
159159
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ moshi = "1.15.2"
4242
networkresult-calladapter = "1.2.0"
4343
okhttp = "4.12.0"
4444
okio = "3.11.0"
45-
retrofit = "2.11.0"
45+
retrofit = "3.0.0"
4646
robolectric = "4.14.1"
4747
sparkbutton = "4.2.0"
4848
touchimageview = "3.7.1"

gradle/verification-metadata.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16520,6 +16520,14 @@
1652016520
<sha256 value="f2397c76f40fb873d4c9d1af830b44a25b72ef9829b026099e2913078b8df33e" origin="Generated by Gradle"/>
1652116521
</artifact>
1652216522
</component>
16523+
<component group="com.squareup.retrofit2" name="converter-moshi" version="3.0.0">
16524+
<artifact name="converter-moshi-3.0.0.jar">
16525+
<sha256 value="646beed03bd77e51dad0df6bd05c2a39cbc8562d8e1b9b8cf9126481781611a6" origin="Generated by Gradle"/>
16526+
</artifact>
16527+
<artifact name="converter-moshi-3.0.0.module">
16528+
<sha256 value="eaaf79fabae9e7e4685f97388c2b01a53e393b10f6d9ff97682777a5b7a1035a" origin="Generated by Gradle"/>
16529+
</artifact>
16530+
</component>
1652316531
<component group="com.squareup.retrofit2" name="retrofit" version="2.11.0">
1652416532
<artifact name="retrofit-2.11.0.jar">
1652516533
<sha256 value="9f4fbbce70728584fbeed38d4061f36d4477e89bca74b4e2ac8aeb6819b0fe43" origin="Generated by Gradle"/>
@@ -16528,6 +16536,14 @@
1652816536
<sha256 value="e9bb2e201844c88e4750624f9114a6354b51b70948b44d5c6b4a94e8cd070a81" origin="Generated by Gradle"/>
1652916537
</artifact>
1653016538
</component>
16539+
<component group="com.squareup.retrofit2" name="retrofit" version="3.0.0">
16540+
<artifact name="retrofit-3.0.0.jar">
16541+
<sha256 value="69c6a2d3451b6df9549a93fab744094ebf07a4b0ce4f453d6c8f575ef0fec9a1" origin="Generated by Gradle"/>
16542+
</artifact>
16543+
<artifact name="retrofit-3.0.0.module">
16544+
<sha256 value="3de52829b898215534e86eda268da449ffcbf95b18703da529d99883277484f7" origin="Generated by Gradle"/>
16545+
</artifact>
16546+
</component>
1653116547
<component group="com.sun.activation" name="all" version="1.2.0">
1653216548
<artifact name="all-1.2.0.pom">
1653316549
<sha256 value="1d8518e3ac7532a104e4f7be77def37c982e530723c6bdb3d67708cce2b0c2c4" origin="Generated by Gradle"/>

0 commit comments

Comments
 (0)