294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
|
# File 'lib/pod_builder/podfile.rb', line 294
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))
project_podfile_path = PodBuilder::project_path("Podfile")
File.write(project_podfile_path, podfile_content)
end
|