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.
- package/bin/build.js +6 -7
- 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
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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 = ''
|