Encrypt and save crash reports, send them the next time TorPlugin start

Will currently fail at runtime; requires a public key and a server onion.
This commit is contained in:
str4d
2016-03-31 11:11:55 +00:00
parent 28086cd359
commit d545aaa892
18 changed files with 342 additions and 32 deletions

View File

@@ -8,7 +8,9 @@ import org.briarproject.api.crypto.SecretKey;
import org.briarproject.api.db.DatabaseConfig;
import org.briarproject.api.event.EventBus;
import org.briarproject.api.lifecycle.LifecycleManager;
import org.briarproject.api.reporting.DevConfig;
import org.briarproject.api.ui.UiCallback;
import org.briarproject.util.StringUtils;
import java.io.File;
@@ -90,6 +92,33 @@ public class AppModule {
};
}
@Provides
@Singleton
public DevConfig provideDevConfig() {
return new DevConfig() {
// TODO fill in
private final byte[] DEV_PUB_KEY = StringUtils.fromHexString("");
private final String DEV_ONION = "";
private final int DEV_REPORT_PORT = 8080;
@Override
public byte[] getDevPublicKey() {
return DEV_PUB_KEY;
}
@Override
public String getDevOnionAddress() {
return DEV_ONION;
}
@Override
public int getDevReportPort() {
return DEV_REPORT_PORT;
}
};
}
@Provides
@Singleton
ReferenceManager provideReferenceManager() {