Skip to content

Commit b42e97d

Browse files
committed
Remove usages of download_metadata.swift
1 parent 1eb1a2b commit b42e97d

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_git_helper.rb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ module GitHelper
1515
# @env PROJECT_NAME The name of the directory containing the project code (especially containing the Resources/ subfolder)
1616
#
1717
# @param [Bool] include_deliverfile If true (the default), includes the `fastlane/Deliverfile` in files being commited
18-
# @param [Bool] include_metadata If true (the default), includes the `fastlane/download_metadata.swift` file and the `.pot` file (which typically contains an entry or release notes for the new version)
18+
# @param [Bool] include_metadata If true (the default), includes the `.pot` file (which typically contains an entry or release notes for the new version)
1919
#
2020
def self.commit_version_bump(include_deliverfile: true, include_metadata: true)
2121
files_list = [File.join(get_project_root(), 'config', '.')]
2222
files_list.append File.join('fastlane', 'Deliverfile') if include_deliverfile
2323
if include_metadata
24-
files_list.append File.join('fastlane', 'download_metadata.swift')
2524
files_list.append File.join(get_project_root(), get_project_name(), 'Resources', get_from_env!(key: 'APP_STORE_STRINGS_FILE_NAME'))
2625
end
2726

@@ -45,7 +44,7 @@ def self.localize_project
4544
Fastlane::Helper::GitHelper.commit(message: 'Update strings for localization', files: strings_files, push: true) || UI.message('No new strings, skipping commit')
4645
end
4746

48-
# Call the `Scripts/update-translations.rb` then the `fastlane/download_metadata` Scripts from the host project folder
47+
# Call the `Scripts/update-translations.rb` script from the host project folder
4948
#
5049
# @env PROJECT_ROOT_FOLDER The path to the git root of the project
5150
# @env PROJECT_NAME The name of the directory containing the project code (especially containing the `build.gradle` file)
@@ -57,10 +56,6 @@ def self.update_metadata
5756
Action.sh("cd #{get_project_root()} && ./Scripts/update-translations.rb")
5857

5958
Fastlane::Helper::GitHelper.commit(message: 'Update translations', files: strings_files, push: false)
60-
61-
Action.sh('cd fastlane && ./download_metadata.swift')
62-
63-
Fastlane::Helper::GitHelper.commit(message: 'Update metadata translations', files: './fastlane/metadata/', push: true)
6459
end
6560

6661
def self.strings_files

spec/ios_git_helper_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
it 'commits and pushes the app version bump with deliver file and metadata' do
2828
expect(Fastlane::Helper::GitHelper).to receive(:commit) do |arg|
29-
expect_commited_files(files: arg[:files], names: %w[config Deliverfile Resources download_metadata.swift])
29+
expect_commited_files(files: arg[:files], names: %w[config Deliverfile Resources])
3030
end
3131

3232
described_class.commit_version_bump()
@@ -42,7 +42,7 @@
4242

4343
it 'commits and pushes the app version bump with metadata only' do
4444
expect(Fastlane::Helper::GitHelper).to receive(:commit) do |arg|
45-
expect_commited_files(files: arg[:files], names: %w[config Resources download_metadata.swift])
45+
expect_commited_files(files: arg[:files], names: %w[config Resources])
4646
end
4747

4848
described_class.commit_version_bump(include_deliverfile: false)

0 commit comments

Comments
 (0)