Permalink
Browse files

merge

  • Loading branch information...
2 parents 24c284a + 2cedf01 commit fdb1b3240cd9264d18adc0918c8510c5c4dbf502 @krukow krukow committed Nov 16, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/sim_launcher/simulator.rb
@@ -31,13 +31,14 @@ def reset(sdks=nil)
end
- def launch_ios_app(app_path, sdk_version, device_family)
+ def launch_ios_app(app_path, sdk_version, device_family, app_args = nil)
if problem = SimLauncher.check_app_path( app_path )
bangs = '!'*80
raise "\n#{bangs}\nENCOUNTERED A PROBLEM WITH THE SPECIFIED APP PATH:\n\n#{problem}\n#{bangs}"
end
sdk_version ||= SdkDetector.new(self).latest_sdk_version
- run_synchronous_command( :launch, app_path, '--sdk', sdk_version, '--family', device_family, '--exit' )
+ args = ["--args"] + app_args.flatten if app_args
+ run_synchronous_command( :launch, app_path, '--sdk', sdk_version, '--family', device_family, '--exit', *args )
end
def launch_ipad_app( app_path, sdk )

0 comments on commit fdb1b32

Please sign in to comment.