fastlane-plugin-wpmreleasetoolkit 7.0.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_update_metadata_source_action.rb +5 -5
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_validate_lib_strings_action.rb +17 -5
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_betabuild_prechecks.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_build_prechecks.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_hotfix.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_codefreeze_prechecks.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_completecodefreeze_prechecks.rb +4 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_create_xml_release_notes.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_download_translations_action.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_finalize_prechecks.rb +4 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_hotfix_prechecks.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_tag_build.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_trigger_build_action.rb +10 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/check_for_toolkit_updates_action.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/check_translation_progress.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/create_new_milestone_action.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/create_release_action.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/extract_release_notes_for_version_action.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/get_prs_list_action.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/gp_downloadmetadata_action.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/gp_update_metadata_source.rb +5 -5
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/setfrozentag_action.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_apply_action.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_update_action.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/add_development_certificates_to_provisioning_profiles.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/add_devices_to_provisioning_profiles.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_betabuild_prechecks.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_build_prechecks.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_build_preflight.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_hotfix.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_check_beta_deps.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_clear_intermediate_tags.rb +15 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_codefreeze_prechecks.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_completecodefreeze_prechecks.rb +4 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_download_strings_files_from_glotpress.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_extract_keys_from_strings_files.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb +15 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_finalize_prechecks.rb +4 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_generate_strings_file_from_code.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb +54 -0
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_version.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_hotfix_prechecks.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_lint_localizations.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_update_metadata_source.rb +2 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_update_release_notes.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/an_metadata_update_helper.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_git_helper.rb +5 -6
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_localize_helper.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_version_helper.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/git_helper.rb +21 -9
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/glotpress_helper.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_git_helper.rb +7 -7
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_l10n_linter_helper.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata_download_helper.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata_update_helper.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/promo_screenshots_helper.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/version.rb +1 -1
- metadata +5 -4
@@ -4,9 +4,9 @@ module Fastlane
|
|
4
4
|
# Helper methods to execute git-related operations that are specific to iOS projects
|
5
5
|
#
|
6
6
|
module GitHelper
|
7
|
-
# Commit
|
7
|
+
# Commit the files that are modified when we bump version numbers on an iOS project
|
8
8
|
#
|
9
|
-
# This typically commits
|
9
|
+
# This typically commits:
|
10
10
|
# - The files in `./config/*` – especially `Version.*.xcconfig` files
|
11
11
|
# - The `fastlane/Deliverfile` file (which contains the `app_version` line)
|
12
12
|
# - The `<ProjectRoot>/<ProjectName>/Resources/AppStoreStrings.pot` file, containing a key for that version's release notes
|
@@ -25,10 +25,10 @@ module Fastlane
|
|
25
25
|
files_list.append File.join(ENV['PROJECT_ROOT_FOLDER'], ENV['PROJECT_NAME'], 'Resources', ENV['APP_STORE_STRINGS_FILE_NAME'])
|
26
26
|
end
|
27
27
|
|
28
|
-
Fastlane::Helper::GitHelper.commit(message: 'Bump version number', files: files_list
|
28
|
+
Fastlane::Helper::GitHelper.commit(message: 'Bump version number', files: files_list)
|
29
29
|
end
|
30
30
|
|
31
|
-
# Calls the `Scripts/localize.py` script in the project root folder and
|
31
|
+
# Calls the `Scripts/localize.py` script in the project root folder and commit the `*.strings` files
|
32
32
|
#
|
33
33
|
# That script updates the `.strings` files with translations from GlotPress.
|
34
34
|
#
|
@@ -42,7 +42,7 @@ module Fastlane
|
|
42
42
|
def self.localize_project
|
43
43
|
Action.sh("cd #{get_from_env!(key: 'PROJECT_ROOT_FOLDER')} && ./Scripts/localize.py")
|
44
44
|
|
45
|
-
Fastlane::Helper::GitHelper.commit(message: 'Update strings for localization', files: strings_files
|
45
|
+
Fastlane::Helper::GitHelper.commit(message: 'Update strings for localization', files: strings_files) || UI.message('No new strings, skipping commit')
|
46
46
|
end
|
47
47
|
|
48
48
|
# Call the `Scripts/update-translations.rb` then the `fastlane/download_metadata` Scripts from the host project folder
|
@@ -56,11 +56,11 @@ module Fastlane
|
|
56
56
|
def self.update_metadata
|
57
57
|
Action.sh("cd #{get_from_env!(key: 'PROJECT_ROOT_FOLDER')} && ./Scripts/update-translations.rb")
|
58
58
|
|
59
|
-
Fastlane::Helper::GitHelper.commit(message: 'Update translations', files: strings_files
|
59
|
+
Fastlane::Helper::GitHelper.commit(message: 'Update translations', files: strings_files)
|
60
60
|
|
61
61
|
Action.sh('cd fastlane && ./download_metadata.swift')
|
62
62
|
|
63
|
-
Fastlane::Helper::GitHelper.commit(message: 'Update metadata translations', files: './fastlane/metadata/'
|
63
|
+
Fastlane::Helper::GitHelper.commit(message: 'Update metadata translations', files: './fastlane/metadata/')
|
64
64
|
end
|
65
65
|
|
66
66
|
def self.strings_files
|
@@ -48,7 +48,7 @@ module Fastlane
|
|
48
48
|
extracted_dir = File.join(tmpdir, "swiftgen-#{version}")
|
49
49
|
Action.sh('unzip', zipfile, '-d', extracted_dir)
|
50
50
|
|
51
|
-
FileUtils.rm_rf(install_path)
|
51
|
+
FileUtils.rm_rf(install_path)
|
52
52
|
FileUtils.mkdir_p(install_path)
|
53
53
|
FileUtils.cp_r("#{extracted_dir}/.", install_path)
|
54
54
|
end
|
@@ -79,7 +79,7 @@ module Fastlane
|
|
79
79
|
file_path = get_target_file_path(locale, file_name)
|
80
80
|
|
81
81
|
dir_path = File.dirname(file_path)
|
82
|
-
FileUtils.mkdir_p(dir_path)
|
82
|
+
FileUtils.mkdir_p(dir_path)
|
83
83
|
|
84
84
|
File.open(file_path, 'w') { |file| file.puts(content) }
|
85
85
|
end
|
@@ -88,7 +88,7 @@ module Fastlane
|
|
88
88
|
def delete_existing_metadata(target_locale)
|
89
89
|
@target_files.each do |file|
|
90
90
|
file_path = get_target_file_path(target_locale, file[1][:desc])
|
91
|
-
|
91
|
+
FileUtils.rm_f(file_path)
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
@@ -24,7 +24,7 @@ module Fastlane
|
|
24
24
|
if $skip_magick
|
25
25
|
message = "PromoScreenshots feature is currently disabled.\n"
|
26
26
|
message << "Please, install RMagick if you aim to generate the PromoScreenshots.\n"
|
27
|
-
message << "
|
27
|
+
message << "'bundle install --with screenshots' should do it if your project is configured for PromoScreenshots.\n"
|
28
28
|
message << 'Aborting.'
|
29
29
|
UI.user_error!(message)
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-wpmreleasetoolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 8.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Automattic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '5.6'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '5.6'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: parallel
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -450,6 +450,7 @@ files:
|
|
450
450
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_finalize_prechecks.rb
|
451
451
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_generate_strings_file_from_code.rb
|
452
452
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb
|
453
|
+
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb
|
453
454
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_version.rb
|
454
455
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_store_app_sizes.rb
|
455
456
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_hotfix_prechecks.rb
|