esoftplay 0.0.108-q → 0.0.109
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/_cache.ts +3 -1
- package/bin/build.js +21 -20
- package/modules/lib/curl.ts +1 -0
- package/package.json +1 -1
package/_cache.ts
CHANGED
|
@@ -42,7 +42,9 @@ export default (() => {
|
|
|
42
42
|
if (o?.persistKey) {
|
|
43
43
|
AsyncStorage.setItem(o.persistKey, JSON.stringify(value[_idx]))
|
|
44
44
|
}
|
|
45
|
-
o
|
|
45
|
+
if (o?.listener) {
|
|
46
|
+
o?.listener?.(ns instanceof Function ? ns(value[_idx]) : ns)
|
|
47
|
+
}
|
|
46
48
|
}
|
|
47
49
|
};
|
|
48
50
|
|
package/bin/build.js
CHANGED
|
@@ -255,26 +255,27 @@ yarn.lock\n\
|
|
|
255
255
|
console.log('.gitignore has been created');
|
|
256
256
|
});
|
|
257
257
|
|
|
258
|
-
const AppJS = `import
|
|
259
|
-
import
|
|
260
|
-
import * as
|
|
261
|
-
import
|
|
262
|
-
import { enableScreens } from 'react-native-screens';
|
|
263
|
-
const { globalIdx } = require('esoftplay/global')
|
|
264
|
-
enableScreens();
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
258
|
+
const AppJS = `import { esp, LibNotification } from 'esoftplay';
|
|
259
|
+
import * as ErrorReport from 'esoftplay/error';
|
|
260
|
+
import * as Notifications from 'expo-notifications';
|
|
261
|
+
import React, { useEffect, useRef } from 'react';
|
|
262
|
+
import { enableFreeze, enableScreens } from 'react-native-screens';
|
|
263
|
+
const { globalIdx } = require('esoftplay/global')
|
|
264
|
+
enableScreens();
|
|
265
|
+
enableFreeze(true);
|
|
266
|
+
|
|
267
|
+
Notifications.addNotificationResponseReceivedListener(x => LibNotification.onAction(x))
|
|
268
|
+
|
|
269
|
+
export default function App() {
|
|
270
|
+
const Home = useRef(esp.home()).current
|
|
271
|
+
|
|
272
|
+
useEffect(() => {
|
|
273
|
+
globalIdx.reset()
|
|
274
|
+
ErrorReport.getError()
|
|
275
|
+
}, [])
|
|
276
|
+
|
|
277
|
+
return <Home />
|
|
278
|
+
}`;
|
|
278
279
|
let expoLib = [
|
|
279
280
|
'@expo/vector-icons',
|
|
280
281
|
'@react-native-async-storage/async-storage',
|
package/modules/lib/curl.ts
CHANGED