Skip to content

Commit

Permalink
feat: types
Browse files Browse the repository at this point in the history
  • Loading branch information
v-vila committed Feb 29, 2024
1 parent de427fd commit dfe5caf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/fastlane/plugin/common/actions/android_match_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
module Fastlane
module Actions
class AndroidMatchAction < Action
VALID_TYPES = [:debug, :release]

def self.run(params)
keystore = params[:keystore]
type = params[:type]
Expand Down Expand Up @@ -45,7 +47,12 @@ def self.available_options
FastlaneCore::ConfigItem.new(key: :type,
description: "Type (debug/release)",
optional: true,
default_value: "debug"),
default_value: "debug",
verify_block: proc do |value|
unless VALID_TYPES.include?(value.to_sym)
UI.user_error!("Invalid value '#{value}' for :type. Valid values are #{VALID_TYPES.join(', ')}")
end
end)
FastlaneCore::ConfigItem.new(key: :force,
description: "Force clone",
optional: true,
Expand Down
2 changes: 1 addition & 1 deletion lib/fastlane/plugin/common/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Fastlane
module Common
VERSION = "0.1.5"
VERSION = "0.1.6"
end
end

0 comments on commit dfe5caf

Please sign in to comment.