Fix names filter

This commit is contained in:
Vlad 2020-12-14 11:58:58 +03:00
parent 2712da9b89
commit a5f2b49a51
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ private_lane :uploadFeaturesToProject do |options|
project_features_file_path = File.expand_path "../#{app_target_folder_name}/Resources/Features.json"
common_features_file_path = File.expand_path "../common/build_options/Features.yaml"
builder_features_list = options[:features].split(",").map { |feature_name| feature_name.strip } # [ "Feature1", "Feature2", "Feature3" ]
builder_features_list = options[:features]
.split(",").map { |feature_name| feature_name.strip } # [ "Feature1", "Feature2", "Feature3" ]
.reject { |feature_name| feature_name.empty? }
Touchlane::Features.generate_features_file_in_project(builder_features_list, common_features_file_path, project_features_file_path)
end