docs: private void enforceTls12(OkHttpClient client) {
          // No need to modify client as TLS 1.2 is enabled by default on API21+
          // Lollipop is included because some Samsung devices face the same problem on API 21.
          if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN
                  || Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) {
              return;
          }
          try {
              SSLContext sc = SSLContext.getInstance("TLSv1.2");
              sc.init(null, null, null);
              client.setSslSocketFactory(new TLS12SocketFactory(sc.getSocketFactory()));
  
              ConnectionSpec cs = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
                      .tlsVersions(TlsVersion.TLS_1_2)
                      .build();
  
              List<ConnectionSpec> specs = new ArrayList<>();
              specs.add(cs);
              specs.add(ConnectionSpec.COMPATIBLE_TLS);
              specs.add(ConnectionSpec.CLEARTEXT);
  
              client.setConnectionSpecs(specs);
          } catch (NoSuchAlgorithmException | KeyManagementException e) {
              Log.e(TAG, "Error while setting TLS 1.2", e);
          }
      }