mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
16 lines
494 B
JavaScript
Executable File
16 lines
494 B
JavaScript
Executable File
const { platform, env } = process;
|
|
|
|
const { patchGradleByRNVersion } = require('./updateGradle');
|
|
|
|
const isDarwin = platform === 'darwin';
|
|
const shouldInstallDetox = !env.DETOX_DISABLE_POSTINSTALL;
|
|
|
|
if (isDarwin && shouldInstallDetox) {
|
|
const execFileSync = require('child_process').execFileSync;
|
|
|
|
execFileSync(`${__dirname}/build_local_framework.ios.sh`, { stdio: 'inherit' });
|
|
execFileSync(`${__dirname}/build_local_xcuitest.ios.sh`, { stdio: 'inherit' });
|
|
}
|
|
|
|
patchGradleByRNVersion();
|