mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-08-16 02:56:22 +00:00
32 lines
622 B
JavaScript
32 lines
622 B
JavaScript
const path = require('path');
|
|
const pkg = require('../package.json');
|
|
|
|
const project = (() => {
|
|
try {
|
|
const { configureProjects } = require('react-native-test-app');
|
|
return configureProjects({
|
|
android: {
|
|
sourceDir: 'android',
|
|
},
|
|
ios: {
|
|
sourceDir: 'ios',
|
|
},
|
|
windows: {
|
|
sourceDir: 'windows',
|
|
solutionFile: 'windows/VideoExample.sln',
|
|
},
|
|
});
|
|
} catch (_) {
|
|
return undefined;
|
|
}
|
|
})();
|
|
|
|
module.exports = {
|
|
...(project ? { project } : undefined),
|
|
dependencies: {
|
|
[pkg.name]: {
|
|
root: path.join(__dirname, '..'),
|
|
},
|
|
},
|
|
};
|