esoftplay 0.0.138-b → 0.0.138-d

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.
Files changed (2) hide show
  1. package/bin/build.js +6 -7
  2. package/package.json +1 -1
package/bin/build.js CHANGED
@@ -370,13 +370,12 @@ export default UserIndex`;
370
370
  execSync("cd ../../ && bun ./node_modules/esoftplay/bin/locale.js || true")
371
371
  // execSync("cd ../../ && eas update:configure || true")
372
372
  console.log('App.js has been replace to App.tsx');
373
- if (appjson)
374
- /* bugfix AsyncStorage @firebase, remove this section if firebase has update the AsyncStorage */
375
- if (fs.existsSync('../@firebase/app/dist/index.rn.cjs.js')) {
376
- let firebaseText = fs.readFileSync('../@firebase/app/dist/index.rn.cjs.js', 'utf8')
377
- firebaseText = firebaseText.replace("var AsyncStorage = require('react-native').AsyncStorage;", "var AsyncStorage = require('@react-native-async-storage/async-storage').default;")
378
- fs.writeFileSync('../@firebase/app/dist/index.rn.cjs.js', firebaseText)
379
- }
373
+ /* bugfix AsyncStorage @firebase, remove this section if firebase has update the AsyncStorage */
374
+ if (fs.existsSync('../@firebase/app/dist/index.rn.cjs.js')) {
375
+ let firebaseText = fs.readFileSync('../@firebase/app/dist/index.rn.cjs.js', 'utf8')
376
+ firebaseText = firebaseText.replace("var AsyncStorage = require('react-native').AsyncStorage;", "var AsyncStorage = require('@react-native-async-storage/async-storage').default;")
377
+ fs.writeFileSync('../@firebase/app/dist/index.rn.cjs.js', firebaseText)
378
+ }
380
379
  /* end AsyncStorage @firebase section */
381
380
  if (fs.existsSync('../@expo/vector-icons')) {
382
381
  let esoftplayIcon = ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.138-b",
3
+ "version": "0.0.138-d",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",