diff --git a/android/app/src/debug/java/chat/rocket/reactnative/ReactNativeFlipper.java b/android/app/src/debug/java/chat/rocket/reactnative/ReactNativeFlipper.java index 1cb53dd48..e9263895b 100644 --- a/android/app/src/debug/java/chat/rocket/reactnative/ReactNativeFlipper.java +++ b/android/app/src/debug/java/chat/rocket/reactnative/ReactNativeFlipper.java @@ -16,7 +16,7 @@ import com.facebook.react.ReactInstanceEventListener; import com.facebook.react.ReactInstanceManager; import com.facebook.react.bridge.ReactContext; import com.facebook.react.modules.network.NetworkingModule; -import com.facebook.react.modules.network.CustomClientBuilder; +// import com.facebook.react.modules.network.CustomClientBuilder; import okhttp3.OkHttpClient; /** @@ -34,7 +34,7 @@ public class ReactNativeFlipper { client.addPlugin(CrashReporterPlugin.getInstance()); NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); NetworkingModule.setCustomClientBuilder( - new CustomClientBuilder() { + new NetworkingModule.CustomClientBuilder() { @Override public void apply(OkHttpClient.Builder builder) { builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); diff --git a/android/app/src/main/java/chat/rocket/reactnative/MainApplication.java b/android/app/src/main/java/chat/rocket/reactnative/MainApplication.java index f2d9777b2..adfe82a7d 100644 --- a/android/app/src/main/java/chat/rocket/reactnative/MainApplication.java +++ b/android/app/src/main/java/chat/rocket/reactnative/MainApplication.java @@ -20,7 +20,7 @@ import expo.modules.ReactNativeHostWrapper; import java.util.Arrays; import java.util.List; -import chat.rocket.reactnative.networking.SSLPinningPackage; +// import chat.rocket.reactnative.networking.SSLPinningPackage; public class MainApplication extends Application implements ReactApplication { @@ -35,7 +35,7 @@ public class MainApplication extends Application implements ReactApplication { protected List getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List packages = new PackageList(this).getPackages(); - packages.add(new SSLPinningPackage()); + // packages.add(new SSLPinningPackage()); List additionalModules = new AdditionalModules().getAdditionalModules(MainApplication.this); packages.addAll(additionalModules); return packages; diff --git a/android/app/src/main/java/chat/rocket/reactnative/networking/SSLPinningModule.java b/android/app/src/main/java/chat/rocket/reactnative/networking/SSLPinningModule.java_ similarity index 100% rename from android/app/src/main/java/chat/rocket/reactnative/networking/SSLPinningModule.java rename to android/app/src/main/java/chat/rocket/reactnative/networking/SSLPinningModule.java_ diff --git a/android/app/src/main/java/chat/rocket/reactnative/networking/SSLPinningPackage.java b/android/app/src/main/java/chat/rocket/reactnative/networking/SSLPinningPackage.java_ similarity index 100% rename from android/app/src/main/java/chat/rocket/reactnative/networking/SSLPinningPackage.java rename to android/app/src/main/java/chat/rocket/reactnative/networking/SSLPinningPackage.java_