fastlane-plugin-wpmreleasetoolkit 9.4.0 → 10.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_localize_libs_action.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_update_metadata_source_action.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_validate_lib_strings_action.rb +1 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_betabuild_prechecks.rb +9 -24
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_build_prechecks.rb +8 -19
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_build_preflight.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_beta.rb +9 -21
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_final_release.rb +9 -21
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_hotfix.rb +6 -18
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_release.rb +8 -22
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_codefreeze_prechecks.rb +7 -20
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_completecodefreeze_prechecks.rb +5 -16
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb +5 -16
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_download_file_by_version.rb +2 -5
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_download_translations_action.rb +5 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_finalize_prechecks.rb +5 -16
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_firebase_test.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_alpha_version.rb +5 -16
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_app_version.rb +5 -16
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_get_release_version.rb +5 -16
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_tag_build.rb +6 -18
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_release_notes.rb +1 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/extract_release_notes_for_version_action.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/gp_update_metadata_source.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/promo_screenshots_action.rb +5 -5
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/remove_branch_protection_action.rb +0 -11
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/set_branch_protection_action.rb +0 -11
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/{setfrozentag_action.rb → set_milestone_frozen_marker_action.rb} +14 -18
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/{update_pull_requests_milestone_action.rb → update_assigned_milestone_action.rb} +31 -31
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/common/upload_to_s3.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_add_files_to_copy_action.rb +1 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_update_action.rb +5 -7
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_validate_action.rb +10 -12
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_betabuild_prechecks.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_build_prechecks.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_build_preflight.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_beta.rb +3 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_hotfix.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_release.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_check_beta_deps.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_codefreeze_prechecks.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_completecodefreeze_prechecks.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb +1 -1
- 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 +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_finalize_prechecks.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_generate_strings_file_from_code.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_number.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_build_version.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_store_app_sizes.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_hotfix_prechecks.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_lint_localizations.rb +3 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_merge_strings_files.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_send_app_size_metrics.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_tag_build.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_update_metadata_source.rb +5 -5
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_update_release_notes.rb +2 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_validate_ci_build.rb +2 -2
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_emulator_helper.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_git_helper.rb +0 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_localize_helper.rb +27 -27
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_version_helper.rb +29 -34
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb +20 -21
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/filesystem_helper.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/git_helper.rb +18 -8
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/github_helper.rb +8 -8
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/glotpress_helper.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/interactive_prompt_reminder.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_adc_app_sizes_helper.rb +7 -3
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_l10n_helper.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_l10n_linter_helper.rb +4 -4
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_version_helper.rb +11 -11
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/metadata_download_helper.rb +9 -5
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/promo_screenshots_helper.rb +14 -16
- data/lib/fastlane/plugin/wpmreleasetoolkit/models/configuration.rb +7 -7
- data/lib/fastlane/plugin/wpmreleasetoolkit/models/file_reference.rb +7 -7
- data/lib/fastlane/plugin/wpmreleasetoolkit/models/firebase_test_lab_result.rb +1 -1
- data/lib/fastlane/plugin/wpmreleasetoolkit/version.rb +1 -1
- metadata +14 -17
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_clear_intermediate_tags.rb +0 -72
- data/lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb +0 -64
- data/lib/fastlane/plugin/wpmreleasetoolkit/helper/deprecated.rb +0 -66
@@ -39,7 +39,7 @@ module Fastlane
|
|
39
39
|
# NOTE: While JSON is a subset of YAML and thus YAML.load_file would technically cover both cases at once, in practice
|
40
40
|
# `JSON.parse` is more lenient with JSON files than `YAML.load_file` is — especially, it accepts `// comments` in the
|
41
41
|
# JSON file, despite this not being allowed in the spec — hence why we still try with `JSON.parse` for `.json` files.
|
42
|
-
|
42
|
+
File.extname(config_file_path) == '.json' ? JSON.parse(File.read(config_file_path)) : YAML.load_file(config_file_path)
|
43
43
|
rescue StandardError => e
|
44
44
|
UI.error(e)
|
45
45
|
UI.user_error!('Invalid JSON/YAML configuration. Please lint your config file to check for syntax errors.')
|
@@ -191,7 +191,7 @@ module Fastlane
|
|
191
191
|
end
|
192
192
|
end
|
193
193
|
|
194
|
-
|
194
|
+
canvas
|
195
195
|
end
|
196
196
|
|
197
197
|
def draw_file_attachment_to_canvas(attachment, canvas, entry)
|
@@ -397,7 +397,7 @@ module Fastlane
|
|
397
397
|
end
|
398
398
|
|
399
399
|
def create_image(width, height, background = 'transparent')
|
400
|
-
|
400
|
+
background.paint.to_hex
|
401
401
|
|
402
402
|
Image.new(width, height) do
|
403
403
|
self.background_color = background
|
@@ -405,12 +405,10 @@ module Fastlane
|
|
405
405
|
end
|
406
406
|
|
407
407
|
def can_resolve_path(path)
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
return false
|
413
|
-
end
|
408
|
+
resolve_path(path)
|
409
|
+
true
|
410
|
+
rescue StandardError
|
411
|
+
false
|
414
412
|
end
|
415
413
|
|
416
414
|
def resolve_path(path)
|
@@ -433,13 +431,13 @@ module Fastlane
|
|
433
431
|
def resolve_text_into_path(text, locale)
|
434
432
|
localized_file = format(text, locale)
|
435
433
|
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
434
|
+
if File.exist?(localized_file)
|
435
|
+
localized_file
|
436
|
+
elsif can_resolve_path(localized_file)
|
437
|
+
resolve_path(localized_file).realpath.to_s
|
438
|
+
else
|
439
|
+
format(text, 'source')
|
440
|
+
end
|
443
441
|
end
|
444
442
|
end
|
445
443
|
end
|
@@ -15,7 +15,7 @@ module Fastlane
|
|
15
15
|
|
16
16
|
def self.from_file(path)
|
17
17
|
json = JSON.parse(File.read(path), symbolize_names: true)
|
18
|
-
|
18
|
+
new(json)
|
19
19
|
end
|
20
20
|
|
21
21
|
def save_to_file(path)
|
@@ -24,16 +24,16 @@ module Fastlane
|
|
24
24
|
|
25
25
|
def add_file_to_copy(source, destination, encrypt: false)
|
26
26
|
file = FileReference.new(file: source, destination: destination, encrypt: encrypt)
|
27
|
-
|
27
|
+
files_to_copy << file
|
28
28
|
end
|
29
29
|
|
30
30
|
def to_hash
|
31
31
|
{
|
32
|
-
project_name:
|
33
|
-
branch:
|
34
|
-
pinned_hash:
|
35
|
-
files_to_copy:
|
36
|
-
file_dependencies:
|
32
|
+
project_name: project_name,
|
33
|
+
branch: branch,
|
34
|
+
pinned_hash: pinned_hash,
|
35
|
+
files_to_copy: files_to_copy.map(&:to_hash),
|
36
|
+
file_dependencies: file_dependencies
|
37
37
|
}
|
38
38
|
end
|
39
39
|
end
|
@@ -10,7 +10,7 @@ module Fastlane
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def source_contents
|
13
|
-
return File.read(secrets_repository_file_path) unless
|
13
|
+
return File.read(secrets_repository_file_path) unless encrypt || FastlaneCore::Helper.is_ci?
|
14
14
|
return nil unless File.file?(encrypted_file_path)
|
15
15
|
|
16
16
|
encrypted = File.read(encrypted_file_path)
|
@@ -29,7 +29,7 @@ module Fastlane
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def update
|
32
|
-
return unless
|
32
|
+
return unless encrypt
|
33
33
|
|
34
34
|
# Create the destination directory if it doesn't exist
|
35
35
|
FileUtils.mkdir_p(Pathname.new(encrypted_file_path).dirname)
|
@@ -56,17 +56,17 @@ module Fastlane
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def secrets_repository_file_path
|
59
|
-
File.join(Fastlane::Helper::FilesystemHelper.secret_store_dir,
|
59
|
+
File.join(Fastlane::Helper::FilesystemHelper.secret_store_dir, file)
|
60
60
|
end
|
61
61
|
|
62
62
|
def encrypted_file_path
|
63
|
-
Fastlane::Helper::FilesystemHelper.encrypted_file_path(
|
63
|
+
Fastlane::Helper::FilesystemHelper.encrypted_file_path(file)
|
64
64
|
end
|
65
65
|
|
66
66
|
def destination_file_path
|
67
|
-
return File.expand_path(
|
67
|
+
return File.expand_path(destination) if destination.start_with?('~')
|
68
68
|
|
69
|
-
File.join(Fastlane::Helper::FilesystemHelper.project_path,
|
69
|
+
File.join(Fastlane::Helper::FilesystemHelper.project_path, destination)
|
70
70
|
end
|
71
71
|
|
72
72
|
def encryption_key
|
@@ -74,7 +74,7 @@ module Fastlane
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def to_hash
|
77
|
-
{ file:
|
77
|
+
{ file: file, destination: destination, encrypt: encrypt }
|
78
78
|
end
|
79
79
|
end
|
80
80
|
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: 10.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Automattic
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -117,7 +117,7 @@ dependencies:
|
|
117
117
|
version: '1.11'
|
118
118
|
- - "<"
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: '1.
|
120
|
+
version: '1.17'
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
123
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -127,7 +127,7 @@ dependencies:
|
|
127
127
|
version: '1.11'
|
128
128
|
- - "<"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '1.
|
130
|
+
version: '1.17'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: octokit
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -308,14 +308,14 @@ dependencies:
|
|
308
308
|
requirements:
|
309
309
|
- - "~>"
|
310
310
|
- !ruby/object:Gem::Version
|
311
|
-
version: '
|
311
|
+
version: '5.3'
|
312
312
|
type: :development
|
313
313
|
prerelease: false
|
314
314
|
version_requirements: !ruby/object:Gem::Requirement
|
315
315
|
requirements:
|
316
316
|
- - "~>"
|
317
317
|
- !ruby/object:Gem::Version
|
318
|
-
version: '
|
318
|
+
version: '5.3'
|
319
319
|
- !ruby/object:Gem::Dependency
|
320
320
|
name: rspec
|
321
321
|
requirement: !ruby/object:Gem::Requirement
|
@@ -400,7 +400,7 @@ dependencies:
|
|
400
400
|
- - "~>"
|
401
401
|
- !ruby/object:Gem::Version
|
402
402
|
version: 0.16.1
|
403
|
-
description:
|
403
|
+
description:
|
404
404
|
email: mobile@automattic.com
|
405
405
|
executables: []
|
406
406
|
extensions: []
|
@@ -459,8 +459,8 @@ files:
|
|
459
459
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/prototype_build_details_comment_action.rb
|
460
460
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/remove_branch_protection_action.rb
|
461
461
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/set_branch_protection_action.rb
|
462
|
-
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/
|
463
|
-
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/
|
462
|
+
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/set_milestone_frozen_marker_action.rb
|
463
|
+
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/update_assigned_milestone_action.rb
|
464
464
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/common/upload_to_s3.rb
|
465
465
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_add_files_to_copy_action.rb
|
466
466
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_apply_action.rb
|
@@ -477,13 +477,11 @@ files:
|
|
477
477
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_hotfix.rb
|
478
478
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_bump_version_release.rb
|
479
479
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_check_beta_deps.rb
|
480
|
-
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_clear_intermediate_tags.rb
|
481
480
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_codefreeze_prechecks.rb
|
482
481
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_completecodefreeze_prechecks.rb
|
483
482
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb
|
484
483
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_download_strings_files_from_glotpress.rb
|
485
484
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_extract_keys_from_strings_files.rb
|
486
|
-
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_final_tag.rb
|
487
485
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_finalize_prechecks.rb
|
488
486
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_generate_strings_file_from_code.rb
|
489
487
|
- lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb
|
@@ -506,7 +504,6 @@ files:
|
|
506
504
|
- lib/fastlane/plugin/wpmreleasetoolkit/helper/app_size_metrics_helper.rb
|
507
505
|
- lib/fastlane/plugin/wpmreleasetoolkit/helper/ci_helper.rb
|
508
506
|
- lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb
|
509
|
-
- lib/fastlane/plugin/wpmreleasetoolkit/helper/deprecated.rb
|
510
507
|
- lib/fastlane/plugin/wpmreleasetoolkit/helper/encryption_helper.rb
|
511
508
|
- lib/fastlane/plugin/wpmreleasetoolkit/helper/filesystem_helper.rb
|
512
509
|
- lib/fastlane/plugin/wpmreleasetoolkit/helper/git_helper.rb
|
@@ -556,7 +553,7 @@ homepage: https://github.com/wordpress-mobile/release-toolkit
|
|
556
553
|
licenses:
|
557
554
|
- MIT
|
558
555
|
metadata: {}
|
559
|
-
post_install_message:
|
556
|
+
post_install_message:
|
560
557
|
rdoc_options: []
|
561
558
|
require_paths:
|
562
559
|
- lib
|
@@ -564,15 +561,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
564
561
|
requirements:
|
565
562
|
- - ">="
|
566
563
|
- !ruby/object:Gem::Version
|
567
|
-
version:
|
564
|
+
version: 3.2.2
|
568
565
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
569
566
|
requirements:
|
570
567
|
- - ">="
|
571
568
|
- !ruby/object:Gem::Version
|
572
569
|
version: '0'
|
573
570
|
requirements: []
|
574
|
-
rubygems_version: 3.
|
575
|
-
signing_key:
|
571
|
+
rubygems_version: 3.4.10
|
572
|
+
signing_key:
|
576
573
|
specification_version: 4
|
577
574
|
summary: GitHub helper functions
|
578
575
|
test_files: []
|
@@ -1,72 +0,0 @@
|
|
1
|
-
module Fastlane
|
2
|
-
module Actions
|
3
|
-
class IosClearIntermediateTagsAction < Action
|
4
|
-
def self.run(params)
|
5
|
-
return unless UI.confirm("#{deprecated_notes} Would you like to continue with the action?")
|
6
|
-
|
7
|
-
UI.message("Deleting tags for version: #{params[:version]}")
|
8
|
-
|
9
|
-
require_relative '../../helper/git_helper'
|
10
|
-
|
11
|
-
# Download all the remote tags prior to starting – that way we don't miss any on the server
|
12
|
-
Fastlane::Helper::GitHelper.fetch_all_tags
|
13
|
-
|
14
|
-
# Delete 4-parts version names starting with our version number
|
15
|
-
parts = params[:version].split('.')
|
16
|
-
pattern = parts.fill('*', parts.length...4).join('.') # "1.2.*.*" or "1.2.3.*"
|
17
|
-
|
18
|
-
intermediate_tags = Fastlane::Helper::GitHelper.list_local_tags(matching: pattern)
|
19
|
-
tag_count = intermediate_tags.count
|
20
|
-
|
21
|
-
return unless tag_count.positive? && UI.confirm("Are you sure you want to delete #{tag_count} tags?")
|
22
|
-
|
23
|
-
Fastlane::Helper::GitHelper.delete_tags(intermediate_tags, delete_on_remote: true)
|
24
|
-
end
|
25
|
-
|
26
|
-
#####################################################
|
27
|
-
# @!group Documentation
|
28
|
-
#####################################################
|
29
|
-
|
30
|
-
def self.description
|
31
|
-
'(DEPRECATED) Cleans all the intermediate tags for the given version'
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.details
|
35
|
-
'(DEPRECATED) Cleans all the intermediate tags for the given version'
|
36
|
-
end
|
37
|
-
|
38
|
-
def self.available_options
|
39
|
-
[
|
40
|
-
FastlaneCore::ConfigItem.new(key: :version,
|
41
|
-
env_name: 'FL_IOS_CLEAN_INTERMEDIATE_TAGS_VERSION',
|
42
|
-
description: 'The version of the tags to clear',
|
43
|
-
type: String),
|
44
|
-
]
|
45
|
-
end
|
46
|
-
|
47
|
-
def self.output
|
48
|
-
end
|
49
|
-
|
50
|
-
def self.return_value
|
51
|
-
end
|
52
|
-
|
53
|
-
def self.category
|
54
|
-
:deprecated
|
55
|
-
end
|
56
|
-
|
57
|
-
def self.deprecated_notes
|
58
|
-
"This action is deprecated as we don't believe it's currently in use in our projects.
|
59
|
-
However, just to be sure that it's not in use, we decided to deprecate it first. If you
|
60
|
-
believe that this is a mistake, please let us know on Slack."
|
61
|
-
end
|
62
|
-
|
63
|
-
def self.authors
|
64
|
-
['Automattic']
|
65
|
-
end
|
66
|
-
|
67
|
-
def self.is_supported?(platform)
|
68
|
-
[:ios, :mac].include?(platform)
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
@@ -1,64 +0,0 @@
|
|
1
|
-
module Fastlane
|
2
|
-
module Actions
|
3
|
-
class IosFinalTagAction < Action
|
4
|
-
def self.run(params)
|
5
|
-
return unless UI.confirm("#{deprecated_notes} Would you like to continue with the action?")
|
6
|
-
|
7
|
-
require_relative '../../helper/ios/ios_git_helper'
|
8
|
-
require_relative '../../helper/ios/ios_version_helper'
|
9
|
-
version = Fastlane::Helper::Ios::VersionHelper.get_public_version
|
10
|
-
|
11
|
-
UI.message("Tagging final #{version}...")
|
12
|
-
|
13
|
-
Fastlane::Helper::GitHelper.create_tag(version)
|
14
|
-
|
15
|
-
other_action.ios_clear_intermediate_tags(version: version)
|
16
|
-
end
|
17
|
-
|
18
|
-
#####################################################
|
19
|
-
# @!group Documentation
|
20
|
-
#####################################################
|
21
|
-
|
22
|
-
def self.description
|
23
|
-
'(DEPRECATED) Finalize a relasae'
|
24
|
-
end
|
25
|
-
|
26
|
-
def self.details
|
27
|
-
'(DEPRECATED) Removes the temp tags and pushes the final one'
|
28
|
-
end
|
29
|
-
|
30
|
-
def self.available_options
|
31
|
-
[
|
32
|
-
FastlaneCore::ConfigItem.new(key: :version,
|
33
|
-
env_name: 'FL_IOS_FINAL_TAG_VERSION',
|
34
|
-
description: 'The version of the release to finalize',
|
35
|
-
type: String),
|
36
|
-
]
|
37
|
-
end
|
38
|
-
|
39
|
-
def self.output
|
40
|
-
end
|
41
|
-
|
42
|
-
def self.return_value
|
43
|
-
end
|
44
|
-
|
45
|
-
def self.category
|
46
|
-
:deprecated
|
47
|
-
end
|
48
|
-
|
49
|
-
def self.deprecated_notes
|
50
|
-
"This action is deprecated as we don't believe it's currently in use in our projects.
|
51
|
-
However, just to be sure that it's not in use, we decided to deprecate it first. If you
|
52
|
-
believe that this is a mistake, please let us know on Slack."
|
53
|
-
end
|
54
|
-
|
55
|
-
def self.authors
|
56
|
-
['Automattic']
|
57
|
-
end
|
58
|
-
|
59
|
-
def self.is_supported?(platform)
|
60
|
-
[:ios, :mac].include?(platform)
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
@@ -1,66 +0,0 @@
|
|
1
|
-
module Fastlane
|
2
|
-
module Helper
|
3
|
-
# A helper class to store deprecated methods and actions
|
4
|
-
class Deprecated
|
5
|
-
# Creates a has_alpha_version Fastlane ConfigItem
|
6
|
-
#
|
7
|
-
# @return [FastlaneCore::ConfigItem] The Fastlane ConfigItem for the `HAS_ALPHA_VERSION` environment variable
|
8
|
-
#
|
9
|
-
def self.has_alpha_version_config_item
|
10
|
-
verify_block = proc do
|
11
|
-
UI.deprecated('DEPRECATED: The HAS_ALPHA_VERSION environment variable and config item are deprecated and will be removed in a future version of the Release Toolkit.')
|
12
|
-
end
|
13
|
-
|
14
|
-
FastlaneCore::ConfigItem.new(
|
15
|
-
key: :has_alpha_version,
|
16
|
-
env_name: 'HAS_ALPHA_VERSION',
|
17
|
-
description: 'A boolean for whether there is an alpha version of the app or not',
|
18
|
-
deprecated: true,
|
19
|
-
optional: true,
|
20
|
-
verify_block: verify_block,
|
21
|
-
type: Boolean
|
22
|
-
)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Creates a project_root_folder Fastlane ConfigItem
|
26
|
-
#
|
27
|
-
# @return [FastlaneCore::ConfigItem] The Fastlane ConfigItem for the `PROJECT_ROOT_FOLDER` environment variable
|
28
|
-
#
|
29
|
-
def self.project_root_folder_config_item
|
30
|
-
verify_block = proc do
|
31
|
-
UI.deprecated('DEPRECATED: The PROJECT_ROOT_FOLDER environment variable and config item are deprecated and will be removed in a future version of the Release Toolkit. Please provide a full path instead.')
|
32
|
-
end
|
33
|
-
|
34
|
-
FastlaneCore::ConfigItem.new(
|
35
|
-
key: :project_root_folder,
|
36
|
-
env_name: 'PROJECT_ROOT_FOLDER',
|
37
|
-
description: 'The path to the project root folder',
|
38
|
-
deprecated: true,
|
39
|
-
optional: true,
|
40
|
-
verify_block: verify_block,
|
41
|
-
type: String
|
42
|
-
)
|
43
|
-
end
|
44
|
-
|
45
|
-
# Creates a project_root_folder Fastlane ConfigItem
|
46
|
-
#
|
47
|
-
# @return [FastlaneCore::ConfigItem] The Fastlane ConfigItem for the `PROJECT_ROOT_FOLDER` environment variable
|
48
|
-
#
|
49
|
-
def self.project_name_config_item
|
50
|
-
verify_block = proc do
|
51
|
-
UI.deprecated('DEPRECATED: The PROJECT_NAME environment variable and config item are deprecated and will be removed in a future version of the Release Toolkit. Please provide a full path instead.')
|
52
|
-
end
|
53
|
-
|
54
|
-
FastlaneCore::ConfigItem.new(
|
55
|
-
key: :project_name,
|
56
|
-
env_name: 'PROJECT_NAME',
|
57
|
-
description: 'The app project name',
|
58
|
-
deprecated: true,
|
59
|
-
optional: true,
|
60
|
-
verify_block: verify_block,
|
61
|
-
type: String
|
62
|
-
)
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|