diff --git a/lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb b/lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb index 434226d9a..ee43e8958 100644 --- a/lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb +++ b/lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb @@ -193,7 +193,7 @@ def self.file_dependencies end end - self.files_to_copy.map { |o| o.file } + expanded_file_dependencies + files_to_copy.map { |o| o.file } + expanded_file_dependencies end ## If we specify a directory in `file_dependencies` instead of listing each file diff --git a/lib/fastlane/plugin/wpmreleasetoolkit/models/configuration.rb b/lib/fastlane/plugin/wpmreleasetoolkit/models/configuration.rb index ffad9e077..bbc41670b 100644 --- a/lib/fastlane/plugin/wpmreleasetoolkit/models/configuration.rb +++ b/lib/fastlane/plugin/wpmreleasetoolkit/models/configuration.rb @@ -29,11 +29,11 @@ def add_file_to_copy(source, destination, encrypt: false) def to_hash { - project_name: self.project_name, - branch: self.branch, - pinned_hash: self.pinned_hash, - files_to_copy: self.files_to_copy.map { |f| f.to_hash }, - file_dependencies: self.file_dependencies + project_name: project_name, + branch: branch, + pinned_hash: pinned_hash, + files_to_copy: files_to_copy.map { |f| f.to_hash }, + file_dependencies: file_dependencies } end end diff --git a/lib/fastlane/plugin/wpmreleasetoolkit/models/file_reference.rb b/lib/fastlane/plugin/wpmreleasetoolkit/models/file_reference.rb index 78b9ddf39..9874a183d 100644 --- a/lib/fastlane/plugin/wpmreleasetoolkit/models/file_reference.rb +++ b/lib/fastlane/plugin/wpmreleasetoolkit/models/file_reference.rb @@ -74,7 +74,7 @@ def encryption_key end def to_hash - { file: self.file, destination: self.destination, encrypt: self.encrypt } + { file: file, destination: destination, encrypt: encrypt } end end end