From 895ae93aa5e31ed7b854a34718b73cff30218f91 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 23:58:20 +0000 Subject: [PATCH 1/2] fix(deps): update dependency com.squareup.okhttp3:okhttp to v5 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- gradle/verification-metadata.xml | 2 ++ lib/build.gradle | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 626e5a8b..32fb33c7 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -55,6 +55,7 @@ + @@ -218,6 +219,7 @@ + diff --git a/lib/build.gradle b/lib/build.gradle index 31d0a165..7f14c3ae 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -140,7 +140,7 @@ dependencies { implementation 'commons-io:commons-io:2.21.0' implementation 'com.squareup.retrofit2:retrofit:3.0.0' - implementation 'com.squareup.okhttp3:okhttp:4.12.0' + implementation 'com.squareup.okhttp3:okhttp:5.3.2' spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.14.0' spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.7.0' From b7ded82e3f0c818e3b185b39da922430809190d3 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Tue, 25 Nov 2025 12:49:10 +0100 Subject: [PATCH 2/2] add missing functions Signed-off-by: tobiasKaminsky --- .../android/sso/helper/BufferedSourceSSO.java | 111 +++++++++++------- 1 file changed, 68 insertions(+), 43 deletions(-) diff --git a/lib/src/main/java/com/nextcloud/android/sso/helper/BufferedSourceSSO.java b/lib/src/main/java/com/nextcloud/android/sso/helper/BufferedSourceSSO.java index f4fd19bf..3c991d89 100644 --- a/lib/src/main/java/com/nextcloud/android/sso/helper/BufferedSourceSSO.java +++ b/lib/src/main/java/com/nextcloud/android/sso/helper/BufferedSourceSSO.java @@ -10,19 +10,20 @@ */ package com.nextcloud.android.sso.helper; -import androidx.annotation.Nullable; - import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.nio.charset.Charset; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; import okio.Buffer; import okio.BufferedSource; import okio.ByteString; import okio.Options; import okio.Sink; import okio.Timeout; +import okio.TypedOptions; public class BufferedSourceSSO implements BufferedSource { @@ -32,23 +33,25 @@ public BufferedSourceSSO(InputStream inputStream) { this.mInputStream = inputStream; } + @NonNull @Override public Buffer buffer() { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override public Buffer getBuffer() { return buffer(); } @Override - public boolean exhausted() throws IOException { + public boolean exhausted() { throw new UnsupportedOperationException("Not implemented"); } @Override - public void require(long byteCount) throws IOException { + public void require(long byteCount) { throw new UnsupportedOperationException("Not implemented"); } @@ -58,206 +61,217 @@ public boolean request(long byteCount) throws IOException { } @Override - public byte readByte() throws IOException { + public byte readByte() { throw new UnsupportedOperationException("Not implemented"); } @Override - public short readShort() throws IOException { + public short readShort() { throw new UnsupportedOperationException("Not implemented"); } @Override - public short readShortLe() throws IOException { + public short readShortLe() { throw new UnsupportedOperationException("Not implemented"); } @Override - public int readInt() throws IOException { + public int readInt() { throw new UnsupportedOperationException("Not implemented"); } @Override - public int readIntLe() throws IOException { + public int readIntLe() { throw new UnsupportedOperationException("Not implemented"); } @Override - public long readLong() throws IOException { + public long readLong() { throw new UnsupportedOperationException("Not implemented"); } @Override - public long readLongLe() throws IOException { + public long readLongLe() { throw new UnsupportedOperationException("Not implemented"); } @Override - public long readDecimalLong() throws IOException { + public long readDecimalLong() { throw new UnsupportedOperationException("Not implemented"); } @Override - public long readHexadecimalUnsignedLong() throws IOException { + public long readHexadecimalUnsignedLong() { throw new UnsupportedOperationException("Not implemented"); } @Override - public void skip(long byteCount) throws IOException { + public void skip(long byteCount) { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override - public ByteString readByteString() throws IOException { + public ByteString readByteString() { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override - public ByteString readByteString(long byteCount) throws IOException { + public ByteString readByteString(long byteCount) { throw new UnsupportedOperationException("Not implemented"); } @Override - public int select(Options options) throws IOException { + public int select(@NonNull Options options) { throw new UnsupportedOperationException("Not implemented"); } @Override - public byte[] readByteArray() throws IOException { + public byte[] readByteArray() { throw new UnsupportedOperationException("Not implemented"); } @Override - public byte[] readByteArray(long byteCount) throws IOException { + public byte[] readByteArray(long byteCount) { throw new UnsupportedOperationException("Not implemented"); } @Override - public int read(byte[] sink) throws IOException { + public int read(byte[] sink) { throw new UnsupportedOperationException("Not implemented"); } @Override - public void readFully(byte[] sink) throws IOException { + public void readFully(byte[] sink) { throw new UnsupportedOperationException("Not implemented"); } @Override - public int read(byte[] sink, int offset, int byteCount) throws IOException { + public int read(byte[] sink, int offset, int byteCount) { throw new UnsupportedOperationException("Not implemented"); } @Override - public void readFully(Buffer sink, long byteCount) throws IOException { + public void readFully(@NonNull Buffer sink, long byteCount) { throw new UnsupportedOperationException("Not implemented"); } @Override - public long readAll(Sink sink) throws IOException { + public long readAll(@NonNull Sink sink) { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override - public String readUtf8() throws IOException { + public String readUtf8() { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override - public String readUtf8(long byteCount) throws IOException { + public String readUtf8(long byteCount) { throw new UnsupportedOperationException("Not implemented"); } @Nullable @Override - public String readUtf8Line() throws IOException { + public String readUtf8Line() { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override - public String readUtf8LineStrict() throws IOException { + public String readUtf8LineStrict() { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override - public String readUtf8LineStrict(long limit) throws IOException { + public String readUtf8LineStrict(long limit) { throw new UnsupportedOperationException("Not implemented"); } @Override - public int readUtf8CodePoint() throws IOException { + public int readUtf8CodePoint() { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override - public String readString(Charset charset) throws IOException { + public String readString(@NonNull Charset charset) { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override - public String readString(long byteCount, Charset charset) throws IOException { + public String readString(long byteCount, @NonNull Charset charset) { throw new UnsupportedOperationException("Not implemented"); } @Override - public long indexOf(byte b) throws IOException { + public long indexOf(byte b) { throw new UnsupportedOperationException("Not implemented"); } @Override - public long indexOf(byte b, long fromIndex) throws IOException { + public long indexOf(byte b, long fromIndex) { throw new UnsupportedOperationException("Not implemented"); } @Override - public long indexOf(byte b, long fromIndex, long toIndex) throws IOException { + public long indexOf(byte b, long fromIndex, long toIndex) { throw new UnsupportedOperationException("Not implemented"); } @Override - public long indexOf(ByteString bytes) throws IOException { + public long indexOf(@NonNull ByteString bytes) { throw new UnsupportedOperationException("Not implemented"); } @Override - public long indexOf(ByteString bytes, long fromIndex) throws IOException { + public long indexOf(@NonNull ByteString bytes, long fromIndex) { throw new UnsupportedOperationException("Not implemented"); } @Override - public long indexOfElement(ByteString targetBytes) throws IOException { + public long indexOfElement(@NonNull ByteString targetBytes) { throw new UnsupportedOperationException("Not implemented"); } @Override - public long indexOfElement(ByteString targetBytes, long fromIndex) throws IOException { + public long indexOfElement(@NonNull ByteString targetBytes, long fromIndex) { throw new UnsupportedOperationException("Not implemented"); } @Override - public boolean rangeEquals(long offset, ByteString bytes) throws IOException { + public boolean rangeEquals(long offset, @NonNull ByteString bytes) { throw new UnsupportedOperationException("Not implemented"); } @Override - public boolean rangeEquals(long offset, ByteString bytes, int bytesOffset, int byteCount) throws IOException { + public boolean rangeEquals(long offset, @NonNull ByteString bytes, int bytesOffset, int byteCount) { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override public BufferedSource peek() { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override public InputStream inputStream() { return mInputStream; } @Override - public long read(Buffer sink, long byteCount) throws IOException { + public long read(@NonNull Buffer sink, long byteCount) { throw new UnsupportedOperationException("Not implemented"); } + @NonNull @Override public Timeout timeout() { throw new UnsupportedOperationException("Not implemented"); @@ -274,7 +288,18 @@ public void close() throws IOException { } @Override - public int read(ByteBuffer dst) throws IOException { + public int read(ByteBuffer dst) { throw new UnsupportedOperationException("Not implemented"); } + + @Nullable + @Override + public T select(@NonNull TypedOptions typedOptions) { + return null; + } + + @Override + public long indexOf(@NonNull ByteString byteString, long l, long l1) { + return 0; + } }