Skip to content

Commit e4bac79

Browse files
copy gemfile
1 parent c071c64 commit e4bac79

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

scripts/generate-react-native-fixture.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,12 @@ if (!process.env.SKIP_GENERATE_FIXTURE) {
112112
const applyPatch = ['apply', '--ignore-whitespace', resolve(replacementFilesDir, 'patches/react-native-boost.patch')]
113113
execFileSync('git', applyPatch, { cwd: fixtureDir, stdio: 'inherit' })
114114

115-
// remove the ruby version
115+
// pin the ruby version and gemfile
116116
if (fs.existsSync(resolve(fixtureDir, '.ruby-version'))) {
117117
fs.rmSync(resolve(fixtureDir, '.ruby-version'))
118118
}
119+
120+
fs.copyFileSync(resolve(replacementFilesDir, 'ios/Gemfile'), resolve(fixtureDir, 'Gemfile'))
119121
}
120122

121123
// link react-native-navigation using rnn-link tool
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'cocoapods', '1.14.3'
4+
gem 'xcodeproj', '< 1.26.0'

0 commit comments

Comments
 (0)