lib/deliver/detect_values.rb in deliver-1.0.0 vs lib/deliver/detect_values.rb in deliver-1.1.0
- old
+ new
@@ -2,10 +2,11 @@
class DetectValues
def run!(options)
find_app_identifier(options)
find_app(options)
find_folders(options)
+ find_version(options)
end
def find_app_identifier(options)
return if options[:app_identifier]
@@ -28,8 +29,14 @@
options[:screenshots_path] ||= File.join(containing, 'screenshots')
options[:metadata_path] ||= File.join(containing, 'metadata')
FileUtils.mkdir_p(options[:screenshots_path])
FileUtils.mkdir_p(options[:metadata_path])
+ end
+
+ def find_version(options)
+ if options[:ipa]
+ options[:app_version] ||= FastlaneCore::IpaFileAnalyser.fetch_app_version(options[:ipa])
+ end
end
end
end