esoftplay 0.0.138-c → 0.0.138-e
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 +18 -19
- package/package.json +1 -1
package/bin/build.js
CHANGED
|
@@ -297,7 +297,6 @@ export default UserIndex`;
|
|
|
297
297
|
'expo-dev-client',
|
|
298
298
|
'expo-file-system',
|
|
299
299
|
'expo-font',
|
|
300
|
-
'expo-image',
|
|
301
300
|
'expo-image-manipulator',
|
|
302
301
|
'expo-image-picker',
|
|
303
302
|
'expo-linear-gradient',
|
|
@@ -312,6 +311,7 @@ export default UserIndex`;
|
|
|
312
311
|
'react-fast-compare',
|
|
313
312
|
'react-native-gesture-handler',
|
|
314
313
|
'react-native-awesome-gallery',
|
|
314
|
+
'react-native-fast-image',
|
|
315
315
|
'react-native-mmkv',
|
|
316
316
|
'react-native-pan-pinch-view',
|
|
317
317
|
'react-native-reanimated',
|
|
@@ -370,32 +370,31 @@ 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)
|
|
373
|
+
if (appjson)
|
|
374
374
|
/* bugfix AsyncStorage @firebase, remove this section if firebase has update the AsyncStorage */
|
|
375
375
|
if (fs.existsSync('../@firebase/app/dist/index.rn.cjs.js')) {
|
|
376
376
|
let firebaseText = fs.readFileSync('../@firebase/app/dist/index.rn.cjs.js', 'utf8')
|
|
377
377
|
firebaseText = firebaseText.replace("var AsyncStorage = require('react-native').AsyncStorage;", "var AsyncStorage = require('@react-native-async-storage/async-storage').default;")
|
|
378
378
|
fs.writeFileSync('../@firebase/app/dist/index.rn.cjs.js', firebaseText)
|
|
379
379
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
})
|
|
392
|
-
fs.writeFileSync('../@expo/vector-icons/build/esoftplay_icons.ts', esoftplayIcon)
|
|
380
|
+
/* end AsyncStorage @firebase section */
|
|
381
|
+
if (fs.existsSync('../@expo/vector-icons')) {
|
|
382
|
+
let esoftplayIcon = ''
|
|
383
|
+
fs.readdir('../@expo/vector-icons/build', (err, files) => {
|
|
384
|
+
const dfiles = files.filter((file) => file.includes('d.ts'))
|
|
385
|
+
dfiles.map((dfile, i) => {
|
|
386
|
+
const rdfile = fs.readFileSync('../@expo/vector-icons/build/' + dfile, { encoding: 'utf8' })
|
|
387
|
+
const names = (/import\("\.\/createIconSet"\)\.Icon<((.*))\,.*>/g).exec(rdfile);
|
|
388
|
+
if (names && names[1].includes('|')) {
|
|
389
|
+
esoftplayIcon += 'export type ' + dfile.replace('.d.ts', 'Types') + ' = ' + names[1] + '\n';
|
|
390
|
+
}
|
|
393
391
|
})
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
console.log(
|
|
392
|
+
fs.writeFileSync('../@expo/vector-icons/build/esoftplay_icons.ts', esoftplayIcon)
|
|
393
|
+
})
|
|
394
|
+
} else {
|
|
395
|
+
console.log("@expo/vector-icons not installed")
|
|
398
396
|
}
|
|
397
|
+
console.log('Please wait until processes has finished...');
|
|
399
398
|
});
|
|
400
399
|
}
|
|
401
400
|
} else {
|