Sha256: c1821a419e247e9ec88e287b63b4428a3ff0054872934e7fa9fa4726143e04a2

Contents?: true

Size: 685 Bytes

Versions: 6

Compression:

Stored size: 685 Bytes

Contents

require 'xcodeproj'

project_config do |destination_root, config|
  source_files_folder = File.join destination_root, config[:project_name], config[:target_name]
  project_file = File.join destination_root, config[:project_name], "#{config[:project_name]}.xcodeproj"
  project = Xcodeproj::Project.new(project_file)
  project.new_file File.join(source_files_folder, "#{config[:class_prefix]}AppDelegate+Frank.h"), config[:project_name]
  m = project.new_file File.join(source_files_folder, "#{config[:class_prefix]}AppDelegate+Frank.m"), config[:project_name]
  project.targets.select{|t| t.name.eql? config[:target_name]}[0].add_file_references [m]
  project.save_as project_file
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fwtoolkit-1.0.6 templates/default_project/frank/~template_config.rb
fwtoolkit-1.0.5 templates/default_project/frank/~template_config.rb
fwtoolkit-1.0.4 templates/default_project/frank/~template_config.rb
fwtoolkit-1.0.3 templates/default_project/frank/~template_config.rb
fwtoolkit-1.0.2 templates/default_project/frank/~template_config.rb
fwtoolkit-1.0.1 templates/default_project/frank/~template_config.rb