mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Remove unnecessary dependency on commons-codec. (#2945)
This commit is contained in:
parent
54f6dd667f
commit
967d3ea593
2 changed files with 2 additions and 3 deletions
|
|
@ -15,7 +15,6 @@ dependencies {
|
|||
|
||||
// Utils
|
||||
implementation 'com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
|
||||
implementation 'commons-codec:commons-codec:1.10'
|
||||
implementation 'com.google.code.gson:gson:2.8.5'
|
||||
implementation 'in.yuvi:http.fluent:1.3'
|
||||
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ import androidx.core.content.FileProvider;
|
|||
|
||||
import org.acra.data.CrashReportData;
|
||||
import org.acra.sender.ReportSender;
|
||||
import org.apache.commons.codec.Charsets;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
|
|
@ -17,6 +16,7 @@ import java.io.File;
|
|||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.zip.ZipEntry;
|
||||
import java.util.zip.ZipOutputStream;
|
||||
|
||||
|
|
@ -107,7 +107,7 @@ public abstract class LogsSender implements ReportSender {
|
|||
}
|
||||
attachUserInfo(builder);
|
||||
attachExtraInfo(builder);
|
||||
byte[] metaData = builder.toString().getBytes(Charsets.UTF_8);
|
||||
byte[] metaData = builder.toString().getBytes(Charset.forName("UTF-8"));
|
||||
File zipFile = new File(LogUtils.getLogZipDirectory(), logFileName);
|
||||
writeLogToZipFile(metaData, zipFile);
|
||||
return FileProvider
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue