remove durian, as it was not widely used
This commit is contained in:
parent
160e8b81a4
commit
86ddd6680b
2 changed files with 13 additions and 6 deletions
|
@ -112,7 +112,6 @@ dependencies {
|
|||
compile 'org.apache.commons:commons-text:1.1'
|
||||
compile 'org.xbib:time:1.0.0'
|
||||
compile 'com.faendir.acra:acra-javacore:5.0.0-rc2'
|
||||
compile 'com.diffplug.durian:durian:3.4.0'
|
||||
compile 'com.faendir.proguard:retrace:1.3'
|
||||
compile 'javax.xml.bind:jaxb-api:2.3.0'
|
||||
compile 'com.github.ziplet:ziplet:2.3.0'
|
||||
|
|
|
@ -16,8 +16,6 @@
|
|||
|
||||
package com.faendir.acra.ui.view.report;
|
||||
|
||||
import com.diffplug.common.base.Errors;
|
||||
import com.diffplug.common.base.Throwing;
|
||||
import com.faendir.acra.model.App;
|
||||
import com.faendir.acra.model.Attachment;
|
||||
import com.faendir.acra.model.Permission;
|
||||
|
@ -149,18 +147,28 @@ public class ReportView extends ParametrizedBaseView<Report> {
|
|||
}
|
||||
|
||||
private static class ExceptionAwareStreamSource implements StreamResource.StreamSource {
|
||||
private final Throwing.Supplier<InputStream> supplier;
|
||||
private final ThrowingSupplier<InputStream> supplier;
|
||||
|
||||
ExceptionAwareStreamSource(Throwing.Supplier<InputStream> supplier) {
|
||||
ExceptionAwareStreamSource(ThrowingSupplier<InputStream> supplier) {
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public InputStream getStream() {
|
||||
return Errors.log().getWithDefault(supplier, null);
|
||||
try{
|
||||
return supplier.get();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
private interface ThrowingSupplier<T> {
|
||||
T get() throws Exception;
|
||||
}
|
||||
|
||||
@SpringComponent
|
||||
@UIScope
|
||||
public static class Provider extends SingleParametrizedViewProvider<Report, ReportView> {
|
||||
|
|
Loading…
Reference in a new issue