apps-sdk 1.0.74 → 1.0.76

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.74",
3
+ "version": "1.0.76",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,7 +25,6 @@
25
25
  "react-native": "^0.73.2",
26
26
  "react-native-adjust": "^4.37.1",
27
27
  "react-native-btr": "^2.2.1",
28
- "react-native-device-info": "^10.13.1",
29
28
  "react-native-iap": "^12.12.2",
30
29
  "react-native-webview": "^13.8.1",
31
30
  "semver": "^7.6.0"
@@ -126,9 +126,11 @@ class PayWall extends React.Component {
126
126
 
127
127
  render() {
128
128
  const { visible, onClose, type, keyword } = this.props;
129
- this.getPayWallData(type, keyword);
130
- config.DEBUG_MODE && console.log('PayWallLogic.paywallJS:', PayWallLogic.paywallJS);
131
- config.DEBUG_MODE && console.log('PayWallLogic.paywallJS type:', typeof PayWallLogic.paywallJS);
129
+ if (PayWallLogic.paywallJS === '') {
130
+ this.getPayWallData(type, keyword);
131
+ config.DEBUG_MODE && console.log('PayWallLogic.paywallJS:', PayWallLogic.paywallJS);
132
+ config.DEBUG_MODE && console.log('PayWallLogic.paywallJS type:', typeof PayWallLogic.paywallJS);
133
+ }
132
134
  return (
133
135
  <BottomSheet visible={visible} onBackButtonPress={onClose} onBackdropPress={onClose}>
134
136
  <View style={styles.bottomNavigationView}>
@@ -1,11 +1,11 @@
1
1
  import * as config from '../../config';
2
2
  import NetInfo from "@react-native-community/netinfo";
3
- import DeviceInfo from 'react-native-device-info';
4
3
  import { default as storage } from './Storage';
5
4
  import Session from './Session';
6
5
  import AdJust from './AdJust';
7
6
  import CryptoES from "crypto-es";
8
7
  import semver from 'semver';
8
+ import Constants from 'expo-constants';
9
9
 
10
10
  class Networking {
11
11
  constructor() {
@@ -154,7 +154,7 @@ class Networking {
154
154
  }
155
155
 
156
156
  setForcedUpdate = (data) => {
157
- const currentVersion = DeviceInfo.getVersion();
157
+ const currentVersion = Constants.expoConfig.version;
158
158
  const updateNeeded = (data.update_state === 'force' && semver.lt(currentVersion, data.release));
159
159
  console.log('update_state: ' + data.update_state + ', currentVersion: ' + currentVersion + ', initVersion: ' + data.release + ', updateNeeded: ' + updateNeeded);
160
160
  config.FORCED_UPDATE = updateNeeded;