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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea0a11acbc1d86f38ebf67cbed2be77567daf102d562f98ffe5b24b586e76e2a
|
4
|
+
data.tar.gz: bd63ae1a9b85d9752d82ecca475348ab7707561f5c9dfb65ed6e90d9cad3fa72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1fc81d95398f1e9a19d436e8c967482ccafde915e7332ef1b0f4b662c2d7237c615120efb2f6d599b45c8ce9193c518010017e9a563735ef4e99ac73c88dff2
|
7
|
+
data.tar.gz: 55a4e17018754d509abd46ab4aa9b9974c6e5dca146695f94bdacf9409112fe6dd3d49c05b0fc8ac632a348c3c817321c0de63490a8bd2ce1fc81147c529cc21
|
data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_update_metadata_source_action.rb
CHANGED
@@ -36,7 +36,7 @@ module Fastlane
|
|
36
36
|
# .po fo the others.
|
37
37
|
def self.create_temp_po(params)
|
38
38
|
orig = params[:po_file_path]
|
39
|
-
target =
|
39
|
+
target = create_target_file_path(orig)
|
40
40
|
|
41
41
|
# Clear if older exists
|
42
42
|
FileUtils.rm_f(target)
|
@@ -48,7 +48,7 @@ module Fastlane
|
|
48
48
|
write_target_block(fw, fr)
|
49
49
|
end
|
50
50
|
end
|
51
|
-
rescue
|
51
|
+
rescue StandardError
|
52
52
|
FileUtils.rm_f(target)
|
53
53
|
raise
|
54
54
|
end
|
data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_validate_lib_strings_action.rb
CHANGED
@@ -14,8 +14,6 @@ module Fastlane
|
|
14
14
|
data = open(params[:diff_url])
|
15
15
|
source_diff = data.read
|
16
16
|
end
|
17
|
-
|
18
|
-
any_error = false
|
19
17
|
libraries_strings_path.each do |lib|
|
20
18
|
Fastlane::Helper::Android::LocalizeHelper.verify_lib(main_strings_path, lib, source_diff)
|
21
19
|
end
|
@@ -68,7 +66,7 @@ module Fastlane
|
|
68
66
|
end
|
69
67
|
|
70
68
|
def self.is_supported?(platform)
|
71
|
-
|
69
|
+
platform == :android
|
72
70
|
end
|
73
71
|
end
|
74
72
|
end
|
@@ -8,11 +8,8 @@ module Fastlane
|
|
8
8
|
require_relative '../../helper/android/android_version_helper'
|
9
9
|
require_relative '../../helper/android/android_git_helper'
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
project_name = params[:project_name]
|
14
|
-
build_gradle_path = params[:build_gradle_path] || (File.join(project_root_folder || '.', project_name, 'build.gradle') unless project_name.nil?)
|
15
|
-
version_properties_path = params[:version_properties_path] || File.join(project_root_folder || '.', 'version.properties')
|
11
|
+
build_gradle_path = params[:build_gradle_path]
|
12
|
+
version_properties_path = params[:version_properties_path]
|
16
13
|
|
17
14
|
# Checkout default branch and update
|
18
15
|
default_branch = params[:default_branch]
|
@@ -21,22 +18,19 @@ module Fastlane
|
|
21
18
|
# Check versions
|
22
19
|
release_version = Fastlane::Helper::Android::VersionHelper.get_release_version(
|
23
20
|
build_gradle_path: build_gradle_path,
|
24
|
-
version_properties_path: version_properties_path
|
25
|
-
has_alpha_version: has_alpha_version
|
21
|
+
version_properties_path: version_properties_path
|
26
22
|
)
|
27
23
|
message = "The following current version has been detected: #{release_version[Fastlane::Helper::Android::VersionHelper::VERSION_NAME]}\n"
|
28
24
|
alpha_release_version = Fastlane::Helper::Android::VersionHelper.get_alpha_version(
|
29
25
|
build_gradle_path: build_gradle_path,
|
30
|
-
version_properties_path: version_properties_path
|
31
|
-
has_alpha_version: has_alpha_version
|
26
|
+
version_properties_path: version_properties_path
|
32
27
|
)
|
33
28
|
message << "The following Alpha version has been detected: #{alpha_release_version[Fastlane::Helper::Android::VersionHelper::VERSION_NAME]}\n" unless alpha_release_version.nil?
|
34
29
|
|
35
30
|
# Check branch
|
36
31
|
app_version = Fastlane::Helper::Android::VersionHelper.get_public_version(
|
37
32
|
build_gradle_path: build_gradle_path,
|
38
|
-
version_properties_path: version_properties_path
|
39
|
-
has_alpha_version: has_alpha_version
|
33
|
+
version_properties_path: version_properties_path
|
40
34
|
)
|
41
35
|
UI.user_error!("#{message}Release branch for version #{app_version} doesn't exist. Abort.") unless !params[:base_version].nil? || Fastlane::Helper::GitHelper.checkout_and_pull(release: app_version)
|
42
36
|
|
@@ -70,14 +64,12 @@ module Fastlane
|
|
70
64
|
UI.user_error!("Release branch for version #{version} doesn't exist. Abort.") unless Fastlane::Helper::GitHelper.checkout_and_pull(release: version)
|
71
65
|
release_version = Fastlane::Helper::Android::VersionHelper.get_release_version(
|
72
66
|
build_gradle_path: build_gradle_path,
|
73
|
-
version_properties_path: version_properties_path
|
74
|
-
has_alpha_version: has_alpha_version
|
67
|
+
version_properties_path: version_properties_path
|
75
68
|
)
|
76
69
|
message << "Looking at branch release/#{version} as requested by user. Detected version: #{release_version[Fastlane::Helper::Android::VersionHelper::VERSION_NAME]}.\n"
|
77
70
|
alpha_release_version = Fastlane::Helper::Android::VersionHelper.get_alpha_version(
|
78
71
|
build_gradle_path: build_gradle_path,
|
79
|
-
version_properties_path: version_properties_path
|
80
|
-
has_alpha_version: has_alpha_version
|
72
|
+
version_properties_path: version_properties_path
|
81
73
|
)
|
82
74
|
message << "and Alpha Version: #{alpha_release_version[Fastlane::Helper::Android::VersionHelper::VERSION_NAME]}\n" unless alpha_release_version.nil?
|
83
75
|
[release_version, alpha_release_version]
|
@@ -116,19 +108,12 @@ module Fastlane
|
|
116
108
|
description: 'Path to the build.gradle file',
|
117
109
|
type: String,
|
118
110
|
optional: true,
|
119
|
-
conflicting_options:
|
120
|
-
project_root_folder
|
121
|
-
version_properties_path]),
|
111
|
+
conflicting_options: [:version_properties_path]),
|
122
112
|
FastlaneCore::ConfigItem.new(key: :version_properties_path,
|
123
113
|
description: 'Path to the version.properties file',
|
124
114
|
type: String,
|
125
115
|
optional: true,
|
126
|
-
conflicting_options:
|
127
|
-
project_name
|
128
|
-
project_root_folder]),
|
129
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
130
|
-
Fastlane::Helper::Deprecated.project_name_config_item,
|
131
|
-
Fastlane::Helper::Deprecated.has_alpha_version_config_item,
|
116
|
+
conflicting_options: [:build_gradle_path]),
|
132
117
|
]
|
133
118
|
end
|
134
119
|
|
@@ -7,27 +7,23 @@ module Fastlane
|
|
7
7
|
|
8
8
|
UI.user_error!("Can't build beta and final at the same time!") if params[:final] && params[:beta]
|
9
9
|
|
10
|
-
|
10
|
+
# Verify that the current branch is a release branch. Notice that `ensure_git_branch` expects a RegEx parameter
|
11
|
+
ensure_git_branch(branch: '^release/') unless other_action.is_ci
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
project_name = params[:project_name]
|
15
|
-
build_gradle_path = params[:build_gradle_path] || (File.join(project_root_folder || '.', project_name, 'build.gradle') unless project_name.nil?)
|
16
|
-
version_properties_path = params[:version_properties_path] || File.join(project_root_folder || '.', 'version.properties')
|
13
|
+
build_gradle_path = params[:build_gradle_path]
|
14
|
+
version_properties_path = params[:version_properties_path]
|
17
15
|
|
18
16
|
message = ''
|
19
17
|
unless !params[:beta] && !params[:final]
|
20
18
|
beta_version = Fastlane::Helper::Android::VersionHelper.get_release_version(
|
21
19
|
build_gradle_path: build_gradle_path,
|
22
|
-
version_properties_path: version_properties_path
|
23
|
-
has_alpha_version: has_alpha_version
|
20
|
+
version_properties_path: version_properties_path
|
24
21
|
)
|
25
22
|
end
|
26
23
|
if params[:alpha]
|
27
24
|
alpha_version = Fastlane::Helper::Android::VersionHelper.get_alpha_version(
|
28
25
|
build_gradle_path: build_gradle_path,
|
29
|
-
version_properties_path: version_properties_path
|
30
|
-
has_alpha_version: has_alpha_version
|
26
|
+
version_properties_path: version_properties_path
|
31
27
|
)
|
32
28
|
end
|
33
29
|
|
@@ -85,19 +81,12 @@ module Fastlane
|
|
85
81
|
description: 'Path to the build.gradle file',
|
86
82
|
type: String,
|
87
83
|
optional: true,
|
88
|
-
conflicting_options:
|
89
|
-
project_root_folder
|
90
|
-
version_properties_path]),
|
84
|
+
conflicting_options: [:version_properties_path]),
|
91
85
|
FastlaneCore::ConfigItem.new(key: :version_properties_path,
|
92
86
|
description: 'Path to the version.properties file',
|
93
87
|
type: String,
|
94
88
|
optional: true,
|
95
|
-
conflicting_options:
|
96
|
-
project_name
|
97
|
-
project_root_folder]),
|
98
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
99
|
-
Fastlane::Helper::Deprecated.project_name_config_item,
|
100
|
-
Fastlane::Helper::Deprecated.has_alpha_version_config_item,
|
89
|
+
conflicting_options: [:build_gradle_path]),
|
101
90
|
]
|
102
91
|
end
|
103
92
|
|
@@ -8,14 +8,14 @@ module Fastlane
|
|
8
8
|
# Check gems and pods are up to date. This will exit if it fails
|
9
9
|
begin
|
10
10
|
Action.sh('bundle check')
|
11
|
-
rescue
|
11
|
+
rescue StandardError
|
12
12
|
UI.user_error!("You should run 'bundle install' to make sure gems are up to date")
|
13
13
|
raise
|
14
14
|
end
|
15
15
|
|
16
16
|
begin
|
17
17
|
Action.sh('command -v bundletool > /dev/null')
|
18
|
-
rescue
|
18
|
+
rescue StandardError
|
19
19
|
UI.user_error!("bundletool is required to build the APKs. Install it with 'brew install bundletool'")
|
20
20
|
raise
|
21
21
|
end
|
@@ -7,23 +7,19 @@ module Fastlane
|
|
7
7
|
require_relative '../../helper/android/android_git_helper'
|
8
8
|
require_relative '../../helper/android/android_version_helper'
|
9
9
|
|
10
|
-
|
10
|
+
# Verify that the current branch is a release branch. Notice that `ensure_git_branch` expects a RegEx parameter
|
11
|
+
ensure_git_branch(branch: '^release/')
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
project_name = params[:project_name]
|
15
|
-
build_gradle_path = params[:build_gradle_path] || (File.join(project_root_folder || '.', project_name, 'build.gradle') unless project_name.nil?)
|
16
|
-
version_properties_path = params[:version_properties_path] || File.join(project_root_folder || '.', 'version.properties')
|
13
|
+
build_gradle_path = params[:build_gradle_path]
|
14
|
+
version_properties_path = params[:version_properties_path]
|
17
15
|
|
18
16
|
current_version = Fastlane::Helper::Android::VersionHelper.get_release_version(
|
19
17
|
build_gradle_path: build_gradle_path,
|
20
|
-
version_properties_path: version_properties_path
|
21
|
-
has_alpha_version: has_alpha_version
|
18
|
+
version_properties_path: version_properties_path
|
22
19
|
)
|
23
20
|
current_version_alpha = Fastlane::Helper::Android::VersionHelper.get_alpha_version(
|
24
21
|
build_gradle_path: build_gradle_path,
|
25
|
-
version_properties_path: version_properties_path
|
26
|
-
has_alpha_version: has_alpha_version
|
22
|
+
version_properties_path: version_properties_path
|
27
23
|
)
|
28
24
|
new_version_beta = Fastlane::Helper::Android::VersionHelper.calc_next_beta_version(current_version, current_version_alpha)
|
29
25
|
new_version_alpha = current_version_alpha.nil? ? nil : Fastlane::Helper::Android::VersionHelper.calc_next_alpha_version(new_version_beta, current_version_alpha)
|
@@ -39,8 +35,7 @@ module Fastlane
|
|
39
35
|
Fastlane::Helper::Android::VersionHelper.update_versions(
|
40
36
|
new_version_beta,
|
41
37
|
new_version_alpha,
|
42
|
-
version_properties_path: version_properties_path
|
43
|
-
has_alpha_version: has_alpha_version
|
38
|
+
version_properties_path: version_properties_path
|
44
39
|
)
|
45
40
|
UI.message 'Done!'
|
46
41
|
|
@@ -68,19 +63,12 @@ module Fastlane
|
|
68
63
|
description: 'Path to the build.gradle file',
|
69
64
|
type: String,
|
70
65
|
optional: true,
|
71
|
-
conflicting_options:
|
72
|
-
project_root_folder
|
73
|
-
version_properties_path]),
|
66
|
+
conflicting_options: [:version_properties_path]),
|
74
67
|
FastlaneCore::ConfigItem.new(key: :version_properties_path,
|
75
68
|
description: 'Path to the version.properties file',
|
76
69
|
type: String,
|
77
70
|
optional: true,
|
78
|
-
conflicting_options:
|
79
|
-
project_name
|
80
|
-
project_root_folder]),
|
81
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
82
|
-
Fastlane::Helper::Deprecated.project_name_config_item,
|
83
|
-
Fastlane::Helper::Deprecated.has_alpha_version_config_item,
|
71
|
+
conflicting_options: [:build_gradle_path]),
|
84
72
|
]
|
85
73
|
end
|
86
74
|
|
data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_bump_version_final_release.rb
CHANGED
@@ -7,23 +7,19 @@ module Fastlane
|
|
7
7
|
require_relative '../../helper/android/android_git_helper'
|
8
8
|
require_relative '../../helper/android/android_version_helper'
|
9
9
|
|
10
|
-
|
10
|
+
# Verify that the current branch is a release branch. Notice that `ensure_git_branch` expects a RegEx parameter
|
11
|
+
ensure_git_branch(branch: '^release/')
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
project_name = params[:project_name]
|
15
|
-
build_gradle_path = params[:build_gradle_path] || (File.join(project_root_folder || '.', project_name, 'build.gradle') unless project_name.nil?)
|
16
|
-
version_properties_path = params[:version_properties_path] || File.join(project_root_folder || '.', 'version.properties')
|
13
|
+
build_gradle_path = params[:build_gradle_path]
|
14
|
+
version_properties_path = params[:version_properties_path]
|
17
15
|
|
18
16
|
current_version = Fastlane::Helper::Android::VersionHelper.get_release_version(
|
19
17
|
build_gradle_path: build_gradle_path,
|
20
|
-
version_properties_path: version_properties_path
|
21
|
-
has_alpha_version: has_alpha_version
|
18
|
+
version_properties_path: version_properties_path
|
22
19
|
)
|
23
20
|
current_version_alpha = Fastlane::Helper::Android::VersionHelper.get_alpha_version(
|
24
21
|
build_gradle_path: build_gradle_path,
|
25
|
-
version_properties_path: version_properties_path
|
26
|
-
has_alpha_version: has_alpha_version
|
22
|
+
version_properties_path: version_properties_path
|
27
23
|
)
|
28
24
|
final_version = Fastlane::Helper::Android::VersionHelper.calc_final_release_version(current_version, current_version_alpha)
|
29
25
|
|
@@ -37,8 +33,7 @@ module Fastlane
|
|
37
33
|
Fastlane::Helper::Android::VersionHelper.update_versions(
|
38
34
|
final_version,
|
39
35
|
current_version_alpha,
|
40
|
-
version_properties_path: version_properties_path
|
41
|
-
has_alpha_version: has_alpha_version
|
36
|
+
version_properties_path: version_properties_path
|
42
37
|
)
|
43
38
|
UI.message 'Done!'
|
44
39
|
|
@@ -66,19 +61,12 @@ module Fastlane
|
|
66
61
|
description: 'Path to the build.gradle file',
|
67
62
|
type: String,
|
68
63
|
optional: true,
|
69
|
-
conflicting_options:
|
70
|
-
project_root_folder
|
71
|
-
version_properties_path]),
|
64
|
+
conflicting_options: [:version_properties_path]),
|
72
65
|
FastlaneCore::ConfigItem.new(key: :version_properties_path,
|
73
66
|
description: 'Path to the version.properties file',
|
74
67
|
type: String,
|
75
68
|
optional: true,
|
76
|
-
conflicting_options:
|
77
|
-
project_name
|
78
|
-
project_root_folder]),
|
79
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
80
|
-
Fastlane::Helper::Deprecated.project_name_config_item,
|
81
|
-
Fastlane::Helper::Deprecated.has_alpha_version_config_item,
|
69
|
+
conflicting_options: [:build_gradle_path]),
|
82
70
|
]
|
83
71
|
end
|
84
72
|
|
@@ -6,18 +6,14 @@ module Fastlane
|
|
6
6
|
|
7
7
|
require_relative '../../helper/android/android_git_helper'
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
project_name = params[:project_name]
|
12
|
-
build_gradle_path = params[:build_gradle_path] || (File.join(project_root_folder || '.', project_name, 'build.gradle') unless project_name.nil?)
|
13
|
-
version_properties_path = params[:version_properties_path] || File.join(project_root_folder || '.', 'version.properties')
|
9
|
+
build_gradle_path = params[:build_gradle_path]
|
10
|
+
version_properties_path = params[:version_properties_path]
|
14
11
|
|
15
12
|
Fastlane::Helper::GitHelper.create_branch("release/#{params[:version_name]}", from: params[:previous_version_name])
|
16
13
|
|
17
14
|
current_version = Fastlane::Helper::Android::VersionHelper.get_release_version(
|
18
15
|
build_gradle_path: build_gradle_path,
|
19
|
-
version_properties_path: version_properties_path
|
20
|
-
has_alpha_version: has_alpha_version
|
16
|
+
version_properties_path: version_properties_path
|
21
17
|
)
|
22
18
|
new_version = Fastlane::Helper::Android::VersionHelper.calc_next_hotfix_version(params[:version_name], params[:version_code]) # NOTE: this just puts the name/code values in a tuple, unchanged (no actual calc/bumping)
|
23
19
|
new_release_branch = "release/#{params[:version_name]}"
|
@@ -32,8 +28,7 @@ module Fastlane
|
|
32
28
|
Fastlane::Helper::Android::VersionHelper.update_versions(
|
33
29
|
new_version,
|
34
30
|
nil,
|
35
|
-
version_properties_path: version_properties_path
|
36
|
-
has_alpha_version: has_alpha_version
|
31
|
+
version_properties_path: version_properties_path
|
37
32
|
)
|
38
33
|
UI.message 'Done!'
|
39
34
|
|
@@ -75,19 +70,12 @@ module Fastlane
|
|
75
70
|
description: 'Path to the build.gradle file',
|
76
71
|
type: String,
|
77
72
|
optional: true,
|
78
|
-
conflicting_options:
|
79
|
-
project_root_folder
|
80
|
-
version_properties_path]),
|
73
|
+
conflicting_options: [:version_properties_path]),
|
81
74
|
FastlaneCore::ConfigItem.new(key: :version_properties_path,
|
82
75
|
description: 'Path to the version.properties file',
|
83
76
|
type: String,
|
84
77
|
optional: true,
|
85
|
-
conflicting_options:
|
86
|
-
project_name
|
87
|
-
project_root_folder]),
|
88
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
89
|
-
Fastlane::Helper::Deprecated.project_name_config_item,
|
90
|
-
Fastlane::Helper::Deprecated.has_alpha_version_config_item,
|
78
|
+
conflicting_options: [:build_gradle_path]),
|
91
79
|
]
|
92
80
|
end
|
93
81
|
|
@@ -8,11 +8,8 @@ module Fastlane
|
|
8
8
|
require_relative '../../helper/android/android_version_helper'
|
9
9
|
require_relative '../../helper/android/android_git_helper'
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
project_name = params[:project_name]
|
14
|
-
build_gradle_path = params[:build_gradle_path] || (File.join(project_root_folder || '.', project_name, 'build.gradle') unless project_name.nil?)
|
15
|
-
version_properties_path = params[:version_properties_path] || File.join(project_root_folder || '.', 'version.properties')
|
11
|
+
build_gradle_path = params[:build_gradle_path]
|
12
|
+
version_properties_path = params[:version_properties_path]
|
16
13
|
|
17
14
|
default_branch = params[:default_branch]
|
18
15
|
other_action.ensure_git_branch(branch: default_branch)
|
@@ -20,19 +17,16 @@ module Fastlane
|
|
20
17
|
# Create new configuration
|
21
18
|
new_short_version = Fastlane::Helper::Android::VersionHelper.bump_version_release(
|
22
19
|
build_gradle_path: build_gradle_path,
|
23
|
-
version_properties_path: version_properties_path
|
24
|
-
has_alpha_version: has_alpha_version
|
20
|
+
version_properties_path: version_properties_path
|
25
21
|
)
|
26
22
|
|
27
23
|
current_version = Fastlane::Helper::Android::VersionHelper.get_release_version(
|
28
24
|
build_gradle_path: build_gradle_path,
|
29
|
-
version_properties_path: version_properties_path
|
30
|
-
has_alpha_version: has_alpha_version
|
25
|
+
version_properties_path: version_properties_path
|
31
26
|
)
|
32
27
|
current_version_alpha = Fastlane::Helper::Android::VersionHelper.get_alpha_version(
|
33
28
|
build_gradle_path: build_gradle_path,
|
34
|
-
version_properties_path: version_properties_path
|
35
|
-
has_alpha_version: has_alpha_version
|
29
|
+
version_properties_path: version_properties_path
|
36
30
|
)
|
37
31
|
new_version_beta = Fastlane::Helper::Android::VersionHelper.calc_next_release_version(current_version, current_version_alpha)
|
38
32
|
new_version_alpha = current_version_alpha.nil? ? nil : Fastlane::Helper::Android::VersionHelper.calc_next_alpha_version(new_version_beta, current_version_alpha)
|
@@ -56,8 +50,7 @@ module Fastlane
|
|
56
50
|
Fastlane::Helper::Android::VersionHelper.update_versions(
|
57
51
|
new_version_beta,
|
58
52
|
new_version_alpha,
|
59
|
-
version_properties_path: version_properties_path
|
60
|
-
has_alpha_version: has_alpha_version
|
53
|
+
version_properties_path: version_properties_path
|
61
54
|
)
|
62
55
|
Fastlane::Helper::Android::GitHelper.commit_version_bump(
|
63
56
|
build_gradle_path: build_gradle_path,
|
@@ -89,19 +82,12 @@ module Fastlane
|
|
89
82
|
description: 'Path to the build.gradle file',
|
90
83
|
type: String,
|
91
84
|
optional: true,
|
92
|
-
conflicting_options:
|
93
|
-
project_root_folder
|
94
|
-
version_properties_path]),
|
85
|
+
conflicting_options: [:version_properties_path]),
|
95
86
|
FastlaneCore::ConfigItem.new(key: :version_properties_path,
|
96
87
|
description: 'Path to the version.properties file',
|
97
88
|
type: String,
|
98
89
|
optional: true,
|
99
|
-
conflicting_options:
|
100
|
-
project_name
|
101
|
-
project_root_folder]),
|
102
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
103
|
-
Fastlane::Helper::Deprecated.project_name_config_item,
|
104
|
-
Fastlane::Helper::Deprecated.has_alpha_version_config_item,
|
90
|
+
conflicting_options: [:build_gradle_path]),
|
105
91
|
]
|
106
92
|
end
|
107
93
|
|
@@ -11,11 +11,8 @@ module Fastlane
|
|
11
11
|
require_relative '../../helper/android/android_version_helper'
|
12
12
|
require_relative '../../helper/android/android_git_helper'
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
project_name = params[:project_name]
|
17
|
-
build_gradle_path = params[:build_gradle_path] || (File.join(project_root_folder || '.', project_name, 'build.gradle') unless project_name.nil?)
|
18
|
-
version_properties_path = params[:version_properties_path] || File.join(project_root_folder || '.', 'version.properties')
|
14
|
+
build_gradle_path = params[:build_gradle_path]
|
15
|
+
version_properties_path = params[:version_properties_path]
|
19
16
|
|
20
17
|
# Checkout default branch and update
|
21
18
|
default_branch = params[:default_branch]
|
@@ -24,13 +21,11 @@ module Fastlane
|
|
24
21
|
# Create versions
|
25
22
|
current_version = Fastlane::Helper::Android::VersionHelper.get_release_version(
|
26
23
|
build_gradle_path: build_gradle_path,
|
27
|
-
version_properties_path: version_properties_path
|
28
|
-
has_alpha_version: has_alpha_version
|
24
|
+
version_properties_path: version_properties_path
|
29
25
|
)
|
30
26
|
current_alpha_version = Fastlane::Helper::Android::VersionHelper.get_alpha_version(
|
31
27
|
build_gradle_path: build_gradle_path,
|
32
|
-
version_properties_path: version_properties_path
|
33
|
-
has_alpha_version: has_alpha_version
|
28
|
+
version_properties_path: version_properties_path
|
34
29
|
)
|
35
30
|
next_version = Fastlane::Helper::Android::VersionHelper.calc_next_release_version(current_version, current_alpha_version)
|
36
31
|
next_alpha_version = current_alpha_version.nil? ? nil : Fastlane::Helper::Android::VersionHelper.calc_next_alpha_version(next_version, current_alpha_version)
|
@@ -52,8 +47,7 @@ module Fastlane
|
|
52
47
|
# Return the current version
|
53
48
|
Fastlane::Helper::Android::VersionHelper.get_public_version(
|
54
49
|
build_gradle_path: build_gradle_path,
|
55
|
-
version_properties_path: version_properties_path
|
56
|
-
has_alpha_version: has_alpha_version
|
50
|
+
version_properties_path: version_properties_path
|
57
51
|
)
|
58
52
|
end
|
59
53
|
|
@@ -86,19 +80,12 @@ module Fastlane
|
|
86
80
|
description: 'Path to the build.gradle file',
|
87
81
|
type: String,
|
88
82
|
optional: true,
|
89
|
-
conflicting_options:
|
90
|
-
project_root_folder
|
91
|
-
version_properties_path]),
|
83
|
+
conflicting_options: [:version_properties_path]),
|
92
84
|
FastlaneCore::ConfigItem.new(key: :version_properties_path,
|
93
85
|
description: 'Path to the version.properties file',
|
94
86
|
type: String,
|
95
87
|
optional: true,
|
96
|
-
conflicting_options:
|
97
|
-
project_name
|
98
|
-
project_root_folder]),
|
99
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
100
|
-
Fastlane::Helper::Deprecated.project_name_config_item,
|
101
|
-
Fastlane::Helper::Deprecated.has_alpha_version_config_item,
|
88
|
+
conflicting_options: [:build_gradle_path]),
|
102
89
|
]
|
103
90
|
end
|
104
91
|
|
data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_completecodefreeze_prechecks.rb
CHANGED
@@ -11,16 +11,12 @@ module Fastlane
|
|
11
11
|
current_branch = Fastlane::Helper::GitHelper.current_git_branch
|
12
12
|
UI.user_error!("Current branch - '#{current_branch}' - is not a release branch. Abort.") unless current_branch.start_with?('release/')
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
project_name = params[:project_name]
|
17
|
-
build_gradle_path = params[:build_gradle_path] || (File.join(project_root_folder || '.', project_name, 'build.gradle') unless project_name.nil?)
|
18
|
-
version_properties_path = params[:version_properties_path] || File.join(project_root_folder || '.', 'version.properties')
|
14
|
+
build_gradle_path = params[:build_gradle_path]
|
15
|
+
version_properties_path = params[:version_properties_path]
|
19
16
|
|
20
17
|
version = Fastlane::Helper::Android::VersionHelper.get_public_version(
|
21
18
|
build_gradle_path: build_gradle_path,
|
22
|
-
version_properties_path: version_properties_path
|
23
|
-
has_alpha_version: has_alpha_version
|
19
|
+
version_properties_path: version_properties_path
|
24
20
|
)
|
25
21
|
message = "Completing code freeze for: #{version}\n"
|
26
22
|
if params[:skip_confirm]
|
@@ -58,19 +54,12 @@ module Fastlane
|
|
58
54
|
description: 'Path to the build.gradle file',
|
59
55
|
type: String,
|
60
56
|
optional: true,
|
61
|
-
conflicting_options:
|
62
|
-
project_root_folder
|
63
|
-
version_properties_path]),
|
57
|
+
conflicting_options: [:version_properties_path]),
|
64
58
|
FastlaneCore::ConfigItem.new(key: :version_properties_path,
|
65
59
|
description: 'Path to the version.properties file',
|
66
60
|
type: String,
|
67
61
|
optional: true,
|
68
|
-
conflicting_options:
|
69
|
-
project_name
|
70
|
-
project_root_folder]),
|
71
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
72
|
-
Fastlane::Helper::Deprecated.project_name_config_item,
|
73
|
-
Fastlane::Helper::Deprecated.has_alpha_version_config_item,
|
62
|
+
conflicting_options: [:build_gradle_path]),
|
74
63
|
]
|
75
64
|
end
|
76
65
|
|
data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb
CHANGED
@@ -8,16 +8,12 @@ module Fastlane
|
|
8
8
|
def self.run(params)
|
9
9
|
require_relative '../../helper/android/android_version_helper'
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
project_name = params[:project_name]
|
14
|
-
build_gradle_path = params[:build_gradle_path] || (File.join(project_root_folder || '.', project_name, 'build.gradle') unless project_name.nil?)
|
15
|
-
version_properties_path = params[:version_properties_path] || File.join(project_root_folder || '.', 'version.properties')
|
11
|
+
build_gradle_path = params[:build_gradle_path]
|
12
|
+
version_properties_path = params[:version_properties_path]
|
16
13
|
|
17
14
|
version = Fastlane::Helper::Android::VersionHelper.get_release_version(
|
18
15
|
build_gradle_path: build_gradle_path,
|
19
|
-
version_properties_path: version_properties_path
|
20
|
-
has_alpha_version: has_alpha_version
|
16
|
+
version_properties_path: version_properties_path
|
21
17
|
)
|
22
18
|
Fastlane::Helper::Android::VersionHelper.is_hotfix?(version)
|
23
19
|
end
|
@@ -40,19 +36,12 @@ module Fastlane
|
|
40
36
|
description: 'Path to the build.gradle file',
|
41
37
|
type: String,
|
42
38
|
optional: true,
|
43
|
-
conflicting_options:
|
44
|
-
project_root_folder
|
45
|
-
version_properties_path]),
|
39
|
+
conflicting_options: [:version_properties_path]),
|
46
40
|
FastlaneCore::ConfigItem.new(key: :version_properties_path,
|
47
41
|
description: 'Path to the version.properties file',
|
48
42
|
type: String,
|
49
43
|
optional: true,
|
50
|
-
conflicting_options:
|
51
|
-
project_name
|
52
|
-
project_root_folder]),
|
53
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
54
|
-
Fastlane::Helper::Deprecated.project_name_config_item,
|
55
|
-
Fastlane::Helper::Deprecated.has_alpha_version_config_item,
|
44
|
+
conflicting_options: [:build_gradle_path]),
|
56
45
|
]
|
57
46
|
end
|
58
47
|
|
data/lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_download_file_by_version.rb
CHANGED
@@ -5,8 +5,7 @@ module Fastlane
|
|
5
5
|
require_relative '../../helper/android/android_localize_helper'
|
6
6
|
require_relative '../../helper/github_helper'
|
7
7
|
|
8
|
-
|
9
|
-
build_gradle_path = params[:build_gradle_path] || File.join(project_root_folder || '.', 'build.gradle')
|
8
|
+
build_gradle_path = params[:build_gradle_path]
|
10
9
|
|
11
10
|
version = Fastlane::Helper::Android::VersionHelper.get_library_version_from_gradle_config(
|
12
11
|
build_gradle_path: build_gradle_path,
|
@@ -67,10 +66,8 @@ module Fastlane
|
|
67
66
|
FastlaneCore::ConfigItem.new(key: :build_gradle_path,
|
68
67
|
description: 'Path to the build.gradle file',
|
69
68
|
type: String,
|
70
|
-
optional: true,
|
71
|
-
conflicting_options: [:project_root_folder]),
|
69
|
+
optional: true),
|
72
70
|
Fastlane::Helper::GithubHelper.github_token_config_item,
|
73
|
-
Fastlane::Helper::Deprecated.project_root_folder_config_item,
|
74
71
|
]
|
75
72
|
end
|
76
73
|
|