react-native-security-suite 0.9.8 → 0.9.10

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 CHANGED
@@ -3,7 +3,10 @@
3
3
  Security solutions for React Native both platform Android and iOS
4
4
  You can use any of the following:
5
5
 
6
- <ol><li>Android Root device or iOS Jailbreak device detection</li><li>Disable capture/screenshot</li><li>Text Encryption/Decryption</li><li>Secure storage</li><li>Diffie–Hellman key exchange</li><li>SSL Pinning &amp; public key pinning</li><li>Network Logger (Android Chucker - iOS Pulse)</li></ol>
6
+ <ol><li>Android Root device or iOS Jailbreak device detection</li><li>Disable screenshot or screen record</li><li>Text Encryption/Decryption</li><li>Secure storage</li><li>Diffie–Hellman key exchange</li><li>SSL Pinning &amp; public key pinning</li><li>Network Logger (Android Chucker - iOS Pulse)</li></ol>
7
+
8
+ ![Android Chucker](/chucker.gif 'Chucker')
9
+ ![iOS Pulse](/pulse.png 'Pulse')
7
10
 
8
11
  ## Installation
9
12
 
@@ -88,25 +91,29 @@ console.log('Decrypted result: ', hardDecrypted);
88
91
  ```js
89
92
  import { fetch } from 'react-native-security-suite';
90
93
 
91
- const response = await fetch(
92
- 'https://example.com/api',
93
- {
94
- method: 'POST', // or any http methods
95
- headers: {
96
- 'Content-Type': 'application/json',
97
- },
98
- body: {
99
- key: value,
100
- },
101
- certificates: ['sha256/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX='],
102
- validDomains: ['example.com'],
103
- timeout: 6000,
94
+ const response = await fetch('https://example.com/api', {
95
+ method: 'POST', // or any http methods
96
+ headers: {
97
+ 'Content-Type': 'application/json',
98
+ },
99
+ body: {
100
+ key: value,
104
101
  },
105
- __DEV__
106
- );
102
+ certificates: ['sha256/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX='],
103
+ validDomains: ['example.com'],
104
+ timeout: 6000,
105
+ });
107
106
  console.log('server response: ', response.json());
108
107
  ```
109
108
 
109
+ 7\. Network Logger (Android Chucker - iOS Pulse):
110
+
111
+ ```js
112
+ import { fetch } from 'react-native-security-suite';
113
+
114
+ fetch(YOUR_REQUEST, __DEV__);
115
+ ```
116
+
110
117
  ## Contributing
111
118
 
112
119
  See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
@@ -46,13 +46,11 @@ public class SecureViewManager extends ViewGroupManager<SecureView> {
46
46
  @Nullable
47
47
  @Override
48
48
  public Map<String, Integer> getCommandsMap() {
49
- Log.d("hereeeee", "1");
50
- return MapBuilder.of("1", 1);
49
+ return MapBuilder.of("create", COMMAND_CREATE);
51
50
  }
52
51
 
53
52
  @Override
54
53
  public void receiveCommand(@NonNull SecureView root, String commandId, @Nullable ReadableArray args) {
55
- Log.d("hereeeee", commandId);
56
54
  super.receiveCommand(root, commandId, args);
57
55
  int commandIdInt = Integer.parseInt(commandId);
58
56
  if (commandIdInt == COMMAND_CREATE) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-security-suite",
3
- "version": "0.9.8",
3
+ "version": "0.9.10",
4
4
  "description": "Security solution for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",