apps-sdk 1.0.14 → 1.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,6 @@
11
11
  "dependencies": {
12
12
  "@react-native-async-storage/async-storage": "^1.21.0",
13
13
  "crypto-es": "^2.1.0",
14
- "encode-utf8": "^2.0.0",
15
14
  "expo-constants": "^15.4.5",
16
15
  "expo-device": "^5.9.3",
17
16
  "expo-localization": "^14.8.3",
@@ -2,7 +2,6 @@ import * as config from '../../config';
2
2
  import { default as storage } from './Storage';
3
3
  import Session from './Session';
4
4
  import CryptoES from "crypto-es";
5
- import encodeUtf8 from "encode-utf8";
6
5
 
7
6
  class Networking {
8
7
  constructor() {
@@ -86,11 +85,6 @@ class Networking {
86
85
 
87
86
  async request(url, data = {}, encrypt = this.DEFAULT_ENCRYPT_VALUE) {
88
87
  data = { ...Session.sessionData, ...data };
89
- Object.keys(data).map(key => {
90
- if (typeof data[key] === 'string') {
91
- data[key] = encodeUtf8(data[key]);
92
- }
93
- });
94
88
  config.DEBUG_MODE && console.debug("request data: ", url, data);
95
89
 
96
90
  let headers = { Accept: 'application/json', 'Content-Type': 'application/json' };
@@ -19,7 +19,7 @@ class Session {
19
19
  await this.checkUserID();
20
20
  this.sessionID = this.generateSessionID();
21
21
  await this.checkFirstOpen();
22
- // await Networking.executeInit();
22
+ await Networking.executeInit();
23
23
  }
24
24
 
25
25
  storeSessionStructure = async () => {