updated to 22.0.0
This commit is contained in:
parent
356462d6ab
commit
f0fddd3f14
15 changed files with 60 additions and 185 deletions
|
|
@ -219,6 +219,16 @@ public class RestModule {
|
|||
|
||||
httpClient.addInterceptor(new HeadersInterceptor());
|
||||
|
||||
List<ConnectionSpec> specs = new ArrayList<>();
|
||||
if (BuildConfig.DEBUG) {
|
||||
specs.add(ConnectionSpec.COMPATIBLE_TLS);
|
||||
specs.add(ConnectionSpec.CLEARTEXT);
|
||||
httpClient.connectionSpecs(specs);
|
||||
} else {
|
||||
specs.add(ConnectionSpec.COMPATIBLE_TLS);
|
||||
httpClient.connectionSpecs(specs);
|
||||
}
|
||||
|
||||
if (BuildConfig.DEBUG && !context.getResources().getBoolean(R.bool.nc_is_debug)) {
|
||||
HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();
|
||||
loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue