Skip to content

Instantly share code, notes, and snippets.

View Prasanth-Shakti's full-sized avatar
🎯
Focusing

Prasanth Prasanth-Shakti

🎯
Focusing
  • Bangalore
View GitHub Profile
@samueljmurray
samueljmurray / MainActivity.java
Last active August 26, 2021 08:22
Certificate pinning in React Native Android - MainActivity.java methods
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
OkHttpClientProvider.setOkHttpClientFactory(new OkHttpCertPin());
}
@samueljmurray
samueljmurray / MainActivity.java
Last active August 26, 2021 08:22
Certificate pinning in React Native Android - MainActivity.java imports
import com.example.app.OkHttpCertPin;
import com.facebook.react.modules.network.OkHttpClientProvider;
@samueljmurray
samueljmurray / OkHttpCertPin.java
Last active August 26, 2021 08:22
Certificate pinning in React Native Android
package com.example.app;
import com.facebook.react.modules.network.OkHttpClientFactory;
import com.facebook.react.modules.network.OkHttpClientProvider;
import com.facebook.react.modules.network.ReactCookieJarContainer;
import java.util.concurrent.TimeUnit;
import okhttp3.CertificatePinner;
import okhttp3.OkHttpClient;
@hofmannsven
hofmannsven / README.md
Last active November 10, 2024 13:48
Git CLI Cheatsheet