Skip to content

Commit

Permalink
Fixed a broken post install script in public version
Browse files Browse the repository at this point in the history
  • Loading branch information
gosha212 committed Feb 11, 2024
1 parent b6aaf30 commit 076cbd9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions detox/scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
const { setGradleVersionByRNVersion } = require('./updateGradle');
if (process.platform === 'darwin' && !process.env.DETOX_DISABLE_POSTINSTALL) {
require('child_process').execFileSync(`${__dirname}/build_framework.ios.sh`, {
stdio: 'inherit'
});

}
setGradleVersionByRNVersion();
2 changes: 1 addition & 1 deletion detox/test/scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs-extra');
const cp = require('child_process');
const { setGradleVersionByRNVersion } = require('../../scripts/updateGradle');
const { setGradleVersionByRNVersion } = require('./updateGradle');

const patchBoostPodspec = () => {
const log = message => console.log(`[POST-INSTALL] ${message}`);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');

const rnMinor = require('../test/e2e/utils/rn-consts/rn-consts').rnVersion.minor;
const rnMinor = require('../e2e/utils/rn-consts/rn-consts').rnVersion.minor;

function getGradleVersionByRNVersion() {
switch (rnMinor) {
Expand Down
2 changes: 1 addition & 1 deletion examples/demo-react-native/scripts/postinstall.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('fs-extra');
const cp = require('child_process');
const { setGradleVersionByRNVersion } = require('detox/scripts/updateGradle');
const { setGradleVersionByRNVersion } = require('detox/test/scripts/updateGradle');

const patchBoostPodspec = () => {
const log = message => console.log(`[POST-INSTALL] ${message}`);
Expand Down

0 comments on commit 076cbd9

Please sign in to comment.