updated to 22.0.0

This commit is contained in:
Fr4nz D13trich 2025-10-04 10:50:27 +02:00
parent 356462d6ab
commit f0fddd3f14
15 changed files with 60 additions and 185 deletions

View file

@ -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);