class FWToolkit::Rake::XcodeTask
Public Class Methods
new() { |self| ... }
click to toggle source
# File lib/fwtoolkit/rake/tasks/xcode.rb, line 11 def initialize(&block) yield self if block_given? define_task end
Private Instance Methods
define_task()
click to toggle source
# File lib/fwtoolkit/rake/tasks/xcode.rb, line 19 def define_task namespace :xcode do Projectfile.load! projectfile_path Config.load! XcodeBuild::Tasks::BuildTask.new :debug do |t| t.invoke_from_within = '.' t.configuration = "Debug" t.sdk = "iphonesimulator" t.workspace = Projectfile.xcode_workspace t.scheme = Projectfile.xcode_scheme t.formatter = XcodeBuild::Formatters::ProgressFormatter.new t.add_build_setting 'CONFIGURATION_BUILD_DIR', Config.artifacts_tmp_dir end XcodeBuild::Tasks::BuildTask.new :testing do |t| t.invoke_from_within = '.' t.configuration = "Debug" t.sdk = "iphoneos" t.workspace = Projectfile.xcode_workspace t.scheme = Projectfile.xcode_scheme t.formatter = XcodeBuild::Formatters::ProgressFormatter.new t.add_build_setting 'CONFIGURATION_BUILD_DIR', Config.artifacts_tmp_dir end XcodeBuild::Tasks::BuildTask.new :release do |t| t.invoke_from_within = '.' t.configuration = "Release" t.sdk = "iphoneos" t.workspace = Projectfile.xcode_workspace t.scheme = Projectfile.xcode_scheme t.formatter = XcodeBuild::Formatters::ProgressFormatter.new t.add_build_setting 'CONFIGURATION_BUILD_DIR', Config.artifacts_tmp_dir end namespace :ci do XcodeBuild::Tasks::BuildTask.new :testing do |t| t.invoke_from_within = '.' t.configuration = "Debug" t.sdk = "iphonesimulator" t.workspace = Projectfile.xcode_workspace t.scheme = Projectfile.xcode_scheme t.formatter = XcodeBuild::Formatters::ProgressFormatter.new t.add_build_setting 'CONFIGURATION_BUILD_DIR', Config.artifacts_tmp_dir end end end end