From 242f65eab74cde2f8a22fb8163f2b0a7ce116fdf Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Sat, 5 Oct 2019 22:06:47 +0200 Subject: [PATCH 1/2] Add --verbose option --- lib/fastlane/plugin/ionic/actions/ionic_action.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/fastlane/plugin/ionic/actions/ionic_action.rb b/lib/fastlane/plugin/ionic/actions/ionic_action.rb index 1adfe23..6f6395b 100644 --- a/lib/fastlane/plugin/ionic/actions/ionic_action.rb +++ b/lib/fastlane/plugin/ionic/actions/ionic_action.rb @@ -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])}" @@ -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", From d70ea29a5a53161521cfe08b015096f44bc459d6 Mon Sep 17 00:00:00 2001 From: Robin Genz Date: Sat, 5 Oct 2019 22:40:03 +0200 Subject: [PATCH 2/2] Update README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 17a9520..39d73f5 100644 --- a/README.md +++ b/README.md @@ -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.
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 | |