Rakefile in ProMotion-0.7.8 vs Rakefile in ProMotion-1.0.0
- old
+ new
@@ -9,11 +9,12 @@
require 'ProMotion'
Motion::Project::App.setup do |app|
app.name = 'ProMotionTest'
app.version = "0.99.0"
- app.redgreen_style = :focused # :focused, :full
+ app.redgreen_style = :full # :focused, :full
+ app.frameworks += %w(CoreLocation MapKit)
# Devices
app.deployment_target = "6.0"
app.device_family = [:ipad] # so we can test split screen capability
@@ -38,14 +39,23 @@
spec_files = all_files
spec_files -= functional_files
App.config.instance_variable_set("@spec_files", spec_files)
Rake::Task["simulator"].invoke
end
+
+ task :func do
+ Rake::Task["spec:functional"].invoke
+ end
task :functional do
App.config.spec_mode = true
spec_files = all_files
spec_files -= unit_files
App.config.instance_variable_set("@spec_files", spec_files)
Rake::Task["simulator"].invoke
end
+
+end
+
+task :sim_close do
+ sh "osascript -e 'tell application \"iphone simulator\" to quit'"
end