Skip to content

Commit 06d9f92

Browse files
authored
Add changes from release 3.0.0 stable (#334)
2 parents c198441 + 1668708 commit 06d9f92

23 files changed

+32
-727
lines changed

CHANGELOG.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,36 @@
66

77
### Breaking Changes
88

9-
* Removes the `drawText` binary from the gem (instead depending on it being installed via `brew`). Because this update can not be safely applied with no side effects, it's considered a breaking change.
9+
_None_
1010

1111
### New Features
1212

13-
* Introduce new `ios_merge_strings_files` action. [#329]
14-
* Introduce new `buildkite_trigger_build` action. [#333]
15-
* Introduce new `ios_download_strings_files_from_glotpress` action. [#331]
13+
_None_
1614

1715
### Bug Fixes
1816

1917
_None_
2018

2119
### Internal Changes
2220

21+
_None_
22+
23+
## 3.0.0
24+
25+
### Breaking Changes
26+
27+
* Removes the `drawText` binary from the gem (instead depending on it being installed via `brew`). Because this update can not be safely applied with no side effects, it's considered a breaking change. [#312]
28+
* When doing Git operations, if no branch is provided, we'll use `trunk` as a default instead of `develop` [#335]
29+
* Remove deprecated `android_merge_translators_strings`, `android_update_metadata`, and `ios_merge_translators_strings` actions [#337]
30+
31+
### New Features
32+
33+
* Introduce new `ios_merge_strings_files` action. [#329]
34+
* Introduce new `buildkite_trigger_build` action. [#333]
35+
* Introduce new `ios_download_strings_files_from_glotpress` action. [#331]
36+
37+
### Internal Changes
38+
2339
* Ensure that the `gem push` step only runs on CI if lint, test and danger steps passed before it. [#325]
2440
* Rename internal `Ios::L10nHelper` to `Ios::L10nLinterHelper`. [#328]
2541
* Provide new `run_described_fastlane_action` to run Fastlane actions more thoroughly in unit tests [#330]

Gemfile.lock

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
fastlane-plugin-wpmreleasetoolkit (2.3.0)
4+
fastlane-plugin-wpmreleasetoolkit (3.0.0)
55
activesupport (~> 5)
66
bigdecimal (~> 1.4)
77
buildkit (~> 1.4)
@@ -270,7 +270,6 @@ GEM
270270
method_source (0.9.2)
271271
mini_magick (4.11.0)
272272
mini_mime (1.1.2)
273-
mini_portile2 (2.6.1)
274273
minitest (5.14.4)
275274
molinillo (0.8.0)
276275
multi_json (1.15.0)
@@ -280,8 +279,7 @@ GEM
280279
naturally (2.2.1)
281280
netrc (0.11.0)
282281
no_proxy_fix (0.1.2)
283-
nokogiri (1.12.5)
284-
mini_portile2 (~> 2.6.1)
282+
nokogiri (1.12.5-x86_64-darwin)
285283
racc (~> 1.4)
286284
octokit (4.21.0)
287285
faraday (>= 0.9)

lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_merge_translators_strings.rb

Lines changed: 0 additions & 106 deletions
This file was deleted.

lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_update_metadata.rb

Lines changed: 0 additions & 52 deletions
This file was deleted.

lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_merge_translators_strings.rb

Lines changed: 0 additions & 101 deletions
This file was deleted.

lib/fastlane/plugin/wpmreleasetoolkit/helper/android/android_git_helper.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,6 @@ def self.commit_version_bump
2727
)
2828
end
2929
end
30-
31-
# Calls the `tools/update-translations.sh` script from the project repo, then lint them using the provided gradle task
32-
#
33-
# Deprecated. Use the `android_download_translations` action instead.
34-
#
35-
# @env PROJECT_ROOT_FOLDER The path to the git root of the project
36-
# @env PROJECT_NAME The name of the directory containing the project code (especially containing the `build.gradle` file)
37-
#
38-
# @param [String] validate_translation_command The name of the gradle task to run to validate the translations
39-
#
40-
# @todo Remove this once every client has migrated to `android_download_translations` and we got rid of that legacy action.
41-
#
42-
def self.update_metadata(validate_translation_command)
43-
Action.sh('./tools/update-translations.sh')
44-
Action.sh('git', 'submodule', 'update', '--init', '--recursive')
45-
Action.sh('./gradlew', validate_translation_command)
46-
47-
res_dir = File.join(ENV['PROJECT_ROOT_FOLDER'], ENV['PROJECT_NAME'], 'src', 'main', 'res')
48-
Fastlane::Helper::GitHelper.commit(message: 'Update translations', files: res_dir, push: true)
49-
end
5030
end
5131
end
5232
end

lib/fastlane/plugin/wpmreleasetoolkit/helper/git_helper.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ module Helper
55
# Helper methods to execute git-related operations
66
#
77
module GitHelper
8-
# Fallback default branch of the client repository. It's currently set to 'develop' for
9-
# backwards compatibility.
10-
# TODO: Set to 'trunk' for the next major release.
11-
DEFAULT_GIT_BRANCH = 'develop'.freeze
8+
# Fallback default branch of the client repository.
9+
DEFAULT_GIT_BRANCH = 'trunk'.freeze
1210

1311
# Checks if the given path, or current directory if no path is given, is
1412
# inside a Git repository

lib/fastlane/plugin/wpmreleasetoolkit/models/file_reference.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ def initialize(params = {})
1010
end
1111

1212
def source_contents
13-
# TODO: This works only on CircleCI. I chose this variable because it's the one checked by Fastlane::is_ci.
14-
# Fastlane::is_ci doesn't work here, so reimplementing the code has been necessary.
15-
# (This should be updated if we change CI or if fastlane is updated.)
16-
return File.read(secrets_repository_file_path) unless self.encrypt || ENV.key?('CIRCLECI')
13+
return File.read(secrets_repository_file_path) unless self.encrypt || FastlaneCore::Helper.is_ci?
1714
return nil unless File.file?(encrypted_file_path)
1815

1916
encrypted = File.read(encrypted_file_path)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Fastlane
22
module Wpmreleasetoolkit
3-
VERSION = '2.3.0'
3+
VERSION = '3.0.0'
44
end
55
end

0 commit comments

Comments
 (0)