0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00

Bump okhttp to current stable, accept deprecation for the moment

This commit is contained in:
Mike Hardy 2021-03-27 10:13:47 -05:00
parent 19a26745e7
commit 62b2bf46c6
3 changed files with 3 additions and 2 deletions

View File

@ -265,8 +265,7 @@ dependencies {
implementation 'org.bitbucket.cowwoc:diff-match-patch:1.2'
implementation 'org.apache.commons:commons-compress:1.12' // #6419 - handle >2GB apkg files
implementation 'net.mikehardy:google-analytics-java7:2.0.13'
//noinspection GradleDependency NewerVersionAvailable
implementation 'com.squareup.okhttp3:okhttp:3.12.12'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
implementation 'com.arcao:slf4j-timber:3.1'
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation 'org.jsoup:jsoup:1.13.1'

View File

@ -109,6 +109,7 @@ public class HttpFetcher {
}
@SuppressWarnings("deprecation")
public static String downloadFileToSdCardMethod(String UrlToFile, Context context, String prefix, String method) {
Response response = null;

View File

@ -55,6 +55,7 @@ public class CountingFileRequestBody extends RequestBody {
}
@Override
@SuppressWarnings("deprecation")
public void writeTo(BufferedSink sink) throws IOException {
Source source = null;
try {