48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# File 'fastlane/lib/fastlane/actions/appetize_viewing_url_generator.rb', line 48
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :public_key,
env_name: "APPETIZE_PUBLICKEY",
description: "Public key of the app you wish to update",
is_string: true,
sensitive: true,
default_value: Actions.lane_context[SharedValues::APPETIZE_PUBLIC_KEY],
default_value_dynamic: true,
optional: false,
verify_block: proc do |value|
if value.start_with?("private_")
UI.user_error!("You provided a private key to appetize, please provide the public key")
end
end),
FastlaneCore::ConfigItem.new(key: :base_url,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_BASE",
description: "Base URL of Appetize service",
is_string: true,
default_value: "https://appetize.io/embed",
optional: true),
FastlaneCore::ConfigItem.new(key: :device,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_DEVICE",
description: "Device type: iphone4s, iphone5s, iphone6, iphone6plus, ipadair, iphone6s, iphone6splus, ipadair2, nexus5, nexus7 or nexus9",
is_string: true,
default_value: "iphone5s"),
FastlaneCore::ConfigItem.new(key: :scale,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_SCALE",
description: "Scale of the simulator",
is_string: true,
optional: true,
verify_block: proc do |value|
available = ["25", "50", "75", "100"]
UI.user_error!("Invalid scale, available: #{available.join(', ')}") unless available.include?(value)
end),
FastlaneCore::ConfigItem.new(key: :orientation,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_ORIENTATION",
description: "Device orientation",
is_string: true,
default_value: "portrait",
verify_block: proc do |value|
available = ["portrait", "landscape"]
UI.user_error!("Invalid device, available: #{available.join(', ')}") unless available.include?(value)
end),
FastlaneCore::ConfigItem.new(key: :language,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_LANGUAGE",
description: "Device language in ISO 639-1 language code, e.g. 'de'",
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :color,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_COLOR",
description: "Color of the device",
is_string: true,
default_value: "black",
verify_block: proc do |value|
available = ["black", "white", "silver", "gray"]
UI.user_error!("Invalid device color, available: #{available.join(', ')}") unless available.include?(value)
end),
FastlaneCore::ConfigItem.new(key: :launch_url,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_LAUNCH_URL",
description: "Specify a deep link to open when your app is launched",
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :os_version,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_OS_VERSION",
description: "The operating system version on which to run your app, e.g. 10.3, 8.0",
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :params,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_PARAMS",
description: "Specifiy params value to be passed to Appetize",
is_string: true,
optional: true),
FastlaneCore::ConfigItem.new(key: :proxy,
env_name: "APPETIZE_VIEWING_URL_GENERATOR_PROXY",
description: "Specify a HTTP proxy to be passed to Appetize",
is_string: true,
optional: true)
]
end
|