-
Notifications
You must be signed in to change notification settings - Fork 9
Add MIGRATION.md
migration guide
#452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
iangmaia
wants to merge
32
commits into
wordpress-mobile:iangmaia/trial
from
iangmaia:add/migration-guide
Closed
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
3a29939
Remove legacy iOS localization actions and related helpers
mokagio 0a769a7
Remove download_metadata.swift references
iangmaia 69f5e03
Use get_from_env util method instead of accessing environment var dir…
iangmaia 8961644
Update changelog
iangmaia c48d444
Add PR reference to changelog
iangmaia 7aaa3b7
Update CHANGELOG.md
iangmaia 4b398ed
Merge pull request #447 from iangmaia/cleanup/remove-legacy-localizat…
AliSoftware 476cf80
Add ConfigItem for .xcconfig to replace env var on ios_get_app_version
iangmaia 9add5bf
Add unit tests for the ios_get_app_version action
iangmaia c1bb8a4
Update changelog
iangmaia 60a350c
Fix unit test that broke due changes in `Ios::VersionHelper`
iangmaia fce43b3
Change `ios_get_app_version` environment var to a more generic one, s…
iangmaia fd93d89
Improve the version parsing code to better handle error cases
iangmaia 47ac3f9
Add unit tests for ios_get_app_version error cases
iangmaia a1d8dc9
Make ios_get_app_version_spec unit tests to work with an actual file …
iangmaia 7365a2f
Improve method to read .xcconfig file to use Xcodeproj::Config instea…
iangmaia 9a84d8e
Add explicit dependency to xcodeproj
iangmaia 2c097eb
Remove unnecessary mock of File existence check
iangmaia ef6faab
Add more test cases for different .xcconfig file formats
iangmaia 2aef505
Fix dependency to xcodeproj to allow for minor updates
iangmaia 5ca4081
Merge pull request #445 from iangmaia/add/xconfig-param-on-ios_get_ap…
AliSoftware 4c5b4a1
Remove Deliverfile related functionality and references
iangmaia 5066134
Update changelog
iangmaia 5a5b09f
Update CHANGELOG.md
iangmaia 8eeea65
Update PR reference on change log
iangmaia 8f63869
Merge pull request #450 from iangmaia/cleanup/remove-deliver-file
AliSoftware 4e2cae3
Update change log with mention to `xcodeproj` dependency
iangmaia 0d9fd92
Merge pull request #451 from iangmaia/add/new-tests-for-ios_get_app_v…
AliSoftware e647f82
Add migration guide
iangmaia 491d83f
Update MIGRATION.md
iangmaia e9ab7c5
Add remarks about the migration needs related to the action `ios_get_…
iangmaia 212bd3a
Update PR template to include a reference to the `MIGRATION.md` file
iangmaia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Release Toolkit Migration Guide | ||
|
||
--- | ||
|
||
## Migrating to Trunk | ||
|
||
### Considerations for breaking changes | ||
|
||
- Ensure that calls to `ios_bump_version_release` already passed `skip_glotpress: true`. | ||
In case of passing false as parameter or not providing a value (false being the default for this ConfigItem), you'll have to ensure that: | ||
- `download_metadata.swift` isn't being used; if it is, it's a good time to migrate to the new tooling | ||
- You're not relying on `ios_bump_version_release` for commiting the `.po/.pot` file | ||
- The deprecated actions `ios_localize_project` and `ios_update_metadata` were now completely removed. If your project is still using them, please use the new tooling instead. | ||
- See `ios_generate_strings_file_from_code`, `ios_extract_keys_from_strings_files`, `ios_download_strings_files_from_glotpress` and `ios_merge_strings_files` for typical replacements. | ||
- The action `ios_get_app_version` now requires a parameter `public_version_xcconfig_file` with the public `.xcconfig` file path instead of relying on the environment variable `PUBLIC_CONFIG_FILE`. While the complete removal of this environment variable is our goal, at this point it is still required by other actions such as `ios_bump_version_release` and `ios_codefreeze_prechecks`. | ||
- The usage of a `Deliverfile` (including its `app_version`) is discouraged -- please use `upload_to_app_store` directly from your `Fastfile` instead. Therefore, the parameter `skip_deliver` from the actions `ios_bump_version_hotfix` and `ios_bump_version_release` has been removed. | ||
|
||
### Clean-ups | ||
|
||
- You can now delete the `ENV['APP_STORE_STRINGS_FILE_NAME']` from your Fastfile, as it isn't being used anymore. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_localize_project.rb
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_update_metadata.rb
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AliSoftware: I noticed a small typo in the
.github/PULL_REQUEST_TEMPLATE.md
("approprioate"), and while editing it I realised it would be nice to mention theMIGRATION.md
here as well. Please let me know if you think this makes sense, otherwise I can just revert it.