Last active
August 26, 2021 08:22
-
-
Save samueljmurray/bb0fcc0f8ffc3b38365d258a624ab787 to your computer and use it in GitHub Desktop.
Certificate pinning in React Native Android - MainActivity.java methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
OkHttpClientProvider.setOkHttpClientFactory(new OkHttpCertPin()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment