Skip to content

Commit 71901d3

Browse files
Merge pull request #864 from nextcloud/renovate/major-okhttp-monorepo
fix(deps): update dependency com.squareup.okhttp3:okhttp to v5
2 parents e20531e + b7ded82 commit 71901d3

File tree

3 files changed

+71
-44
lines changed

3 files changed

+71
-44
lines changed

gradle/verification-metadata.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
<trusted-key id="1D217F8475EEE9F19AB8DD6B793FD5751A0F0780">
5656
<trusting group="com.squareup.retrofit2" name="retrofit" version="2.12.0"/>
5757
<trusting group="com.squareup.retrofit2" name="retrofit" version="3.0.0"/>
58+
<trusting group="^com[.]squareup($|([.].*))" regex="true"/>
5859
</trusted-key>
5960
<trusted-key id="1D85469D8559C2E1DF5F925131D2D79DF7E85DD3" group="org.jcommander" name="jcommander" version="1.85"/>
6061
<trusted-key id="1D9AA7F9E1E2824728B8CD1794B291AEF984A085" group="io.reactivex.rxjava2" name="rxjava" version="2.2.21"/>
@@ -218,6 +219,7 @@
218219
<trusting group="androidx.fragment" name="fragment" version="1.8.5"/>
219220
<trusting group="androidx.graphics"/>
220221
<trusting group="androidx.profileinstaller"/>
222+
<trusting group="androidx.startup" name="startup-runtime" version="1.2.0"/>
221223
<trusting group="androidx.transition" name="transition" version="1.5.0"/>
222224
<trusting group="^androidx[.]test($|([.].*))" regex="true"/>
223225
<trusting group="^com[.]android($|([.].*))" regex="true"/>

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ dependencies {
140140
implementation 'commons-io:commons-io:2.21.0'
141141

142142
implementation 'com.squareup.retrofit2:retrofit:3.0.0'
143-
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
143+
implementation 'com.squareup.okhttp3:okhttp:5.3.2'
144144

145145
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.14.0'
146146
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.7.0'

lib/src/main/java/com/nextcloud/android/sso/helper/BufferedSourceSSO.java

Lines changed: 68 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@
1010
*/
1111
package com.nextcloud.android.sso.helper;
1212

13-
import androidx.annotation.Nullable;
14-
1513
import java.io.IOException;
1614
import java.io.InputStream;
1715
import java.nio.ByteBuffer;
1816
import java.nio.charset.Charset;
1917

18+
import androidx.annotation.NonNull;
19+
import androidx.annotation.Nullable;
2020
import okio.Buffer;
2121
import okio.BufferedSource;
2222
import okio.ByteString;
2323
import okio.Options;
2424
import okio.Sink;
2525
import okio.Timeout;
26+
import okio.TypedOptions;
2627

2728
public class BufferedSourceSSO implements BufferedSource {
2829

@@ -32,23 +33,25 @@ public BufferedSourceSSO(InputStream inputStream) {
3233
this.mInputStream = inputStream;
3334
}
3435

36+
@NonNull
3537
@Override
3638
public Buffer buffer() {
3739
throw new UnsupportedOperationException("Not implemented");
3840
}
3941

42+
@NonNull
4043
@Override
4144
public Buffer getBuffer() {
4245
return buffer();
4346
}
4447

4548
@Override
46-
public boolean exhausted() throws IOException {
49+
public boolean exhausted() {
4750
throw new UnsupportedOperationException("Not implemented");
4851
}
4952

5053
@Override
51-
public void require(long byteCount) throws IOException {
54+
public void require(long byteCount) {
5255
throw new UnsupportedOperationException("Not implemented");
5356
}
5457

@@ -58,206 +61,217 @@ public boolean request(long byteCount) throws IOException {
5861
}
5962

6063
@Override
61-
public byte readByte() throws IOException {
64+
public byte readByte() {
6265
throw new UnsupportedOperationException("Not implemented");
6366
}
6467

6568
@Override
66-
public short readShort() throws IOException {
69+
public short readShort() {
6770
throw new UnsupportedOperationException("Not implemented");
6871
}
6972

7073
@Override
71-
public short readShortLe() throws IOException {
74+
public short readShortLe() {
7275
throw new UnsupportedOperationException("Not implemented");
7376
}
7477

7578
@Override
76-
public int readInt() throws IOException {
79+
public int readInt() {
7780
throw new UnsupportedOperationException("Not implemented");
7881
}
7982

8083
@Override
81-
public int readIntLe() throws IOException {
84+
public int readIntLe() {
8285
throw new UnsupportedOperationException("Not implemented");
8386
}
8487

8588
@Override
86-
public long readLong() throws IOException {
89+
public long readLong() {
8790
throw new UnsupportedOperationException("Not implemented");
8891
}
8992

9093
@Override
91-
public long readLongLe() throws IOException {
94+
public long readLongLe() {
9295
throw new UnsupportedOperationException("Not implemented");
9396
}
9497

9598
@Override
96-
public long readDecimalLong() throws IOException {
99+
public long readDecimalLong() {
97100
throw new UnsupportedOperationException("Not implemented");
98101
}
99102

100103
@Override
101-
public long readHexadecimalUnsignedLong() throws IOException {
104+
public long readHexadecimalUnsignedLong() {
102105
throw new UnsupportedOperationException("Not implemented");
103106
}
104107

105108
@Override
106-
public void skip(long byteCount) throws IOException {
109+
public void skip(long byteCount) {
107110
throw new UnsupportedOperationException("Not implemented");
108111
}
109112

113+
@NonNull
110114
@Override
111-
public ByteString readByteString() throws IOException {
115+
public ByteString readByteString() {
112116
throw new UnsupportedOperationException("Not implemented");
113117
}
114118

119+
@NonNull
115120
@Override
116-
public ByteString readByteString(long byteCount) throws IOException {
121+
public ByteString readByteString(long byteCount) {
117122
throw new UnsupportedOperationException("Not implemented");
118123
}
119124

120125
@Override
121-
public int select(Options options) throws IOException {
126+
public int select(@NonNull Options options) {
122127
throw new UnsupportedOperationException("Not implemented");
123128
}
124129

125130
@Override
126-
public byte[] readByteArray() throws IOException {
131+
public byte[] readByteArray() {
127132
throw new UnsupportedOperationException("Not implemented");
128133
}
129134

130135
@Override
131-
public byte[] readByteArray(long byteCount) throws IOException {
136+
public byte[] readByteArray(long byteCount) {
132137
throw new UnsupportedOperationException("Not implemented");
133138
}
134139

135140
@Override
136-
public int read(byte[] sink) throws IOException {
141+
public int read(byte[] sink) {
137142
throw new UnsupportedOperationException("Not implemented");
138143
}
139144

140145
@Override
141-
public void readFully(byte[] sink) throws IOException {
146+
public void readFully(byte[] sink) {
142147
throw new UnsupportedOperationException("Not implemented");
143148
}
144149

145150
@Override
146-
public int read(byte[] sink, int offset, int byteCount) throws IOException {
151+
public int read(byte[] sink, int offset, int byteCount) {
147152
throw new UnsupportedOperationException("Not implemented");
148153
}
149154

150155
@Override
151-
public void readFully(Buffer sink, long byteCount) throws IOException {
156+
public void readFully(@NonNull Buffer sink, long byteCount) {
152157
throw new UnsupportedOperationException("Not implemented");
153158
}
154159

155160
@Override
156-
public long readAll(Sink sink) throws IOException {
161+
public long readAll(@NonNull Sink sink) {
157162
throw new UnsupportedOperationException("Not implemented");
158163
}
159164

165+
@NonNull
160166
@Override
161-
public String readUtf8() throws IOException {
167+
public String readUtf8() {
162168
throw new UnsupportedOperationException("Not implemented");
163169
}
164170

171+
@NonNull
165172
@Override
166-
public String readUtf8(long byteCount) throws IOException {
173+
public String readUtf8(long byteCount) {
167174
throw new UnsupportedOperationException("Not implemented");
168175
}
169176

170177
@Nullable
171178
@Override
172-
public String readUtf8Line() throws IOException {
179+
public String readUtf8Line() {
173180
throw new UnsupportedOperationException("Not implemented");
174181
}
175182

183+
@NonNull
176184
@Override
177-
public String readUtf8LineStrict() throws IOException {
185+
public String readUtf8LineStrict() {
178186
throw new UnsupportedOperationException("Not implemented");
179187
}
180188

189+
@NonNull
181190
@Override
182-
public String readUtf8LineStrict(long limit) throws IOException {
191+
public String readUtf8LineStrict(long limit) {
183192
throw new UnsupportedOperationException("Not implemented");
184193
}
185194

186195
@Override
187-
public int readUtf8CodePoint() throws IOException {
196+
public int readUtf8CodePoint() {
188197
throw new UnsupportedOperationException("Not implemented");
189198
}
190199

200+
@NonNull
191201
@Override
192-
public String readString(Charset charset) throws IOException {
202+
public String readString(@NonNull Charset charset) {
193203
throw new UnsupportedOperationException("Not implemented");
194204
}
195205

206+
@NonNull
196207
@Override
197-
public String readString(long byteCount, Charset charset) throws IOException {
208+
public String readString(long byteCount, @NonNull Charset charset) {
198209
throw new UnsupportedOperationException("Not implemented");
199210
}
200211

201212
@Override
202-
public long indexOf(byte b) throws IOException {
213+
public long indexOf(byte b) {
203214
throw new UnsupportedOperationException("Not implemented");
204215
}
205216

206217
@Override
207-
public long indexOf(byte b, long fromIndex) throws IOException {
218+
public long indexOf(byte b, long fromIndex) {
208219
throw new UnsupportedOperationException("Not implemented");
209220
}
210221

211222
@Override
212-
public long indexOf(byte b, long fromIndex, long toIndex) throws IOException {
223+
public long indexOf(byte b, long fromIndex, long toIndex) {
213224
throw new UnsupportedOperationException("Not implemented");
214225
}
215226

216227
@Override
217-
public long indexOf(ByteString bytes) throws IOException {
228+
public long indexOf(@NonNull ByteString bytes) {
218229
throw new UnsupportedOperationException("Not implemented");
219230
}
220231

221232
@Override
222-
public long indexOf(ByteString bytes, long fromIndex) throws IOException {
233+
public long indexOf(@NonNull ByteString bytes, long fromIndex) {
223234
throw new UnsupportedOperationException("Not implemented");
224235
}
225236

226237
@Override
227-
public long indexOfElement(ByteString targetBytes) throws IOException {
238+
public long indexOfElement(@NonNull ByteString targetBytes) {
228239
throw new UnsupportedOperationException("Not implemented");
229240
}
230241

231242
@Override
232-
public long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException {
243+
public long indexOfElement(@NonNull ByteString targetBytes, long fromIndex) {
233244
throw new UnsupportedOperationException("Not implemented");
234245
}
235246

236247
@Override
237-
public boolean rangeEquals(long offset, ByteString bytes) throws IOException {
248+
public boolean rangeEquals(long offset, @NonNull ByteString bytes) {
238249
throw new UnsupportedOperationException("Not implemented");
239250
}
240251

241252
@Override
242-
public boolean rangeEquals(long offset, ByteString bytes, int bytesOffset, int byteCount) throws IOException {
253+
public boolean rangeEquals(long offset, @NonNull ByteString bytes, int bytesOffset, int byteCount) {
243254
throw new UnsupportedOperationException("Not implemented");
244255
}
245256

257+
@NonNull
246258
@Override
247259
public BufferedSource peek() {
248260
throw new UnsupportedOperationException("Not implemented");
249261
}
250262

263+
@NonNull
251264
@Override
252265
public InputStream inputStream() {
253266
return mInputStream;
254267
}
255268

256269
@Override
257-
public long read(Buffer sink, long byteCount) throws IOException {
270+
public long read(@NonNull Buffer sink, long byteCount) {
258271
throw new UnsupportedOperationException("Not implemented");
259272
}
260273

274+
@NonNull
261275
@Override
262276
public Timeout timeout() {
263277
throw new UnsupportedOperationException("Not implemented");
@@ -274,7 +288,18 @@ public void close() throws IOException {
274288
}
275289

276290
@Override
277-
public int read(ByteBuffer dst) throws IOException {
291+
public int read(ByteBuffer dst) {
278292
throw new UnsupportedOperationException("Not implemented");
279293
}
294+
295+
@Nullable
296+
@Override
297+
public <T> T select(@NonNull TypedOptions<T> typedOptions) {
298+
return null;
299+
}
300+
301+
@Override
302+
public long indexOf(@NonNull ByteString byteString, long l, long l1) {
303+
return 0;
304+
}
280305
}

0 commit comments

Comments
 (0)