react-native-security-suite 0.6.8 → 0.7.1
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.
- package/README.md +6 -4
- package/android/build.gradle +0 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -81,17 +81,19 @@ console.log('Decrypted result: ', hardDecrypted);
|
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
\
|
|
84
|
-
5. SSL Pinning example:
|
|
84
|
+
5. SSL Pinning with android network logger example:
|
|
85
85
|
|
|
86
86
|
```js
|
|
87
87
|
import { fetch } from 'react-native-security-suite';
|
|
88
88
|
|
|
89
|
-
const response = await fetch('
|
|
90
|
-
method: '
|
|
89
|
+
const response = await fetch('https://example.com/api', {
|
|
90
|
+
method: 'POST', // or any http methods
|
|
91
91
|
headers: {
|
|
92
92
|
'Content-Type': 'application/json',
|
|
93
93
|
},
|
|
94
|
-
body:
|
|
94
|
+
body: {
|
|
95
|
+
key: value,
|
|
96
|
+
},
|
|
95
97
|
certificates: ['sha256/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX='],
|
|
96
98
|
validDomains: ['example.com'],
|
|
97
99
|
timeout: 6000,
|
package/android/build.gradle
CHANGED
|
@@ -28,7 +28,6 @@ def isNewArchitectureEnabled() {
|
|
|
28
28
|
plugins {
|
|
29
29
|
id "com.android.library"
|
|
30
30
|
id "kotlin-android"
|
|
31
|
-
id "com.google.devtools.ksp" version "1.9.21-1.0.15"
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
if (isNewArchitectureEnabled()) {
|
|
@@ -112,19 +111,5 @@ dependencies {
|
|
|
112
111
|
implementation "com.squareup.okhttp3:okhttp:4.12.0"
|
|
113
112
|
implementation "com.scottyab:rootbeer-lib:0.1.0"
|
|
114
113
|
implementation "com.github.chuckerteam.chucker:library:4.1.0"
|
|
115
|
-
|
|
116
|
-
implementation "com.google.android.material:material:1.12.0"
|
|
117
|
-
implementation "com.google.code.gson:gson:2.11.0"
|
|
118
|
-
implementation "org.brotli:dec:0.1.2"
|
|
119
|
-
implementation "androidx.databinding:viewbinding:8.7.3"
|
|
120
|
-
implementation "androidx.constraintlayout:constraintlayout:2.2.0"
|
|
121
|
-
implementation "androidx.palette:palette-ktx:1.0.0"
|
|
122
|
-
implementation "androidx.activity:activity-ktx:1.9.3"
|
|
123
|
-
implementation "androidx.fragment:fragment-ktx:1.8.5"
|
|
124
|
-
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7"
|
|
125
|
-
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.8.7"
|
|
126
|
-
implementation "androidx.room:room-ktx:2.6.1"
|
|
127
|
-
implementation "androidx.room:room-runtime:2.6.1"
|
|
128
|
-
ksp "androidx.room:room-compiler:2.6.1"
|
|
129
114
|
}
|
|
130
115
|
|