diff --git a/README.md b/README.md index d665625b..5eaa86fc 100644 --- a/README.md +++ b/README.md @@ -924,12 +924,16 @@ ReactNativeBlobUtil.fetch('POST', 'http://example.com/upload', {'Transfer-Encodi By default, react-native-blob-util does NOT allow connection to unknown certification provider since it's dangerous. To connect a server with self-signed certification, you need to add `trusty` to `config` explicitly. This function is available for version >= `0.5.3` In addition since ``0.16.0`` you'll have to define your own trust manager for android. ````java +.... +import com.ReactNativeBlobUtil.ReactNativeBlobUtilUtils; +... + public class MainApplication extends Application implements ReactApplication { ... @Override public void onCreate() { ... - ReactNativeBlobUtilUtils.sharedTrustManager = final X509TrustManager x509TrustManager = new X509TrustManager() { + ReactNativeBlobUtilUtils.sharedTrustManager = x509TrustManager = new X509TrustManager() { @Override public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { }