docs: private static OkHttpClient.Builder enableTls12(OkHttpClient.Builder client) {
          try {
              TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(
                      TrustManagerFactory.getDefaultAlgorithm());
              trustManagerFactory.init((KeyStore) null);
              TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
              if (trustManagers.length != 1 || !(trustManagers[0] instanceof X509TrustManager)) {
                  throw new IllegalStateException("Unexpected default trust managers:"
                          + Arrays.toString(trustManagers));
              }
              X509TrustManager trustManager = (X509TrustManager) trustManagers[0];
              client.sslSocketFactory(new TLSSocketFactory(), trustManager);
              ConnectionSpec cs = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
                      .tlsVersions(TlsVersion.TLS_1_2, TlsVersion.TLS_1_1)
                      .build();
              List<ConnectionSpec> specs = new ArrayList<>();
              specs.add(cs);
              specs.add(ConnectionSpec.COMPATIBLE_TLS);
              specs.add(ConnectionSpec.CLEARTEXT);
              client.connectionSpecs(specs);
          } catch (Exception exc) {
              Log.e(TAG, "Error while setting TLS", exc);
          }
          return client;
      }