new SettingsModule(activity)
).build();
}
private SSLSocketFactory getUnsafeSslSocketFactory() {
try {
<BUG>final TrustManager[] trustAllCerts = new TrustManager[] { new TrustEveryoneManager() };
</BUG>
final SSLContext sslContext = SSLContext.getInstance("SSL");
sslContext.init(null, trustAllCerts, new java.security.SecureRandom());
return sslContext.getSocketFactory();

new SettingsModule(activity)
).build();
}
private SSLSocketFactory getUnsafeSslSocketFactory() {
try {
final TrustManager[] trustAllCerts = new TrustManager[] { TrustEveryoneManager.getInstance() };
final SSLContext sslContext = SSLContext.getInstance("SSL");
sslContext.init(null, trustAllCerts, new java.security.SecureRandom());
return sslContext.getSocketFactory();
