Sha256: 1deb13d29bae0e2e739bce98014cd915e842a1679d0badcbeef5d0969dd46515
Contents?: true
Size: 931 Bytes
Versions: 5
Compression:
Stored size: 931 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') color = Frameit::Editor::Color::BLACK color = Frameit::Editor::Color::SILVER if [:silver, :white].include?(params.first) 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 end end end
Version data entries
5 entries across 5 versions & 1 rubygems