2022-07-21 11:19:30 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
2022-07-29 10:23:36 +00:00
|
|
|
const project = (() => {
|
|
|
|
try {
|
|
|
|
const {
|
|
|
|
androidManifestPath,
|
|
|
|
iosProjectPath,
|
|
|
|
} = require('react-native-test-app');
|
|
|
|
const iosProject = iosProjectPath('ios');
|
|
|
|
return {
|
|
|
|
android: {
|
|
|
|
sourceDir: 'android',
|
|
|
|
manifestPath: androidManifestPath(path.join(__dirname, 'android')),
|
|
|
|
},
|
|
|
|
|
|
|
|
...(iosProject ? { ios: { project: iosProject } } : undefined),
|
|
|
|
};
|
|
|
|
} catch (_) {
|
|
|
|
return undefined;
|
|
|
|
}
|
|
|
|
})();
|
|
|
|
|
2022-07-21 11:19:30 +00:00
|
|
|
module.exports = {
|
2022-07-29 10:23:36 +00:00
|
|
|
...(project ? { project } : undefined),
|
2022-07-21 11:19:30 +00:00
|
|
|
dependencies: {
|
|
|
|
'@react-native-community/blur': {
|
|
|
|
root: path.join(__dirname, '..'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|