Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --verbose option #59

Merged
merged 2 commits into from
May 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -100,6 +100,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 @@ -214,6 +215,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