lib/flashsdk/adt.rb in flashsdk-1.0.29.pre vs lib/flashsdk/adt.rb in flashsdk-1.0.33.pre

- old
+ new

@@ -37,46 +37,41 @@ #NOTE: # The order of these parameters is important! # Please do not alphabetize or rearrange unless you're # fixing a bug related to how ADT actually expects # the arguments... - - ## - # Install an app on a device - # - add_param :installApp, Boolean, { :hidden_value => true } + + ## + # Install an app on a device + # + add_param :installApp, Boolean, { :hidden_value => true } - ## - # Uninstall an app from a device - # - add_param :uninstallApp, Boolean, { :hidden_value => true } - - ## - # Launch an app on a device - # - add_param :launchApp, Boolean, { :hidden_value => true } - - ## - # The platform to use (ex: android) - # - add_param :platform, String, { :delimiter => ' ' } + ## + # Uninstall an app from a device + # + add_param :uninstallApp, Boolean, { :hidden_value => true } + + ## + # Launch an app on a device + # + add_param :launchApp, Boolean, { :hidden_value => true } + + ## + # The platform to use (ex: android) + # + add_param :platform, String, { :delimiter => ' ' } - ## - # The appid of the app being installed/uninstalled (ex: com.foo.Bar) - # - add_param :appid, String, { :delimiter => ' ' } - ## + # The appid of the app being installed/uninstalled (ex: com.foo.Bar) + # + add_param :appid, String, { :delimiter => ' ' } + + ## # Create an AIR package. # add_param :package, Boolean, { :hidden_value => true } - ## - # Use a specific target, like apk-debug for Android or ipa-debug for iOS - # - add_param :target, String, { :delimiter => ' ' } - ## # Set true to create a certificate. # # If this value is true, you can optionally set org_unit, org_name and country. # @@ -130,14 +125,14 @@ ## # Check Store Signing options # add_param :checkstore, String - ## - # Provisioning profile for iOS apps - # - add_param :provisioning_profile, String, { :delimiter => ' ' } + ## + # Provisioning profile for iOS apps + # + add_param :provisioning_profile, String, { :delimiter => ' ' } ## # Expects two files: # # 1) The Airi file (?) @@ -154,11 +149,17 @@ ## # The AIR runtime version to use. add_param :version, String, { :delimiter => ' ' } + ## + # Use a specific target, like apk-debug for Android or ipa-debug for iOS + # + add_param :target, String, { :delimiter => ' ' } + + ## # The AIR file that should be created # after packaging is complete. # add_param :package_output, String, { :hidden_name => true } @@ -226,10 +227,25 @@ # # If files are hidden from the file system, # they will not be included. # add_param :included_paths, Paths, { :hidden_name => true } + + ## + # Allows file options in the form of -C <dir> <fileOrDir>+ + # + # For example if you defined: + # + # t.file_options << 'dir path/to/asset.xml' + # + # In your adt task defintion, then: + # + # -C dir path/to/asset.xml + # + # Would be appended to your arguments. + # + add_param :file_options, Strings, { :shell_name => '-C', :delimiter => ' ' } ## # The the Ruby file that will load the expected # Sprout::Specification. # @@ -256,6 +272,5 @@ def adt *args, &block exe = FlashSDK::ADT.new exe.to_rake(*args, &block) exe end -