Sha256: 45454fb1ab87f2fa6750c0b5d4d97af935f119c85701e726694f6723606495a4
Contents?: true
Size: 1023 Bytes
Versions: 10
Compression:
Stored size: 1023 Bytes
Contents
module Fastlane module Actions class FrameitAction < Action def self.run(params) return if Helper.test? require 'frameit' begin FastlaneCore::UpdateChecker.start_looking_for_update('frameit') unless Helper.is_test? color = Frameit::Editor::Color::BLACK color = Frameit::Editor::Color::SILVER if [:silver, :white].include?(params) screenshots_folder = Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH] screenshots_folder ||= FastlaneFolder.path Dir.chdir(screenshots_folder) do Frameit::Editor.new.run('.', color) end ensure FastlaneCore::UpdateChecker.show_update_status('frameit', Frameit::VERSION) end end def self.description "Adds device frames around the screenshots using frameit" end def self.author "KrauseFx" end def self.is_supported?(platform) platform == :ios end end end end
Version data entries
10 entries across 10 versions & 1 rubygems