esoftplay 0.0.138-a → 0.0.138-c
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 +19 -18
- package/package.json +1 -1
package/bin/build.js
CHANGED
|
@@ -297,6 +297,7 @@ export default UserIndex`;
|
|
|
297
297
|
'expo-dev-client',
|
|
298
298
|
'expo-file-system',
|
|
299
299
|
'expo-font',
|
|
300
|
+
'expo-image',
|
|
300
301
|
'expo-image-manipulator',
|
|
301
302
|
'expo-image-picker',
|
|
302
303
|
'expo-linear-gradient',
|
|
@@ -311,7 +312,6 @@ export default UserIndex`;
|
|
|
311
312
|
'react-fast-compare',
|
|
312
313
|
'react-native-gesture-handler',
|
|
313
314
|
'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,31 +370,32 @@ 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
|
-
|
|
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
|
+
}
|
|
391
|
+
})
|
|
392
|
+
fs.writeFileSync('../@expo/vector-icons/build/esoftplay_icons.ts', esoftplayIcon)
|
|
391
393
|
})
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
console.log(
|
|
394
|
+
} else {
|
|
395
|
+
console.log("@expo/vector-icons not installed")
|
|
396
|
+
}
|
|
397
|
+
console.log('Please wait until processes has finished...');
|
|
396
398
|
}
|
|
397
|
-
console.log('Please wait until processes has finished...');
|
|
398
399
|
});
|
|
399
400
|
}
|
|
400
401
|
} else {
|