fastlane/lib/fastlane/swift_fastlane_function.rb in fastlane-2.93.0.beta.20180423050019 vs fastlane/lib/fastlane/swift_fastlane_function.rb in fastlane-2.93.0
- old
+ new
@@ -51,10 +51,12 @@
return "String"
when :array_of_strings
return "[String]"
when :hash_of_strings
return "[String : String]"
+ when :hash
+ return "[String : Any]"
when :bool
return "Bool"
when :int
return "Int"
else
@@ -194,9 +196,11 @@
returned_object = "runner.executeCommand(command)"
case @return_type
when :array_of_strings
returned_object = "parseArray(fromString: #{returned_object})"
when :hash_of_strings
+ returned_object = "parseDictionary(fromString: #{returned_object})"
+ when :hash
returned_object = "parseDictionary(fromString: #{returned_object})"
when :bool
returned_object = "parseBool(fromString: #{returned_object})"
when :int
returned_object = "parseInt(fromString: #{returned_object})"