Skip to content

Commit

Permalink
Add --verbose option (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz authored May 2, 2020
1 parent c3a1211 commit 04abaa3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Which will produce:
| **device** | Build for device | CORDOVA_DEVICE | *true* |
| **prod** | Build for production | IONIC_PROD | *false* |
| **type** | This will determine what type of build is generated by Xcode. <br>Valid options are development, enterprise, adhoc, and appstore| CORDOVA_IOS_PACKAGE_TYPE | appstore |
| **verbose** | Pipe out more verbose output to the shell | CORDOVA_VERBOSE | false |
| **team_id** | The development team (Team ID) to use for code signing | CORDOVA_IOS_TEAM_ID | *28323HT* |
| **provisioning_profile** | GUID of the provisioning profile to be used for signing | CORDOVA_IOS_PROVISIONING_PROFILE | |
| **keystore_path** | Path to the Keystore for Android | CORDOVA_ANDROID_KEYSTORE_PATH | |
Expand Down
11 changes: 11 additions & 0 deletions lib/fastlane/plugin/ionic/actions/ionic_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def self.build(params)
args << '--device' if params[:device]
args << '--prod' if params[:prod]
args << '--browserify' if params[:browserify]
args << '--verbose' if params[:verbose]

if !params[:cordova_build_config_file].to_s.empty?
args << "--buildConfig=#{Shellwords.escape(params[:cordova_build_config_file])}"
Expand Down Expand Up @@ -213,6 +214,16 @@ def self.available_options
UI.user_error!("Valid options are development, enterprise, adhoc, and appstore.") unless ['development', 'enterprise', 'adhoc', 'appstore', 'ad-hoc', 'app-store'].include? value
end
),
FastlaneCore::ConfigItem.new(
key: :verbose,
env_name: "CORDOVA_VERBOSE",
description: "Pipe out more verbose output to the shell",
default_value: false,
is_string: false,
verify_block: proc do |value|
UI.user_error!("Verbose should be boolean") unless [false, true].include? value
end
),
FastlaneCore::ConfigItem.new(
key: :team_id,
env_name: "CORDOVA_IOS_TEAM_ID",
Expand Down

0 comments on commit 04abaa3

Please sign in to comment.