Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 0d28cd8

Browse files
committed
Added report lane and fixed some errors from recent changes.
1 parent 5a497ce commit 0d28cd8

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

fastlane/Fastfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ lane :validate do
4141
)
4242
end
4343

44+
lane :report do
45+
branch_report workspace: "examples/BranchPluginExample/BranchPluginExample.xcworkspace",
46+
header_only: true
47+
end
48+
4449
desc "Update the README in this repo"
4550
lane :readme do
4651
updated_dox = update_readme

lib/fastlane/plugin/branch/actions/branch_report_action.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Actions
99
class BranchReportAction < Action
1010
def self.run(params)
1111
config = BranchIOCLI::Configuration::ReportConfiguration.wrapper params, false
12-
BranchIOCLI::Commands::ReportCommand.new(config).run!
12+
BranchIOCLI::Command::ReportCommand.new(config).run!
1313
rescue StandardError => e
1414
UI.user_error! "Error in BranchReportAction: #{e.message}\n#{e.backtrace}"
1515
end

lib/fastlane/plugin/branch/actions/setup_branch_action.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def self.run(params)
1111
params.load_configuration_file "Branchfile"
1212
# second arg false: Don't add default values or env. vars. Let Fastlane
1313
# handle that. This is necessary to work with the Branchfile.
14-
config = BranchIOCLI::Configuration::SetupConfiguration.wrapper params, false
15-
BranchIOCLI::Commands::SetupCommand.new(config).run!
14+
config = BranchIOCLI::Configuration::Configuration.wrapper params, false
15+
BranchIOCLI::Command::SetupCommand.new(config).run!
1616
rescue StandardError => e
1717
UI.user_error! "Error in SetupBranchAction: #{e.message}\n#{e.backtrace}"
1818
end

lib/fastlane/plugin/branch/actions/validate_universal_links_action.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Actions
99
class ValidateUniversalLinksAction < Action
1010
def self.run(params)
1111
config = BranchIOCLI::Configuration::ValidateConfiguration.wrapper params, false
12-
BranchIOCLI::Commands::ValidateCommand.new(config).run! == 0
12+
BranchIOCLI::Command::ValidateCommand.new(config).run! == 0
1313
rescue StandardError => e
1414
UI.user_error! "Error in ValidateUniversalLinksAction: #{e.message}\n#{e.backtrace}"
1515
false

lib/fastlane/plugin/branch/config_item.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ def from_branch_option(option)
77
env_name: option.env_name,
88
description: option.description,
99
default_value: option.default_value,
10-
type: option.type
10+
type: option.type,
11+
is_string: option.type == String,
12+
optional: true
1113
)
1214
end
1315
end

0 commit comments

Comments
 (0)