Skip to content

Commit 26ff2b8

Browse files
committed
Extract RN version
1 parent 289f048 commit 26ff2b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/SampleApp/fastlane/Fastfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ xcode_project = 'ios/SampleApp.xcodeproj'
77
xcode_workspace = 'ios/SampleApp.xcworkspace'
88
template_app_name = 'DemoApp'
99
bundletool_version = '1.17.1'
10+
react_native_version = '0.74.5'
1011
@force_check = false
1112
temp_dir = Dir.mktmpdir
1213

@@ -213,9 +214,7 @@ end
213214
lane :frameworks_sizes do
214215
rn_project_dir = create_template_project
215216

216-
Dir.chdir(rn_project_dir) do
217-
sh('yarn add react-native@0.74.5')
218-
end
217+
Dir.chdir(rn_project_dir) { sh("yarn add react-native@#{react_native_version}") }
219218

220219
android_app_size_without_sdk = android_app_size(rn_project_dir: rn_project_dir)
221220
ios_app_size_without_sdk = ios_app_size(rn_project_dir: rn_project_dir)

0 commit comments

Comments
 (0)