243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
|
# File 'lib/pod_builder/podfile.rb', line 243
def self.write_prebuilt_react_native(all_buildable_items, analyzer)
puts "Updating Application Podfile".yellow
podbuilder_podfile_path = PodBuilder::basepath("Podfile")
rel_path = Pathname.new(podbuilder_podfile_path).relative_path_from(Pathname.new(PodBuilder::project_path)).to_s
podfile_content = ["# Autogenerated by PodBuilder (https://github.com/Subito-it/PodBuilder)\n", "# Any change to this file should be done on #{rel_path}\n", "\n"].join
podfile_content += analyzer.podfile.pb_to_s(all_buildable_items)
podfile_content = Podfile.update_path_entries(podfile_content, PodfileCP.method(:podfile_path_transform))
podfile_content = Podfile.update_project_entries(podfile_content, Podfile.method(:podfile_path_transform))
podfile_content = Podfile.update_require_entries(podfile_content, Podfile.method(:podfile_path_transform))
podfile_content = add_pre_install_actions(podfile_content)
project_podfile_path = PodBuilder::project_path("Podfile")
File.write(project_podfile_path, podfile_content)
end
|