Sha256: 6da0fbf55ff06c29fbda4f84785c332c5eaefa2cc4e58de2da1ddf7731d63168
Contents?: true
Size: 1006 Bytes
Versions: 1
Compression:
Stored size: 1006 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 def self.is_supported?(platform) platform == :ios end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastlane-0.11.0 | lib/fastlane/actions/frameit.rb |