lib/screengrab/options.rb in screengrab-0.2.1 vs lib/screengrab/options.rb in screengrab-0.3.0
- old
+ new
@@ -3,10 +3,14 @@
module Screengrab
class Options
DEVICE_TYPES = ["phone", "sevenInch", "tenInch", "tv", "wear"].freeze
+ # Temporarily make non-Mac environments default to skipping the open summary
+ # step until we make it cross-platform
+ DEFAULT_SKIP_OPEN_SUMMARY = !FastlaneCore::Helper.mac?
+
def self.available_options
@options ||= [
FastlaneCore::ConfigItem.new(key: :android_home,
short_option: "-n",
optional: true,
@@ -32,10 +36,10 @@
description: "The directory where to store the screenshots",
default_value: File.join("fastlane", "metadata", "android")),
FastlaneCore::ConfigItem.new(key: :skip_open_summary,
env_name: 'SCREENGRAB_SKIP_OPEN_SUMMARY',
description: "Don't open the summary after running `screengrab`",
- default_value: false,
+ default_value: DEFAULT_SKIP_OPEN_SUMMARY,
is_string: false),
FastlaneCore::ConfigItem.new(key: :app_package_name,
env_name: 'SCREENGRAB_APP_PACKAGE_NAME',
short_option: "-a",
description: "The package name of the app under test (e.g. com.yourcompany.yourapp)",