fastlane-plugin-wpmreleasetoolkit 12.4.0 → 12.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_localize_libs_action.rb +2 -0
  3. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_update_metadata_source_action.rb +2 -0
  4. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_validate_lib_strings_action.rb +2 -0
  5. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_build_preflight.rb +2 -0
  6. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_create_avd_action.rb +2 -0
  7. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_create_xml_release_notes.rb +2 -0
  8. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb +2 -0
  9. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_download_file_by_version.rb +2 -0
  10. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_download_translations_action.rb +2 -0
  11. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_firebase_test.rb +2 -0
  12. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_launch_emulator_action.rb +2 -0
  13. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_send_app_size_metrics.rb +7 -5
  14. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_shutdown_emulator_action.rb +2 -0
  15. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb +2 -0
  16. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_annotate_action.rb +2 -0
  17. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_metadata_action.rb +2 -0
  18. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_pipeline_upload_action.rb +3 -1
  19. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_trigger_build_action.rb +2 -0
  20. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/check_for_toolkit_updates_action.rb +3 -1
  21. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/check_translation_progress.rb +2 -0
  22. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/circleci_trigger_job_action.rb +2 -0
  23. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/close_milestone_action.rb +2 -0
  24. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/comment_on_pr.rb +2 -0
  25. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/copy_branch_protection_action.rb +2 -0
  26. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/create_github_release_action.rb +2 -0
  27. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/create_new_milestone_action.rb +2 -0
  28. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/create_release_backmerge_pull_request_action.rb +3 -1
  29. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/extract_release_notes_for_version_action.rb +2 -0
  30. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/find_previous_tag.rb +2 -0
  31. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/firebase_login.rb +2 -0
  32. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/get_prs_between_tags.rb +2 -0
  33. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/gp_downloadmetadata_action.rb +2 -0
  34. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/gp_update_metadata_source.rb +2 -0
  35. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/openai_ask_action.rb +3 -1
  36. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/promo_screenshots_action.rb +2 -0
  37. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb +4 -2
  38. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/publish_github_release_action.rb +2 -0
  39. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/remove_branch_protection_action.rb +2 -0
  40. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/set_branch_protection_action.rb +2 -0
  41. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/set_milestone_frozen_marker_action.rb +2 -0
  42. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/update_assigned_milestone_action.rb +2 -0
  43. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/upload_to_s3.rb +2 -0
  44. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_add_files_to_copy_action.rb +2 -0
  45. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_apply_action.rb +2 -0
  46. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_download_action.rb +2 -0
  47. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_setup_action.rb +2 -0
  48. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_update_action.rb +2 -0
  49. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_validate_action.rb +2 -0
  50. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/add_development_certificates_to_provisioning_profiles.rb +2 -0
  51. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/add_devices_to_provisioning_profiles.rb +2 -0
  52. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_build_preflight.rb +2 -0
  53. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_check_beta_deps.rb +5 -3
  54. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_download_strings_files_from_glotpress.rb +2 -0
  55. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_extract_keys_from_strings_files.rb +2 -0
  56. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_generate_strings_file_from_code.rb +2 -0
  57. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_store_app_sizes.rb +2 -0
  58. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_lint_localizations.rb +14 -3
  59. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_merge_strings_files.rb +2 -0
  60. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_send_app_size_metrics.rb +5 -3
  61. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_update_metadata_source.rb +2 -0
  62. data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_update_release_notes.rb +2 -0
  63. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_emulator_helper.rb +2 -0
  64. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_localize_helper.rb +3 -1
  65. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_tools_path_helper.rb +2 -0
  66. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_version_helper.rb +6 -4
  67. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/app_size_metrics_helper.rb +2 -0
  68. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ci_helper.rb +2 -0
  69. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb +2 -0
  70. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/encryption_helper.rb +5 -7
  71. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/filesystem_helper.rb +2 -0
  72. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/git_helper.rb +3 -1
  73. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/github_helper.rb +2 -0
  74. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/glotpress_helper.rb +2 -0
  75. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/interactive_prompt_reminder.rb +3 -1
  76. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_adc_app_sizes_helper.rb +2 -0
  77. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_l10n_helper.rb +2 -0
  78. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_l10n_linter_helper.rb +12 -8
  79. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_strings_file_validation_helper.rb +3 -1
  80. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_version_helper.rb +2 -0
  81. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/metadata_block.rb +2 -0
  82. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/release_note_metadata_block.rb +2 -0
  83. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/release_note_short_metadata_block.rb +2 -0
  84. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/standard_metadata_block.rb +2 -0
  85. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/unknown_metadata_block.rb +2 -0
  86. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata/whats_new_metadata_block.rb +2 -0
  87. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata_download_helper.rb +2 -0
  88. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/promo_screenshots_helper.rb +2 -0
  89. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/release_notes_helper.rb +2 -0
  90. data/lib/fastlane/plugin/wpmreleasetoolkit/helper/user_agent.rb +3 -1
  91. data/lib/fastlane/plugin/wpmreleasetoolkit/models/app_version.rb +2 -0
  92. data/lib/fastlane/plugin/wpmreleasetoolkit/models/build_code.rb +2 -0
  93. data/lib/fastlane/plugin/wpmreleasetoolkit/models/configuration.rb +2 -0
  94. data/lib/fastlane/plugin/wpmreleasetoolkit/models/file_reference.rb +2 -0
  95. data/lib/fastlane/plugin/wpmreleasetoolkit/models/firebase_account.rb +2 -0
  96. data/lib/fastlane/plugin/wpmreleasetoolkit/models/firebase_device.rb +2 -0
  97. data/lib/fastlane/plugin/wpmreleasetoolkit/models/firebase_test_lab_result.rb +2 -0
  98. data/lib/fastlane/plugin/wpmreleasetoolkit/models/firebase_test_runner.rb +2 -0
  99. data/lib/fastlane/plugin/wpmreleasetoolkit/version.rb +1 -1
  100. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/calculators/abstract_version_calculator.rb +2 -0
  101. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/calculators/date_build_code_calculator.rb +2 -0
  102. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/calculators/date_version_calculator.rb +2 -0
  103. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/calculators/marketing_version_calculator.rb +2 -0
  104. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/calculators/semantic_version_calculator.rb +2 -0
  105. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/calculators/simple_build_code_calculator.rb +2 -0
  106. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/files/android_version_file.rb +2 -0
  107. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/files/ios_version_file.rb +2 -0
  108. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/formatters/abstract_version_formatter.rb +2 -0
  109. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/formatters/derived_build_code_formatter.rb +2 -0
  110. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/formatters/four_part_build_code_formatter.rb +2 -0
  111. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/formatters/four_part_version_formatter.rb +2 -0
  112. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/formatters/rc_notation_version_formatter.rb +3 -1
  113. data/lib/fastlane/plugin/wpmreleasetoolkit/versioning/formatters/simple_build_code_formatter.rb +2 -0
  114. data/lib/fastlane/plugin/wpmreleasetoolkit.rb +2 -0
  115. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4cdbaa88428a89afebe8e5ccddc35bc4ebce263ae07caa40598fc54bec24fca
4
- data.tar.gz: a16e7052eddb43d6f98aab25c51ad2628d702b54842f726ee4c1fde45003eb02
3
+ metadata.gz: 54ad163793f5102f88dd8a4a82408cd73bd5bb5d084354f4ea8d21f90cb994b5
4
+ data.tar.gz: 7d627bd253b7b2c9be0b990108caffb1a0b1a9056466afa98628fe4e27b79c2a
5
5
  SHA512:
6
- metadata.gz: 6c2999022ddf9da5acaaf1085344a31458a88c048daa6b3ef91350f8875fcdb94326d3c29335abcbab965eb507112cab0d45d3fb75fe826f01f2f185ee843857
7
- data.tar.gz: '08151bb5c92923d4733f0a3aa590c03a912dcc5378099482c8e2388334849d85e9fa2c826c5c69e13e985b31a2171b136daf4d6779f0d750ac2df54a9c2b9d76'
6
+ metadata.gz: 545ce35d03805a5deb7c30ed22e01f55106d0a8420a89a355f2ff8047ddddef2b433294da5a86d6a5c1ca460c0d3f1c08215396b637faa50d9aca7be5823c2f2
7
+ data.tar.gz: fc4d77d82c952c610f73c823d4b8548a83627ceac6ba79101e8a235e3851e16fefbc4bdd7f1c87cc0f89ee68194b95c4570bb798923006aa1121de66b57ca6ab
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/android/android_localize_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/metadata/release_note_metadata_block'
3
5
  require_relative '../../helper/metadata/release_note_short_metadata_block'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/android/android_localize_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class AndroidBuildPreflightAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class AndroidCreateAvdAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class AndroidCreateXmlReleaseNotesAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  module SharedValues
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class AndroidDownloadFileByVersionAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # This action is the new version of android_update_metadata (AndroidUpdateMetadataAction) and should now be used instead of that one
2
4
 
3
5
  module Fastlane
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'securerandom'
2
4
 
3
5
  module Fastlane
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class AndroidLaunchEmulatorAction < Action
@@ -1,14 +1,16 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative '../../helper/app_size_metrics_helper'
2
4
 
3
5
  module Fastlane
4
6
  module Actions
5
7
  class AndroidSendAppSizeMetricsAction < Action
6
8
  # Keys used by the metrics payload
7
- AAB_FILE_SIZE_KEY = 'AAB File Size'.freeze # value from `File.size` of the `.aab`
8
- UNIVERSAL_APK_FILE_SIZE_KEY = 'Universal APK File Size'.freeze # value from `File.size` of the Universal `.apk`
9
- UNIVERSAL_APK_SPLIT_NAME = 'Universal'.freeze # pseudo-name of the split representing the Universal `.apk`
10
- APK_OPTIMIZED_FILE_SIZE_KEY = 'Optimized APK File Size'.freeze # value from `apkanalyzer apk file-size`
11
- APK_OPTIMIZED_DOWNLOAD_SIZE_KEY = 'Download Size'.freeze # value from `apkanalyzer apk download-size`
9
+ AAB_FILE_SIZE_KEY = 'AAB File Size' # value from `File.size` of the `.aab`
10
+ UNIVERSAL_APK_FILE_SIZE_KEY = 'Universal APK File Size' # value from `File.size` of the Universal `.apk`
11
+ UNIVERSAL_APK_SPLIT_NAME = 'Universal' # pseudo-name of the split representing the Universal `.apk`
12
+ APK_OPTIMIZED_FILE_SIZE_KEY = 'Optimized APK File Size' # value from `apkanalyzer apk file-size`
13
+ APK_OPTIMIZED_DOWNLOAD_SIZE_KEY = 'Download Size' # value from `apkanalyzer apk download-size`
12
14
 
13
15
  def self.run(params)
14
16
  # Check input parameters
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class AndroidShutdownEmulatorAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class AndroidUpdateReleaseNotesAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class BuildkiteAnnotateAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class BuildkiteMetadataAction < Action
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class BuildkitePipelineUploadAction < Action
4
- DEFAULT_BUILDKITE_PIPELINE_FOLDER = '.buildkite'.freeze
6
+ DEFAULT_BUILDKITE_PIPELINE_FOLDER = '.buildkite'
5
7
  DEFAULT_ENV_FILE = File.join(DEFAULT_BUILDKITE_PIPELINE_FOLDER, 'shared-pipeline-vars').freeze
6
8
 
7
9
  def self.run(params)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class BuildkiteTriggerBuildAction < Action
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'rubygems/command_manager'
3
5
 
4
6
  module Fastlane
5
7
  module Actions
6
8
  class CheckForToolkitUpdatesAction < Action
7
- TOOLKIT_SPEC_NAME = 'fastlane-plugin-wpmreleasetoolkit'.freeze
9
+ TOOLKIT_SPEC_NAME = 'fastlane-plugin-wpmreleasetoolkit'
8
10
 
9
11
  def self.run(params)
10
12
  updater = Gem::CommandManager.instance[:update]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class CheckTranslationProgressAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class CircleciTriggerJobAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'date'
3
5
  require_relative '../../helper/github_helper'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
 
3
5
  module Fastlane
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/github_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'date'
3
5
  require_relative '../../helper/github_helper'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'date'
3
5
  require_relative '../../helper/github_helper'
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/github_helper'
3
5
 
4
6
  module Fastlane
5
7
  module Actions
6
8
  class CreateReleaseBackmergePullRequestAction < Action
7
- DEFAULT_BRANCH = 'trunk'.freeze
9
+ DEFAULT_BRANCH = 'trunk'
8
10
 
9
11
  def self.run(params)
10
12
  token = params[:github_token]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
 
3
5
  module Fastlane
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/github_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'securerandom'
2
4
 
3
5
  module Fastlane
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/github_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/metadata_download_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative '../../helper/metadata/release_note_metadata_block'
2
4
  require_relative '../../helper/metadata/release_note_short_metadata_block'
3
5
  require_relative '../../helper/metadata/whats_new_metadata_block'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'net/http'
3
5
  require 'json'
@@ -8,7 +10,7 @@ module Fastlane
8
10
  OPENAI_API_ENDPOINT = URI('https://api.openai.com/v1/chat/completions').freeze
9
11
 
10
12
  PREDEFINED_PROMPTS = {
11
- release_notes: <<~PROMPT.freeze
13
+ release_notes: <<~PROMPT
12
14
  Act like a mobile app marketer who wants to prepare release notes for Google Play and App Store.
13
15
  Do not write it point by point and keep it under 350 characters. It should be a unique paragraph.
14
16
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fileutils'
2
4
  require 'fastlane/action'
3
5
  require 'active_support/all'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class PrototypeBuildDetailsCommentAction < Action
@@ -36,13 +38,13 @@ module Fastlane
36
38
  # @!group Helpers
37
39
  #####################################################
38
40
 
39
- NO_INSTALL_URL_ERROR_MESSAGE = <<~NO_URL_ERROR.freeze
41
+ NO_INSTALL_URL_ERROR_MESSAGE = <<~NO_URL_ERROR
40
42
  No URL provided to download or install the app.
41
43
  - Either use this action right after using `appcenter_upload` and provide an `app_center_org_name` (so that this action can use the link to the App Center build)
42
44
  - Or provide an explicit value for the `download_url` parameter
43
45
  NO_URL_ERROR
44
46
 
45
- DEFAULT_APP_CENTER_FOOTNOTE = '<em>Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.</em>'.freeze
47
+ DEFAULT_APP_CENTER_FOOTNOTE = '<em>Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.</em>'
46
48
 
47
49
  # A small model struct to consolidate and pack all the values related to App Center
48
50
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/github_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/github_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/github_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/github_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require_relative '../../helper/github_helper'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'digest/sha1'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'fastlane_core/ui/ui'
3
5
  require 'fileutils'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'fastlane_core/ui/ui'
3
5
  require 'fileutils'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'fastlane_core/ui/ui'
3
5
  require 'fileutils'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'fastlane_core/ui/ui'
3
5
  require 'fileutils'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'fastlane_core/ui/ui'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane/action'
2
4
  require 'fastlane_core/ui/ui'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class AddDevelopmentCertificatesToProvisioningProfilesAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class AddAllDevicesToProvisioningProfilesAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class IosBuildPreflightAction < Action
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'yaml'
2
4
 
3
5
  module Fastlane
4
6
  module Actions
5
7
  class IosCheckBetaDepsAction < Action
6
- ALL_PODS_STABLE_MESSAGE = 'All pods are pointing to a stable version. You can continue with the code freeze.'.freeze
7
- NON_STABLE_PODS_MESSAGE = "Please create a new stable version of those pods and update the Podfile to the newly released version before continuing with the code freeze:\n".freeze
8
+ ALL_PODS_STABLE_MESSAGE = 'All pods are pointing to a stable version. You can continue with the code freeze.'
9
+ NON_STABLE_PODS_MESSAGE = "Please create a new stable version of those pods and update the Podfile to the newly released version before continuing with the code freeze:\n"
8
10
 
9
11
  def self.run(params)
10
12
  yaml = YAML.load_file(params[:lockfile])
@@ -31,7 +33,7 @@ module Fastlane
31
33
  end
32
34
  end
33
35
 
34
- message = ''
36
+ message = String.new
35
37
  if non_stable_pods.empty?
36
38
  message << ALL_PODS_STABLE_MESSAGE
37
39
  else
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class IosDownloadStringsFilesFromGlotpressAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class IosExtractKeysFromStringsFilesAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class IosGenerateStringsFileFromCodeAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative '../../helper/ios/ios_adc_app_sizes_helper'
2
4
 
3
5
  module Fastlane
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class IosLintLocalizationsAction < Action
@@ -35,7 +37,8 @@ module Fastlane
35
37
  helper.run(
36
38
  input_dir: resolve_path(params[:input_dir]),
37
39
  base_lang: params[:base_lang],
38
- only_langs: params[:only_langs]
40
+ only_langs: params[:only_langs],
41
+ fail_on_strings_not_in_base_language: params[:fail_on_strings_not_in_base_language]
39
42
  )
40
43
  end
41
44
 
@@ -68,7 +71,7 @@ module Fastlane
68
71
  duplicate_keys
69
72
  end
70
73
 
71
- RETRY_MESSAGE = <<~MSG.freeze
74
+ RETRY_MESSAGE = <<~MSG
72
75
  Inconsistencies found during Localization linting.
73
76
  You need to fix them before continuing. From this point on, you should either:
74
77
 
@@ -91,7 +94,7 @@ module Fastlane
91
94
  Did you fix the `.strings` files locally and want to lint them again?
92
95
  MSG
93
96
 
94
- ABORT_MESSAGE = <<~MSG.freeze
97
+ ABORT_MESSAGE = <<~MSG
95
98
  Inconsistencies found during Localization linting. Aborting.
96
99
  MSG
97
100
 
@@ -181,6 +184,14 @@ module Fastlane
181
184
  default_value: true,
182
185
  type: Boolean
183
186
  ),
187
+ FastlaneCore::ConfigItem.new(
188
+ key: :fail_on_strings_not_in_base_language,
189
+ env_name: 'FL_IOS_LINT_TRANSLATIONS_FAIL_ON_STRINGS_NOT_IN_BASE_LANGUAGE',
190
+ description: 'Should we report violations when finding strings in translations that are not present in the base language',
191
+ optional: true,
192
+ default_value: true,
193
+ type: Boolean
194
+ ),
184
195
  ]
185
196
  end
186
197
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class IosMergeStringsFilesAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'plist'
2
4
  require_relative '../../helper/app_size_metrics_helper'
3
5
 
@@ -5,9 +7,9 @@ module Fastlane
5
7
  module Actions
6
8
  class IosSendAppSizeMetricsAction < Action
7
9
  # Keys used by the metrics payload
8
- IPA_FILE_SIZE_KEY = 'File Size'.freeze # value from `File.size` of the Universal `.ipa`
9
- IPA_DOWNLOAD_SIZE_KEY = 'Download Size'.freeze # value from `app-thinning.plist`
10
- IPA_INSTALL_SIZE_KEY = 'Install Size'.freeze # value from `app-thinning.plist`
10
+ IPA_FILE_SIZE_KEY = 'File Size' # value from `File.size` of the Universal `.ipa`
11
+ IPA_DOWNLOAD_SIZE_KEY = 'Download Size' # value from `app-thinning.plist`
12
+ IPA_INSTALL_SIZE_KEY = 'Install Size' # value from `app-thinning.plist`
11
13
 
12
14
  def self.run(params)
13
15
  # Check input parameters
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class IosUpdateMetadataSourceAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Actions
3
5
  class IosUpdateReleaseNotesAction < Action
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Fastlane
2
4
  module Helper
3
5
  module Android
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane_core/ui/ui'
2
4
  require 'fileutils'
3
5
  require 'nokogiri'
@@ -9,7 +11,7 @@ module Fastlane
9
11
  module Helper
10
12
  module Android
11
13
  module LocalizeHelper
12
- LIB_SOURCE_XML_ATTR = 'a8c-src-lib'.freeze
14
+ LIB_SOURCE_XML_ATTR = 'a8c-src-lib'
13
15
 
14
16
  # Checks if `string_node` has the `content_override` flag set
15
17
  def self.skip_string_by_tag?(string_node)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastlane_core/ui/ui'
2
4
 
3
5
  module Fastlane