Fix PR
This commit is contained in:
parent
52c61b3f2e
commit
545f8d4c2f
|
|
@ -107,22 +107,6 @@ private_lane :addShield do |options|
|
|||
end
|
||||
end
|
||||
|
||||
private_lane :generateFeaturesFile do |options|
|
||||
app_target_folder_name = options[:appName] || $appName
|
||||
|
||||
project_features_file_path = File.expand_path "../#{app_target_folder_name}/Resources/Features/Features.json"
|
||||
build_settings_file_path = File.expand_path "../common/build_settings.yaml"
|
||||
|
||||
builder_features_list = options[:features]
|
||||
.split(",").map { |feature_name| feature_name.strip } # [ "Feature1", "Feature2", "Feature3" ]
|
||||
|
||||
build_settings_features_list = Managers::FileManager.load_from_file_YAML(build_settings_file_path)["features"]
|
||||
|
||||
features_hash = Touchlane::Features.generate_features_hash(builder_features_list, build_settings_features_list)
|
||||
|
||||
Managers::FileManager.save_data_to_file_in_json(project_features_file_path, features_hash)
|
||||
end
|
||||
|
||||
private_lane :buildConfiguration do |options|
|
||||
appName = options[:appName] || $appName
|
||||
|
||||
|
|
@ -418,6 +402,22 @@ def get_google_services_plist_path(app_target_folder_name, configuration_type)
|
|||
File.expand_path "../#{app_target_folder_name}/Resources/#{configuration_type.prefix}-GoogleService-Info.plist"
|
||||
end
|
||||
|
||||
def generateFeaturesFile(options)
|
||||
app_target_folder_name = options[:appName] || $appName
|
||||
|
||||
project_features_file_path = File.expand_path "../#{app_target_folder_name}/Resources/Features/Features.json"
|
||||
build_settings_file_path = File.expand_path "../common/build_settings.yaml"
|
||||
|
||||
builder_features_list = options[:features]
|
||||
.split(",").map { |feature_name| feature_name.strip } # [ "Feature1", "Feature2", "Feature3" ]
|
||||
|
||||
build_settings_features_list = Managers::FileManager.load_from_file_YAML(build_settings_file_path)["features"]
|
||||
|
||||
features_hash = Touchlane::Features.generate_features_hash(builder_features_list, build_settings_features_list)
|
||||
|
||||
Managers::FileManager.save_data_to_file_in_json(project_features_file_path, features_hash)
|
||||
end
|
||||
|
||||
def set_xcconfig_for_configuration_of_project(lane_name, configuration, xcodeproj_path)
|
||||
require 'xcodeproj'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue