react-native-security-suite 0.6.6 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -111,6 +111,7 @@ dependencies {
111
111
 
112
112
  implementation "com.squareup.okhttp3:okhttp:4.12.0"
113
113
  implementation "com.scottyab:rootbeer-lib:0.1.0"
114
+ implementation "com.github.chuckerteam.chucker:library:4.1.0"
114
115
 
115
116
  implementation "com.google.android.material:material:1.12.0"
116
117
  implementation "com.google.code.gson:gson:2.11.0"
@@ -3,6 +3,7 @@ package com.securitysuite;
3
3
  import android.content.Context;
4
4
  import android.net.Uri;
5
5
 
6
+ import com.chuckerteam.chucker.api.ChuckerInterceptor;
6
7
  import com.facebook.react.modules.network.OkHttpClientProvider;
7
8
  import com.facebook.react.bridge.Arguments;
8
9
  import com.facebook.react.bridge.Callback;
@@ -176,7 +177,7 @@ public class Sslpinning {
176
177
  }
177
178
 
178
179
  if (options.hasKey("loggerIsEnabled") && options.getBoolean("loggerIsEnabled")) {
179
- OkHttpClientProvider.setOkHttpClientFactory(new NetworkLogger(context));
180
+ builder.addInterceptor(new ChuckerInterceptor.Builder(context).build());
180
181
  }
181
182
 
182
183
  return builder.build();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-security-suite",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Security solution for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",