Remove okio library (#6972)
This commit is contained in:
parent
755ccc42ec
commit
aaf225c7af
|
@ -114,7 +114,6 @@ dependencies {
|
||||||
implementation "com.github.bumptech.glide:glide:$glideVersion"
|
implementation "com.github.bumptech.glide:glide:$glideVersion"
|
||||||
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
||||||
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
||||||
implementation "com.squareup.okio:okio:$okioVersion"
|
|
||||||
implementation "org.greenrobot:eventbus:$eventbusVersion"
|
implementation "org.greenrobot:eventbus:$eventbusVersion"
|
||||||
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbusVersion"
|
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbusVersion"
|
||||||
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
|
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
# for okhttp
|
# for okhttp
|
||||||
-dontwarn okhttp3.**
|
-dontwarn okhttp3.**
|
||||||
-dontwarn okio.**
|
|
||||||
|
|
||||||
# android-iconify
|
# android-iconify
|
||||||
-keep class com.joanzapata.** { *; }
|
-keep class com.joanzapata.** { *; }
|
||||||
|
|
|
@ -102,12 +102,6 @@
|
||||||
website="https://github.com/square/okhttp"
|
website="https://github.com/square/okhttp"
|
||||||
license="Apache 2.0"
|
license="Apache 2.0"
|
||||||
licenseText="LICENSE_OKHTTP.txt" />
|
licenseText="LICENSE_OKHTTP.txt" />
|
||||||
<library
|
|
||||||
name="Okio"
|
|
||||||
author="Square"
|
|
||||||
website="https://github.com/square/okio"
|
|
||||||
license="Apache 2.0"
|
|
||||||
licenseText="LICENSE_APACHE-2.0.txt" />
|
|
||||||
<library
|
<library
|
||||||
name="RecyclerViewSwipeDecorator"
|
name="RecyclerViewSwipeDecorator"
|
||||||
author="Paolo Montalto"
|
author="Paolo Montalto"
|
||||||
|
|
|
@ -28,7 +28,6 @@ project.ext {
|
||||||
jsoupVersion = "1.15.1"
|
jsoupVersion = "1.15.1"
|
||||||
glideVersion = "4.13.2"
|
glideVersion = "4.13.2"
|
||||||
okhttpVersion = "3.12.10"
|
okhttpVersion = "3.12.10"
|
||||||
okioVersion = "1.17.5"
|
|
||||||
eventbusVersion = "3.3.1"
|
eventbusVersion = "3.3.1"
|
||||||
rxAndroidVersion = "2.1.1"
|
rxAndroidVersion = "2.1.1"
|
||||||
rxJavaVersion = "2.2.2"
|
rxJavaVersion = "2.2.2"
|
||||||
|
|
|
@ -59,7 +59,6 @@ dependencies {
|
||||||
implementation "com.github.bumptech.glide:okhttp3-integration:$glideVersion@aar"
|
implementation "com.github.bumptech.glide:okhttp3-integration:$glideVersion@aar"
|
||||||
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
||||||
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
||||||
implementation "com.squareup.okio:okio:$okioVersion"
|
|
||||||
implementation "org.greenrobot:eventbus:$eventbusVersion"
|
implementation "org.greenrobot:eventbus:$eventbusVersion"
|
||||||
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbusVersion"
|
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbusVersion"
|
||||||
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
|
implementation "io.reactivex.rxjava2:rxandroid:$rxAndroidVersion"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package de.danoeh.antennapod.core.service.download;
|
package de.danoeh.antennapod.core.service.download;
|
||||||
|
|
||||||
import okio.ByteString;
|
import android.util.Base64;
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ public abstract class HttpCredentialEncoder {
|
||||||
try {
|
try {
|
||||||
String credentials = username + ":" + password;
|
String credentials = username + ":" + password;
|
||||||
byte[] bytes = credentials.getBytes(charset);
|
byte[] bytes = credentials.getBytes(charset);
|
||||||
String encoded = ByteString.of(bytes).base64();
|
String encoded = Base64.encodeToString(bytes, Base64.NO_WRAP);
|
||||||
return "Basic " + encoded;
|
return "Basic " + encoded;
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
throw new AssertionError(e);
|
throw new AssertionError(e);
|
||||||
|
|
Loading…
Reference in New Issue