mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
parent
b60b3dc3e2
commit
60993b3109
3 changed files with 19 additions and 3 deletions
|
|
@ -57,8 +57,8 @@ dependencies {
|
|||
implementation "com.squareup.okhttp3:okhttp-ws:$OKHTTP_VERSION"
|
||||
|
||||
// Logging
|
||||
implementation 'ch.acra:acra-dialog:5.3.0'
|
||||
implementation 'ch.acra:acra-mail:5.3.0'
|
||||
implementation 'ch.acra:acra-dialog:5.8.1-beta11'
|
||||
implementation 'ch.acra:acra-mail:5.8.1-beta11'
|
||||
implementation 'org.slf4j:slf4j-api:1.7.25'
|
||||
api('com.github.tony19:logback-android-classic:1.1.1-6') {
|
||||
exclude group: 'com.google.android', module: 'android'
|
||||
|
|
|
|||
|
|
@ -68,7 +68,8 @@ import timber.log.Timber;
|
|||
)
|
||||
|
||||
@AcraMailSender(
|
||||
mailTo = "commons-app-android-private@googlegroups.com"
|
||||
mailTo = "commons-app-android-private@googlegroups.com",
|
||||
reportAsFile = false
|
||||
)
|
||||
|
||||
@AcraDialog(
|
||||
|
|
|
|||
|
|
@ -2,12 +2,16 @@ package fr.free.nrw.commons.logging;
|
|||
|
||||
import android.content.Context;
|
||||
|
||||
import android.os.Bundle;
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Singleton;
|
||||
|
||||
import fr.free.nrw.commons.auth.SessionManager;
|
||||
import fr.free.nrw.commons.utils.ConfigUtils;
|
||||
import fr.free.nrw.commons.utils.DeviceInfoUtil;
|
||||
import org.acra.data.CrashReportData;
|
||||
import org.acra.sender.ReportSenderException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Class responsible for sending logs to developers
|
||||
|
|
@ -87,4 +91,15 @@ public class CommonsLogSender extends LogsSender {
|
|||
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean requiresForeground() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void send(@NotNull Context context, @NotNull CrashReportData crashReportData,
|
||||
@NotNull Bundle bundle) throws ReportSenderException {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue